943,584 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Marked Solved
  • Views: 1632
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
Aug 7th, 2009
0

My Assignment...Hu can help me???

Expand Post »
Write a program for the following problem. An instructor needs a program that accepts a student identification number and three test scores, test1, test2, and final_test as input, and determines and outputs for each student the semester average and the final letter grade according to the following scheme:

SEMESTER AVERAGE FINAL LETTER GRADE
90 – 100 A
80 – 89 B
70 – 79 C
60 – 69 D
0 – 59 F

The semester average for students is computed using the formula
semester_average = 0.20 * test1 + 0.30 * test2 + 0.50 * final_test

Student identification numbers are four-digits integer. Input should terminate when the instructor types 0 for the student identification number. The instructor also wants a distribution of letter grades and a class average. Class average is computed using the following formula:

class_average = (4 * number_of_A_grades + 3 * number_of_B_grades + 2 * number_of_C_grades + 1 * number_of_D_grades)/number_of_students
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
hket89 is offline Offline
31 posts
since Aug 2009
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Believe me nobody is gonna help you unless you show some progress in your assignment.
Reputation Points: 45
Solved Threads: 7
Light Poster
9868 is offline Offline
36 posts
since Mar 2009
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Click to Expand / Collapse  Quote originally posted by 9868 ...
Believe me nobody is gonna help you unless you show some progress in your assignment.
Then u noe hw 2 use do-while loop mar?
Reputation Points: 10
Solved Threads: 0
Light Poster
hket89 is offline Offline
31 posts
since Aug 2009
Aug 7th, 2009
1

Re: My Assignment...Hu can help me???

Click to Expand / Collapse  Quote originally posted by hket89 ...
Then u noe hw 2 use do-while loop mar?
Something like
  1. do {
  2.  
  3. /* your code here */
  4. } while (condition)
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

I think you should start with a basic C book. You can not learn each and every language construct by communities.
Reputation Points: 165
Solved Threads: 59
Posting Pro in Training
DangerDev is offline Offline
485 posts
since Jan 2008
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Click to Expand / Collapse  Quote originally posted by ithelp ...
Something like
  1. do {
  2.  
  3. /* your code here */
  4. } while (condition)
You forgot the semicolon after the while.
Reputation Points: 45
Solved Threads: 7
Light Poster
9868 is offline Offline
36 posts
since Mar 2009
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Could u gv me the website tat can download c programing the notes n the example? Thx^^
Reputation Points: 10
Solved Threads: 0
Light Poster
hket89 is offline Offline
31 posts
since Aug 2009
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

Click to Expand / Collapse  Quote originally posted by hket89 ...
Could u gv me the website tat can download c programing the notes n the example? Thx^^
Google C programming tutorials and you will find more than a ton.
Reputation Points: 45
Solved Threads: 7
Light Poster
9868 is offline Offline
36 posts
since Mar 2009
Aug 7th, 2009
0

Re: My Assignment...Hu can help me???

I am too very new in C... I ll try to solve ur prob.....
Reputation Points: 8
Solved Threads: 2
Junior Poster in Training
alvalany is offline Offline
61 posts
since Jul 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: error: expected declaration specifiers or '...' before '(' token
Next Thread in C Forum Timeline: Tool to detect not allocated memory





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC