943,900 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1616
  • C++ RSS
Sep 1st, 2008
0

Student Grade Programming

Expand Post »
i want to write a program that determine a student’s grade. It reads three test scores (between 0-100) and calls a function the calculate and return a student’s grade based on following rules:
(a) If the average score is 90% and more, the grade is ‘A’
(b) If the average scores 70% or more & less than 90%, it checks the third score. If the third score is more than 90%, the grades is ‘A’ otherwise than grade is ‘B’
(c) If the average score is 50%, it checks the average of second & third scores. If the average of them is greater than 70%, the grade is ‘C’, otherwise it is ‘D’.
(d) If the average score is less than 50%, then the grade is ‘F’

The program’s main() contains only call statements. At least 3 subfunctions are required:
1. One function to read score
2. One to determine the grade
3. One to print the result

if anybody know please reply because i'm a new about this programming.
Similar Threads
Reputation Points: 6
Solved Threads: 0
Newbie Poster
PuQimX is offline Offline
20 posts
since Sep 2008
Sep 1st, 2008
0

Re: Student Grade Programming

Click to Expand / Collapse  Quote originally posted by PuQimX ...
i want to write a program that determine a student’s grade. It reads three test scores (between 0-100) and calls a function the calculate and return a student’s grade based on following rules:
(a) If the average score is 90% and more, the grade is ‘A’
(b) If the average scores 70% or more & less than 90%, it checks the third score. If the third score is more than 90%, the grades is ‘A’ otherwise than grade is ‘B’
(c) If the average score is 50%, it checks the average of second & third scores. If the average of them is greater than 70%, the grade is ‘C’, otherwise it is ‘D’.
(d) If the average score is less than 50%, then the grade is ‘F’

The program’s main() contains only call statements. At least 3 subfunctions are required:
1. One function to read score
2. One to determine the grade
3. One to print the result

if anybody know please reply because i'm a new about this programming.

Please don't double post. You already have a thread on this topic:
http://www.daniweb.com/forums/post68...tml#post682492
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,375 posts
since Jan 2008
Sep 1st, 2008
-1

Re: Student Grade Programming

Suka hati ku laaa....!!!! NOT THE ANSWER
Reputation Points: 6
Solved Threads: 0
Newbie Poster
PuQimX is offline Offline
20 posts
since Sep 2008
Sep 1st, 2008
0

Re: Student Grade Programming

Click to Expand / Collapse  Quote originally posted by PuQimX ...
Suka hati ku laaa....!!!! NOT THE ANSWER
I have no idea what this means.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,375 posts
since Jan 2008
Sep 1st, 2008
1

Re: Student Grade Programming

PuQimX, the point of an assignment is to help you learn. If someone writes your programs for you, you will never advance in the class. I've seen what happens to someone who copies their programming assignments.
Reputation Points: 30
Solved Threads: 0
Newbie Poster
obj7777 is offline Offline
8 posts
since Sep 2008
Sep 2nd, 2008
0

Re: Student Grade Programming

I have no idea what this means.
The first line is in Malay. It means that:

Quote ...
I can do whatever I like!!! (The second line I think you understand.... )
Reputation Points: 37
Solved Threads: 7
Junior Poster
raul15791 is offline Offline
102 posts
since Jun 2008
Sep 2nd, 2008
0

Re: Student Grade Programming

Obj7777 is right... At least put in some effort to try first...
Reputation Points: 37
Solved Threads: 7
Junior Poster
raul15791 is offline Offline
102 posts
since Jun 2008

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: Please help me!!
Next Thread in C++ Forum Timeline: Dynamic memmory Allocation , Using Pointers .Help me .





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


Follow us on Twitter


© 2011 DaniWeb® LLC