how to write program calculating gp ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how to write program calculating gp ??

25th Sep 2016, 6:15 AM
ariba asif
2 Answers
+ 5
that's too easy , here's it :- let the user input marks in 5 subjects out of 100 , store the marks and then define 5 more variables of float type and assign them as gp1=m1/10; and so on for all variables and then finally declare a variable say , avg = (gp1+gp2+gp3+gp4+gp5) and set its precision to 1 decimal place and that's the average grade point .
10th Jul 2017, 8:59 AM
RZK 022
RZK 022 - avatar
0
grade points...
25th Sep 2016, 7:15 AM
ariba asif