Question: C # Create a class StudentInfo and include students first name, last name, and three exams grades. It should also include the following functions: constructors,

C #

Create a class StudentInfo and include students first name, last name, and three exams grades. It should also include the following functions: constructors, properties, and two functions: calculateAve() which calculate the average of three exams, and getLetterGrade() which determine whether an A, B, C, D, or F should be returned.

Create a testing program StudentInfoTest. In the main function, the program prompts the user to enter name and three grades between 0 and 100 (include input validation). The program creates two objects based on the StudentInfo class, one object will pass user information via constructor, and another object will be initialized using default constructor and pass user information via properties. The program calculates the average, determine the letter grade, and displays two students information on the screen, name, grades, average, and the letter grade.

Example:

Student Name: John Bred

Exam1: 95

Exam2: 80

Exam3: 82

Average: 85.67

Letter grade: B

A: 100-90; B: 89.99-80; C: 79.99-70; D: 69.99-60; F <60.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!