Question: Hi, Can someone help me with completing this assignment please? ***************************************************************************************** #include using namespace std; /************************************ Be sure to connect this replit project with GitHub
Hi, Can someone help me with completing this assignment please?
*****************************************************************************************
#include
/************************************ Be sure to connect this replit project with GitHub ! *************************************/
/************************************ declare a constant integer named: NBR_SCORES with a value of 3 *************************************/ const int NBR_SCORES = 3; /************************************ IMPORTANT! Use the above constant in your code do not use a literal number 3 anywhere in your code!!!!! *************************************/ class Student { public: void setName (string firstName, string lastName); void setScore (); void showScore ();
private: string firstName; string lastName; int NBR_SCORES[2]; };
/************************************ define a class named Student The class will have 3 private members: 1) a string for first name 2) a string for last name 3) an integer array of size NBR_SCORES
the class will have 3 public members: NOTE: only prototype the functions in the class 1) a void function named setName with 2 string parameters to set the student first name and last name 2) a void function named setScores with no parameters setScores will prompt the user for scores to pupulate the private member array: scores see sample output 3) a void function named showScores with no parameters showScores will display the values in the private member array: scores and will also display the average scores. see sample output Note: showScores is a const function*/
/************************************ In the main function: 1) declare a Student object named student 2) declare 2 srtrings for first name and last name 3) prompt the user for the student's first name and last name 4) use setName to set the student object's first name and last name 5) use setScores to set the student' scores 6) use showScores to show the student's scores *************************************/ int main() {
cout << " Goodbye" << endl; return 0; }
/************************************ Define your member funcrtions below the main function *************************************/
/********************************************
// SAMPLE OUTPUT Enter student's first-name and last-name: Jim Carry Enter score 1 for Jim Carry 100 Enter score 2 for Jim Carry 98 Enter score 3 for Jim Carry 94 Scores for Jim Carry are 100 98 94 The average is: 97 Goodbye **********************************************/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
