这个作业是用C++完成一个学生成绩管理系统

**CSCI 1470 **

Lab 6 Out-of-class Assignment

**Topic**: Functions (** Pass by Value**)

**Reading**: Ch. 6** **

**Point Value:** ** 20 points**.

Write a program that will calculate the average score and letter grade earned by a student in*(Save your program as*cpp – 20 points*)*course. The program should allow the user to enter the student’s id number. It should also prompt for the number of exams taken by the student in the course and then calculate the average and letter grade earned.*any*- Use
as the driver function. Allow the user to run the program as many times as desired.*main( )* - Write the function
that prompts the user for the id (id is represented by an integer value) of the student and returns it back to*getStudentID()**main().* - Write the function
that prompts the user for the total number of exams taken by the student in the course and returns this value back to*getNumberExams( )**main( ). Do not allow the user to enter a value less than one for the number of exams. Display an error message and keep prompting until a valid value is entered.* - Write the function
to determine the total score of the exams take by the student. Use a*calculateTotal( )*to prompt for each exam score and accumulate the total as the user enter the scores. Return the calculated total back to*loop**main( ).* - Write the function
to determine the average grade earned by the student and return this value back to*calculateAverage( )**main( ).* - Write the function
that determines the letter grade earned by the student for the course and returns this back to*determineLetterGrade( )**main( ).* - Write the function
to display the student’s id, the average (to the nearest tenth of a decimal) and letter grade earned by the student.*displayAverageGrade( )*

- Use

__Sample Input/Output:__

**Please enter the student’s id: 1234**

**Please enter the number of exams taken by the student in the course: 3**

** **

**Enter the exam scores:**

**Exam 1: 95**

**Exam 2: 85**

**Exam 3: 88**

** **

**Student Id: 1234**

**Average: 89.3**

**Letter Grade Earned: B**

** **

**Would you like to calculate another student’s grade? < y or n > y**

** **

**Please enter the student’s id: 1806**

**Please enter the number of exams taken by the student in the course: 2**

## 发表评论