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
}
Reputation Points: 237
Solved Threads: 117
Practically a Posting Shark
Offline 822 posts
since Oct 2005