₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,346,316 members, 8,522,338 topics. Date: Saturday, 21 November 2026 at 02:40 AM

Toggle theme

Need Help With A C Language Problem Can You Be Of Help - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Need Help With A C Language Problem Can You Be Of Help (955 Views)

1 Reply (Go Down)

Need Help With A C Language Problem Can You Be Of Help by phrezzz(op): 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 wink 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(op): 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:
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
Welcome! The concern should be easy for you to adjust i guess?
1 Reply

SAS Language Problem Solving • An INEC Voting Console Program Written In C Language • Coding Virus To Kill Computer In C++ Language • 2 • 3 • 4

Mobile App Creation Training • Amazing Things You Should Learn From Mark Zuckerberg – Facebook Owner • Live Streaming