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

  System for the school administrative

Willowbrook School is a small private school that has retained your services as a systems analyst to assist in the development of a new information system for the school's administrative needs.

  Write a complete program in a class named showdesign

Write a complete program in a class named ShowDesign that uses the DrawingPanel The window is 200 pixels wide and 200 pixels tall. The background is white and the foreground is black.

  How to address the task of gathering requirements for system

For the situation in question 1, what project management tools and techniques would you use to help manage this effort? Please elaborate briefly on how you would use them in your response.

  How to create file autorun.inf on usb

How to create file autorun.inf on USB - You need to create file autorun.inf on USB. Who can help me? Thanks

  Find a recurrence relation for the number

Find a recurrence relation for the number of bit strings that contain the string 01 . what are the initial condition , and how many bit strings of length seven contain the string 01. please explain it fully step by step to better undestand

  Develop the boolean expression for y4

Develop the Boolean expression for Y4 in the 3-to-8 decoder circuit shown below. Input C is the most significant bit. (You may use an apostrophe to indicate negation; e.g. Y = Y)

  Discuss what settings are often changeable via the keyboard

1. Discuss what settings are often changeable via the keyboard on a notebook, such as volume, screen brightness, and Bluetooth and/or Wi-Fi.2. The touchpad device should be the laptop's primary pointing device, but other options are the TrackPoin..

  Describe how e-commerce begin and what made it successful

1). Describe how e-commerce begin and what made it successful. 2). Explain the advantages and disadvantages of outsourcing when it comes to technology.

  0.4 of students are women and gpa for women

0.4 of students are women and gpa for women has mean of 3 and sd 0.8; Gpa for men has mean of 2.5 and sd of 1.0. a sample size of 100 students which consist 40 women and 60 men.

  How does this complicate the job of dns

How does this complicate the job of DNS? How does this affect the problem of finding your local DNS server?

  Demonstrate the both the commit and the rollback

Write a script to test your procedure. Demonstrate the both the commit and the rollback.

  What is the drawback of using end-to-end security

What is the drawback of using end-to-end security? Provide examples and arguments to support your viewpoint.

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