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

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.

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”

i wanna write a pseudo-code using if and else statement if this correct??!!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.