summaryrefslogtreecommitdiff
path: root/comp/hw/1/4.py
diff options
context:
space:
mode:
Diffstat (limited to 'comp/hw/1/4.py')
-rwxr-xr-xcomp/hw/1/4.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/comp/hw/1/4.py b/comp/hw/1/4.py
new file mode 100755
index 0000000..fb28133
--- /dev/null
+++ b/comp/hw/1/4.py
@@ -0,0 +1,31 @@
+marks = []
+marks.append(int(input("analysis: ")))
+marks.append(int(input("design: ")))
+marks.append(int(input("implimentation: ")))
+marks.append(int(input("evaluation: ")))
+
+total = 0
+for i in marks:
+ total = total + i
+
+if total >= 80:
+ print("9")
+elif 80 > total >= 67:
+ print("8")
+elif 67 < total <= 54:
+ print("7")
+elif 54 < total <= 41:
+ print("6")
+elif 41 < total <= 31:
+ print("5")
+elif 31 < total <= 22:
+ print("4")
+elif 22 < total <= 13:
+ print("3")
+elif 13 < total <= 4:
+ print("2")
+elif 4 < total <= 2:
+ print("1")
+else:
+ print("U")
+print("total ", total)