Forums: » Register « |  Free Tools |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |

New Free Tools on Dev Shed!

#1
July 22nd, 2003, 01:33 PM
 geebee
Junior Member

Join Date: Jul 2003
Location: VA
Posts: 4
Time spent in forums: < 1 sec
Reputation Power: 0

Hi,

I am new to learning C. I need your help once again.

I have to Write a C program that will read in the scores for the following:
test 1, test2, test3, quiz1, quiz2, quiz3, quiz4, lab 1, lab 2, lab 3, lab 4, lab 5, lab 6, and final test into an array.

Use the following percentages for calculating the grade for the course and a letter grade for the final grade

average test worth 30 percent of final grade
average for quizzes worth 10 percent of final grade
average for labs worth 40 pecent of final grade
final exam worth 20 percent of final grade

90-100 = A
80-89 = B
70-79 = C
60-69 = D
0-59 = F

ALso, write the code to Print out the final grade and the letter grade.

You can use any sample scores.

geebee

#2
July 22nd, 2003, 03:53 PM
 karsh44
Just another guy

Join Date: Jun 2003
Location: Wisconsin
Posts: 2,953
Time spent in forums: 2 Weeks 11 h 52 m 38 sec
Reputation Power: 261
So which part is the problem? We aren't going to just do this all for you

#3
July 22nd, 2003, 05:12 PM
 dog135
Doggie

Join Date: Jul 2003
Location: Seattle, WA
Posts: 751
Time spent in forums: 10 h 38 m 25 sec
Reputation Power: 12
Sorry, I never give people answers to their homework, and I've never asked for the answers to my homework. (except history) If you want to learn, you have to learn the information yourself.

But I will give you a shove in the right direction:

Quote:
 average test worth 30 percent of final grade average for quizzes worth 10 percent of final grade average for labs worth 40 pecent of final grade final exam worth 20 percent of final grade

Take the first line:

First you would have to figure out the averate test score. You know how to do that, right?

Second, take 30% of that value, add it to your running total.

Lather, rinse, repeat.

 Viewing: Dev Shed Forums > Programming Languages > C Programming > Final Grade Calculator