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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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