Home / Expert Answers / Computer Science / create-a-program-that-prompts-for-a-students-first-name-last-name-age-and-overall-mark-the-pro-pa362

(Solved): Create a program that prompts for a students first name, last name, age and overall mark. The pro ...



Create a program that prompts for a student’s first name, last name, age and overall mark. The program that displays the grade for the students. The program contains a nested struct and a function to display the student’s information. 1. Create a struct called GradeRec which has two variables, percent and grade. 2. Create another struct called StudentRec which contains variables lastName, firstName, age and courseGrade (nested from GradeRec ). 3. Create a function Print() to display all the values for the variables. 4. In the main function, create an object for struct StudentRec. Prompt for student’s first name, last name, age and overall mark. Display grade base on the following:

 

Mark
Mark >=90
Mark >=75
Mark <75
Grade
A
B
F
5. Call function Print ()
Sample output:
Enter first name: Joe
Enter last name: Hanson
Enter age: 20
Enter overall percent: 8c++ program

Mark Mark >=90 Mark >=75 Mark <75 Grade A B F 5. Call function Print () Sample output: Enter first name: Joe Enter last name: Hanson Enter age: 20 Enter overall percent: 80 Hello Joe Hanson. How are you? Congratulations on reaching the age of 20. Your overall percent score is 80 for a grade of B


We have an Answer from Expert

View Expert Answer

Expert Answer


We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe