| | |
Student Grade Programming
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2008
Posts: 12
Reputation:
Solved Threads: 0
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.
(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.
•
•
Join Date: Jan 2008
Posts: 3,842
Reputation:
Solved Threads: 503
•
•
•
•
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
![]() |
Similar Threads
- C++ Student Average Grade program (C++)
- .csv into array problem :( (C)
- Help for newbie (C)
- Grade program (C)
- Making arrays from text files (VB.NET)
- correct my algorithm for average problem (C++)
- Unsorted List ADT Client Code Help (C++)
- First time using JLabel and JTextArea. Please help!!! (Java)
- JAVA: Need help w/constructors object oriented programming (Java)
Other Threads in the C++ Forum
- Previous Thread: Please help me!!
- Next Thread: Dynamic memmory Allocation , Using Pointers .Help me .
Views: 825 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linker list loop looping loops map math matrix memory newbie news number output pointer problem program programming project python random read recursion recursive reference return rpg search simple sort spoonfeeding string strings struct temperature template templates text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets







)