| | |
i not understand how i do this problem
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2005
Posts: 3
Reputation:
Solved Threads: 0
how i do this problem, i dont understand this problem
plz everyone can help me
Write a grading program for a class with the following grading policies:
a. There are two quizzes, each graded on the basis of 10 points.
b. There is one midterm exam and one final exam, each graded on the basis of 100 points.
c. The final exam counts for 50% of the grade, the midterm counts for 25%,and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.)
Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F.
The program will read in the student?s scores and output the student?s record, which consists of two quiz and two exam scores as well as the student?s average numeric score for the entire course and the final letter grade. Define and use a structure for the student record. If this is a class assignment, ask your instructor if input/output should be done with the keyboard and screen or if it should be done with files. If it is to be done with files, ask your instructor for instructions on file names.
:o
plz everyone can help me
Write a grading program for a class with the following grading policies:
a. There are two quizzes, each graded on the basis of 10 points.
b. There is one midterm exam and one final exam, each graded on the basis of 100 points.
c. The final exam counts for 50% of the grade, the midterm counts for 25%,and the two quizzes together count for a total of 25%. (Do not forget to normalize the quiz scores. They should be converted to a percent before they are averaged in.)
Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade below 60 is an F.
The program will read in the student?s scores and output the student?s record, which consists of two quiz and two exam scores as well as the student?s average numeric score for the entire course and the final letter grade. Define and use a structure for the student record. If this is a class assignment, ask your instructor if input/output should be done with the keyboard and screen or if it should be done with files. If it is to be done with files, ask your instructor for instructions on file names.
:o
Here is a little something to get ye' started:
#include<iostream>
using namespace std;
////////// User Defined Abstract Data Types ////////////
struct Record
{
int quiz_1 ;
int quiz_2 ;
int midterm ;
int final ;
} ;
class Grade_Calculator
{
public:
void menu( ) ;
void add_a_record( ) ;
void delete_a_record( ) ;
void calculate_grade( ) ;
void display_results( ) ;
private:
int number_of_records ;
Record students[30] ; //Initialize an array of 30 "Records"
//Assuming 30 students or less
} ;
//Place any other non-related user defined function prototypes here
///////// Driver Program /////////
int main( )
{
Grade_Calculator myGC ; //Create an object of type, "Grade_Calculator" (gain access to the "Grade_Calculator" class)
//Do
//Display a menu
//Get menu option
//Respond to menu option
//While (the user wishes to continue) ;
return 0 ;
}
/////////////////////////////////////////////////////////////
///////////////// Function Definitions /////////////////////
/////////////////////////////////////////////////////////////
/*function return type (if any)*/ Grade_Calculator::function_name( )
{
//function algorithm
}
/*function return type (if any)*/ Grade_Calculator::function_name( )
{
//function algorithm
}
/*function return type (if any)*/ Grade_Calculator::function_name( )
{
//function algorithm
}
/*function return type (if any)*/ Grade_Calculator::function_name( )
{
//function algorithm
}![]() |
Similar Threads
- simple cash register (pos) problem - please help!! (VB.NET)
- vBulletin mod_rewrite (PHP)
- Page cannot be displayed (Web Browsers)
- Convert first character from lowercase to uppercase? (C++)
- How do i debug this app? (Java)
- which laptop is better? (Troubleshooting Dead Machines)
- A puzzl about function (C)
- To underline links or not to underline links (Site Layout and Usability)
- i need help- windows troubles. (Windows NT / 2000 / XP)
Other Threads in the C++ Forum
- Previous Thread: need help on C-string
- Next Thread: please someone help me
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamic email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





