Project #76753 - C# homework

Create a class “StudentInfo” and include student’s 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: Bob Ho

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.

Subject Computer
Due By (Pacific Time) 07/19/2015 11:59 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy