0

guc professors decided to give bonus marks to engnieering students to their high performance in their projects as follows :
1st semester students are given 5% of the total mark if the mark exceeds 90/100
3rd semester students are given 7% of the total mark if the mark exceeds 85/100
5th sem students are given 10% of the total mark if the mark exceeds 80/100
take into consideration that it's not possible 4 student mark 2 exceed 100/100 after adding bonus mark

2
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by Sylvie.Georges
0

Don't expect anyone to write the entire code for you. Post your own efforts. In case you post your code, use code tags. This way you won't get any help.

0

get semester

get mark

if (semester=1) then

if (mark>=90 and mark <100) then

set total-mark to (mark + (mark * 0.05))

else

if (semester =3), (mark>=85 and mark<100) then

set total-mark to (mark + (mark * 0.07))

else

if (semester=5), (mark>=80 and mark<100) then

set total-mark to (mark+ (mark*0.1))

endif

endif

endif

else

print “mark=100”

endif

print “total-mark”

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.