SlideShare uma empresa Scribd logo
1 de 1
Click here to get Solution on ProgAnswer.com
The TestStudent.cs program on the next page calculates the average score of a single student on
three exams. Enhance this program by making the following changes:
1) Add a integer Student Id to the attribute list as well as a getId() method.
2) Besure to update the constructor to allow the user to enter the Id.
3) In the main, allow the user to enter the number of students and create an array of Student
objects based on the number entered.
4) Allow the user to enter the number of scores for each student.
Declare an array of scores in the attribute list of the Student class definition.
Allow the user to enter the number of test scores for each student by making the appropriate
changes to the constructor and the calcAverage() method of the Student class.
5) Print a report as shown below.

Mais conteúdo relacionado

Destaque

Hr 041 機電工程進路圖
Hr 041 機電工程進路圖Hr 041 機電工程進路圖
Hr 041 機電工程進路圖handbook
 
CONACAT :: Paróquia Online - A nova evangelização
CONACAT :: Paróquia Online - A nova evangelizaçãoCONACAT :: Paróquia Online - A nova evangelização
CONACAT :: Paróquia Online - A nova evangelizaçãoTrídia Criação LTDA
 
Ana linking ideas supermarket
Ana  linking ideas supermarketAna  linking ideas supermarket
Ana linking ideas supermarketcris03glu
 
Servicios de Internet: Foros
Servicios de Internet: ForosServicios de Internet: Foros
Servicios de Internet: Foroskhorack
 
Isabella Andreini La Inamorata Dela Commedia Dell Arte
Isabella Andreini   La Inamorata Dela Commedia Dell ArteIsabella Andreini   La Inamorata Dela Commedia Dell Arte
Isabella Andreini La Inamorata Dela Commedia Dell ArteGinaMMartino
 
God's Way of Meeting Our Needs
God's Way of Meeting Our NeedsGod's Way of Meeting Our Needs
God's Way of Meeting Our Needslivinghopechurch
 
Line of best fit slideshare
Line of best fit slideshareLine of best fit slideshare
Line of best fit slideshareTracy Cap
 
포토러스(FotoRus) Pip
포토러스(FotoRus) Pip포토러스(FotoRus) Pip
포토러스(FotoRus) PipLira Park
 
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)Maintenance Connection
 

Destaque (10)

Hr 041 機電工程進路圖
Hr 041 機電工程進路圖Hr 041 機電工程進路圖
Hr 041 機電工程進路圖
 
CONACAT :: Paróquia Online - A nova evangelização
CONACAT :: Paróquia Online - A nova evangelizaçãoCONACAT :: Paróquia Online - A nova evangelização
CONACAT :: Paróquia Online - A nova evangelização
 
Ana linking ideas supermarket
Ana  linking ideas supermarketAna  linking ideas supermarket
Ana linking ideas supermarket
 
Servicios de Internet: Foros
Servicios de Internet: ForosServicios de Internet: Foros
Servicios de Internet: Foros
 
Isabella Andreini La Inamorata Dela Commedia Dell Arte
Isabella Andreini   La Inamorata Dela Commedia Dell ArteIsabella Andreini   La Inamorata Dela Commedia Dell Arte
Isabella Andreini La Inamorata Dela Commedia Dell Arte
 
God's Way of Meeting Our Needs
God's Way of Meeting Our NeedsGod's Way of Meeting Our Needs
God's Way of Meeting Our Needs
 
Line of best fit slideshare
Line of best fit slideshareLine of best fit slideshare
Line of best fit slideshare
 
포토러스(FotoRus) Pip
포토러스(FotoRus) Pip포토러스(FotoRus) Pip
포토러스(FotoRus) Pip
 
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
 
Direccion de proyectos en sectores tecnologicos
Direccion de proyectos en sectores tecnologicosDireccion de proyectos en sectores tecnologicos
Direccion de proyectos en sectores tecnologicos
 

1122010 question

  • 1. Click here to get Solution on ProgAnswer.com The TestStudent.cs program on the next page calculates the average score of a single student on three exams. Enhance this program by making the following changes: 1) Add a integer Student Id to the attribute list as well as a getId() method. 2) Besure to update the constructor to allow the user to enter the Id. 3) In the main, allow the user to enter the number of students and create an array of Student objects based on the number entered. 4) Allow the user to enter the number of scores for each student. Declare an array of scores in the attribute list of the Student class definition. Allow the user to enter the number of test scores for each student by making the appropriate changes to the constructor and the calcAverage() method of the Student class. 5) Print a report as shown below.