Program which calculate total average of student

Assignment Help Basic Computer Science
Reference no: EM131051290

Write a program that calculates the total average of each student in a class along with his/her letter grade and then displays information about the student with the highest score and the student with the lowest score and displays the list of all the students along with their exam scores, their total average and their corresponding letter grade.  The program should also output the average of each test and the final average of the class. 

Assume ten students in the class, declare the following inputs:

  1. An array that holds the last names of the students.
  2. An array to hold the first names of the students.
  3. An Array for the grades of Test 1 for each student.
  4. An Array for the grades of Test 2 for each student.
  5. An Array for the final exam grades for each student. 

To calculate the letter grades: 

1. First write a method the finds the total average of each student assuming the weight for the final exam is 45%, and a weight of 25 % for the minimum grade between tests 1 and 2 and 30% for the test with the higher grades between Tests 1 and 2. 

2. Based on the total average, write a method that finds the letter grade as follows:

  • A if 90<= Total Average <=100.
  • B if 80<= Total Average <90.
  • C if 70<= Total Average <80.
  • D if 60<= Total Average <70.
  • F if Total Average <60. 

To display the required output: 

1. Write a method that calculates and displays the averages for Test 1, Test 2 and the Final Exam as well as the class average. 

2. Write a method that finds the student with the highest average and displays the information about the student in the following order: 

Last name, First name, Test 1 score, Test 2 Score, Final Exam score, Total average, Letter grade. 

3. Write a method that finds the student with the lowest average and displays the information about the student in the following order: 

Last name, First name, Test 1 score, Test 2 Score, Final Exam score, Total average, Letter grade 

4. Write a method that displays the information about all the students in the form: 

Last name, First name, Test 1 score, Test 2 Score, Final Exam score, Total average, Letter grade. 

Use the following table as your input.

Last Name

First name

Test 1

Test 2

Final Exam

Sal1

Has1

96

73

85

Sal2

Has2

73

89

69

Sal3

Has3

89

70

71

Sal4

Has4

83

63

30

Sal5

Has5

31

52

50

Sal6

Has6

77

87

94

Sal7

Has7

92

61

80

Sal8

Has8

87

83

91

Sal9

Has9

85

94

72

Sal10

Has10

45

97

67

Final Step:

Redo the task using objects.  You need to create a class named Student that has the appropriate data fields and methods. Example of methods in class Student are StudentAverage to find the average of each student and StudentLetterGrade to find the corresponding letter grade of the student.  To cover all the students in the class, create an array of objects where each object is a student.

Reference no: EM131051290

Questions Cloud

Why would people maintaining the system prefer one to other : What are the economic advantages of each? Why would people maintaining the system prefer one to the other? How popular is each network today? How do they compare to proprietary commercial networks such as Myrinet and Quadrics?
Discussion-hierarchical file systems : Every operating system needs a file system to save and retrieve data. Most file systems have various strengths and weakness associated with flexibility, reliability, performance, scalability, security, and fault tolerance. Various types of file sy..
Create a work breakdown structure and project schedule : QSO 640 - The analysis of the case should include an evaluation of the selection criteria, a ranking of proposals, a project initiation approval, and the steps required to create a work breakdown structure and project schedule development.
X-ray patients arriving every hour and a mean service rate : 1. You are the radiology manager. You have 8 x-ray patients arriving every hour and a mean service rate of 12 per hour. What is your capacity utilization? What is the average wait time? What is the average time in the system?
Program which calculate total average of student : Write a program that calculates the total average of each student in a class along with his/her letter grade and then displays information about the student with the highest score and the student with the lowest score and displays the list of all ..
What would be the estimated impact on cost of the equipment : What would be the estimated impact on cost of the equipment
Which items is most likely to appear on a balance sheet : Which of these items is most likely to appear on a balance sheet? Which of the following represents the correct order (from left to right) for the items shown?
How popular is each network today : How popular is each network today? How do they compare to proprietary commercial networks such as Myrinet and Quadrics?
How did you feel about the way the character was depicted : How did you feel about the way the character(s) was depicted? Explain. After seeing the film, do you believe audiences come away having a better understanding of the disability and the challenges it presents? Why or why not?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Work breakdown structure code for each task

Use Microsoft Project to create a WBS which: a. Contains at least five (5) main tasks, one for each of the PMBOK® process areas. b. Contains at least sixty (60) line items distributed in ten (10) or more work packages.

  Flexsim model for a stylist shop

Customers arrive according to a uniform distribution of unif(10,20) minutes. A single stylist works on a customer for unif(15,30) minutes. Run the model for an initial 10 replications.

  Preparing for a company-wide migration to windows 8

Crescent Manufacturing Inc. (CMI) is a luxury leader in crafted and customized home furnishings. The corporate headquarters and a production facility are located in Texas, with additional manufacturing facilities located in Nebraska and Maryland.

  Create a 3-d clustered column chart of the divisions

Create Line sparklines in column F in the Earnings sheet to show the trend by quarter for each division. Show the high point for each sparkline. Apply the Sparkline Style Colorful #5 style. Create a 3-D Clustered Column chart of the divisions and t..

  Fundamental advantages and disadvantages of using software

Discuss the fundamental advantages and disadvantages of using software as a service (SaaS) within organizations. Next, give your opinion as to why SaaS has become a common delivery model for many business applications.

  Determine the mix of cargo

The load master for a freighter wants to determine the mix of cargo to be carried on the next trip. The ship's volume limit for cargo is 100,000 cubic meters, and its weight capacity is 2,310 tons.

  Calculate and display the total retail value of all products

calculate and display the total retail value of all products sold. Use a sentinel-controlled loop to determine when the application should stop looping display the final results.

  Write down the vbscript code that employs a do until loop

question 1. write the vbscript code that uses a do until loop to display all of the integer values stored in the array

  Develop system models based on the unified modeling

you have been asked to develop uml diagrams to graphically depict and describe the architecture of two 2 unrelated

  Boolean variable called wantstoppings

After reading the input character, the program shall assign a value to a Boolean variable called  wantsToppings ( true  for a customer who wants toppings,  false  for a customer who does not).

  Create a formula in the last cell on the last row to average

Create a formula in the last cell on the last row to average the Salary column. In the Formula dialog box, remove the suggested function, but leave the =, and paste an Average function, indicating that the average should include the numbers Above.

  Summary of physical tamper-resistant

Summary of physical tamper-resistant devices how to approach this homework question: a. First, make a list of all of the different types of physical tamper-resistant devices and their characteristics.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd