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

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Aug 2009
Posts: 23
Reputation: hket89 is an unknown quantity at this point 
Solved Threads: 0
hket89's Avatar
hket89 hket89 is offline Offline
Newbie Poster

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

 
0
  #1
Aug 7th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 751
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

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

 
0
  #2
Aug 7th, 2009
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 36
Reputation: 9868 is on a distinguished road 
Solved Threads: 7
9868 9868 is offline Offline
Light Poster

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

 
0
  #3
Aug 7th, 2009
Believe me nobody is gonna help you unless you show some progress in your assignment.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 23
Reputation: hket89 is an unknown quantity at this point 
Solved Threads: 0
hket89's Avatar
hket89 hket89 is offline Offline
Newbie Poster

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

 
0
  #4
Aug 7th, 2009
Originally Posted by 9868 View Post
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?
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,867
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

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

 
1
  #5
Aug 7th, 2009
Originally Posted by hket89 View Post
Then u noe hw 2 use do-while loop mar?
Something like
  1. do {
  2.  
  3. /* your code here */
  4. } while (condition)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 483
Reputation: DangerDev has a spectacular aura about DangerDev has a spectacular aura about 
Solved Threads: 59
DangerDev's Avatar
DangerDev DangerDev is offline Offline
Posting Pro in Training

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

 
0
  #6
Aug 7th, 2009
I think you should start with a basic C book. You can not learn each and every language construct by communities.
Freedom in the Mind, Faith in the words.. Pride in our Souls...
Indian Developer
http://falaque.wordpress.com/
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 36
Reputation: 9868 is on a distinguished road 
Solved Threads: 7
9868 9868 is offline Offline
Light Poster

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

 
0
  #7
Aug 7th, 2009
Originally Posted by ithelp View Post
Something like
  1. do {
  2.  
  3. /* your code here */
  4. } while (condition)
You forgot the semicolon after the while.
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 23
Reputation: hket89 is an unknown quantity at this point 
Solved Threads: 0
hket89's Avatar
hket89 hket89 is offline Offline
Newbie Poster

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

 
0
  #8
Aug 7th, 2009
Could u gv me the website tat can download c programing the notes n the example? Thx^^
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 36
Reputation: 9868 is on a distinguished road 
Solved Threads: 7
9868 9868 is offline Offline
Light Poster

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

 
0
  #9
Aug 7th, 2009
Originally Posted by hket89 View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 47
Reputation: itzAB is an unknown quantity at this point 
Solved Threads: 2
itzAB itzAB is offline Offline
Light Poster

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

 
0
  #10
Aug 7th, 2009
I am too very new in C... I ll try to solve ur prob.....
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 940 | Replies: 21
Thread Tools Search this Thread



Tag cloud for C
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC