Write is program to enter marks of five subjects-
Now find and display the hotel marks and percentage
marks and also display the remark soosy accodding
to following:
Percentage Marks
Remarks
Distinction
First division
second division
Third division
> = 80
60-79
50 69
40 - 49
<40
DO IT IN BLUE JAVA
Answers
Answer:
Write is program to enter marks of five subjects-
Now find and display the hotel marks and percentage
marks and also display the remark soosy accodding
to following:
Percentage Marks
Remarks
Distinction
First division
second division
Third division
> = 80
60-79
50 69
40 - 49
<40
DO IT IN BLUE JAVA
Answer:
d
print('Enter the Number of subjects:',end='')
no_subj=int(input())
while i<no_subj:
subj=input('enter the subject: ')
marks=int(input('Enter the corresponding marks: '))
if marks<40:
print('Grade F (Failed)')
elif 40<=marks<50:
print('Grade D (Below Average)')
elif 50<=marks<60:
print('Grade C (Fair)')
elif 60<=marks<70:
print('Grade B (Good)')
elif 70<=marks<80:
print('Grade A (Very Good)')
elif 80<=marks<90:
print('Grade E (Excellent)')
elif 90<=marks<=100:
print('Grade O (Outstanding)')
i+=1
print('want to check one more time ?(yes or no)')
response=input()
if response=='yes':
marks_check()
else:
print('You chose to exit...')
sys.exit()