[Solved] Objective Purpose Lab Project Expose Selection Enforce Loops Expand Skills Write Larger Pr Q37298683
Objective:
The purpose of this lab project is toexpose you to selection, to enforce Loops, and to expand yourskills to write larger programs.
Problem Specification:
Write a C++ program to calculate astudents GPA for the semester. The program should accept astudent’s name(string), ID number(integer) and the number ofcourses he/she is taking, then for each course the following datais needed
- Course number (a string) e.g. BU 101
- Course credits (an integer).
- Grade received for the course “a character”.
The program should display thestudent’s name, ID number, the total number of credits for thesemester, and grade point average for the semester. A warningmessage should be also printed if the GPA is less than 2.0 and acongratulatory message if the GPA is 3.0 or above.
Requirements:
- Input student’s name, ID number, course number, number ofcredits for the course and grade using proper prompts.
- Use a prompt loop to repeat for multiple students until ‘N’ or‘n’ is entered in response to the prompt.
- Add comments to identify the variables used.
- Create constants representing the points for each grade.
- A 4 points
- B 3 points
- C 2points
- D 1 points
- F 0 points
- Calculate using the constants you defined, and whatever datathe user enters.
- Use at least 4 functions.
- Include data validation for all data entered
IDRange 0-9999
Number of courses 0 –5
Grades are A, B, C, D, F.
- Have your program print proper identifying messages for theoutput.
- Output the report as specified above.
- Comment thoroughly and use function specifications.
Grading criteria:
5 points Proper comments,spacing, naming of variables, and general program appearance.
5 points Constants aredefined correctly and appropriately used.
5 points All data isentered and has proper prompts.
5 points Method is use toconvert character entry to upper case.
5 points ID range isvalidated, and a loop repeats until a valid ID# is entered.
5 points Grades arevalidated, and a loop repeats until A,B,C,D, or F is entered.
5 points A loop continuesuntil ‘N’ or ‘n’ is entered
5 points Number of coursestaking is validated and a loop repeats until a valid number isentered.
5 points A for loop repeats for eachstudent to handle data entry for each course.
10 points Appropriate pass by valueand pass by reference.
5 points Titles areincluded and are appropriate.
5 points A message is printed
5 points Every functionhas specifications.
5 points At least 4functions are used.
5 points A flowchart ofthe function main () is handed-in detailed and is correct.
5 points Hierarchicalchart is included and is correct.
10 points Program runscorrectly and produces the intended results.
5 points Test runs toaccount for all outcomes are submitted.
The language is C++, withoutarrays
Expert Answer
Answer to Objective: The purpose of this lab project is to expose you to selection, to enforce Loops, and to expand your skills to… . . .
OR

