Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,940 members, 7,817,750 topics. Date: Saturday, 04 May 2024 at 06:35 PM |
Nairaland Forum / Science/Technology / Programming / Need Help With A C Language Problem Can You Be Of Help (830 Views)
SAS Language Problem Solving / An INEC Voting Console Program Written In C Language / Coding Virus To Kill Computer In C++ Language (2) (3) (4)
Need Help With A C Language Problem Can You Be Of Help by phrezzz: 10:15pm On Aug 05, 2018 |
i want to write a program that would calculate the gp of a semester on a 5point scale in c language. the program will request for student score, and assign grades to it. i.e if grade >70 && <=100 it should print A, 60-69= B, 50-59=c, 45-49=D and 0 to 44= F. it will return 5 if grade is A, 4 if grade is B, C=3, D=2, F=0. it would multiply each (grade with the unit load=totalpoint ) then sum of the total point divided by the total unit load. thank you |
Re: Need Help With A C Language Problem Can You Be Of Help by gmart(m): 12:27pm On Aug 06, 2018 |
Its been a while, my C skills might be a bit rusty but i was able to string this solution together: https://pastebin.com/YdwM6mBQ |
Re: Need Help With A C Language Problem Can You Be Of Help by phrezzz: 1:15pm On Aug 06, 2018 |
Awesome man! But just to add in your program Ur grade should not return 1 when a student scores between 30 to 44 its assumed it is 0 |
Re: Need Help With A C Language Problem Can You Be Of Help by gmart(m): 1:37pm On Aug 06, 2018 |
phrezzz: Welcome! The concern should be easy for you to adjust i guess? |
(1) (Reply)
Web Developers Is Needed! / [] / Tutorials & Videos On Different Programming Languages!!!
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |