Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer questions c++ it is all one question Include file student.h - no path needed as it is in the same folder. Initialize the

please answer questions c++
it is all one question
image text in transcribed
image text in transcribed
image text in transcribed
Include file student.h - no path needed as it is in the same folder. Initialize the private static variable ID with a value of 100. Function definitions: Define setName to set the private variables firstName and lastName with the values of the paramet Define updateName to prompt the user for first name and last name then call setName. For example: Enter first name for student 103: Enter last name for student 103: Note: the prompts show the student ID number. Hint: you will need 2 local string variables. Define setScores to prompt the user for the student's scores and populate the private scores array. For example: Enter score 1 for student 101: Mike Miller prompt the user for the student's scores and populate the private scores array. For example: Enter score 1 for student 101: Mike Miller Note: the prompt shows which score and the student ID number and student name. Note: you must write a loop to run NBR_SCORES times. Define showScores to show the scores in the private scores array as well as the average for the scores. For example: Scores for student 101: Mike Miller are 1001009998 The average is: 99 Note: the output shows the student ID number and student name. Note: you must write a loop to show all of the scores. Note: write just one loop to show the scores and calculate the average. Define the constructor to Increment the private static variable ID then assign that value to the private variable studentiD Then call setName. The average is: 99 Note: the output shows the student ID number and student name. Note: you must write a loop to show all of the scores. Note: write just one loop to show the scores and calculate the average. Define the constructor to Increment the private static variable ID then assign that value to the private variab studentlD Then call setName. Passing the tests: You should be able make corrections to pass the tests after viewing the results. In the below example we can see the actual output is missing the text: Scores for Brad Gilbert are Expected output ? 1 Enter student's first-name and last-name: Enter score 1 for Bre Enter score 2 for Brad Gilbert Enter score 3 for Brad Gilbert Scores for Brad Gilbert are 1009894 The average is: 97 7. Goodbye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions