Computer Science, asked by hania8711, 6 months ago

write a program that enter the marks obtained homework assigment and test with weight age. Homework=0.2 Assignment=0.3 Test=0.5
If net marks are more than 60% print PASS,otherwise FAIL.

Answers

Answered by Equestriadash
5

The following codes have been written using Python.

Source code:

n = input("Enter the name of the student: ")

hw = float(input("Enter the marks obtained under HOMEWORKS [out of 2]: "))

agt = float(input("Enter the marks obatined under ASSIGNMENTS [out of 3]: "))

test = float(input("Enter the marks obtained under TESTS [out of 5]: "))

total = hw + agt + test

ptg = (total/10)*100

print()

print(total, "is the total mark obtained by", n)

print(ptg, "is the percentage secured by", n)

if ptg > 60:

   print("PASS")

else:

   print("FAIL")

Answered by sikandarrais12
1

Answer:

write a programe that enter marks obtained home works Assignment and test with age. home marks=0.2 assign 0.3 test 0.5

Similar questions