Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91775709
  • Price:- $40

Priced at Now at $40, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Quesiton for completion of the program use arrays and

Quesiton: For completion of the program, use arrays and files. Instead of prompting the user for the prices of the book, update the website program to reflect the following changes: • Read the prices into an array from a ...

What are the best practices to follow for microsoft windows

What are the best practices to follow for Microsoft Windows network security. Which two would you start with and why?

Please explain to me the concept of policing with emphasis

Please explain to me the concept of policing with emphasis on the "leaky bucket" mechanism

As the school year begins what trends are taking place with

As the school year begins, what trends are taking place with Educational Technology in schools?

Question 1conduct research to determine three types of

Question: 1. Conduct research to determine three types of computer crime. Please provide a detailed description for all crimes, and share an example of where an organization was impacted by each of the types. 2. Elaborat ...

Why are we in the golden age of technology entrepreneurship

Why are we in the 'golden age' of technology entrepreneurship? What factors are helping entrepreneurs more rapidly achieve their vision, and with a lower cost?

How do you calculate the annual interest rate of 12

How do you calculate the annual interest rate of 12% compounded monthly. I know how to do for annually but not monthly. You are offered the opportunity to put some money away for retirement. You will receive 10 annual pa ...

Question need a discussion post of 500-700 words in apa

Question: Need a discussion post of 500-700 words in APA format with 4 references & citations. Only For Dr. Silvercoast Which of these principles can you apply at your workplace? Select one or two and provide examples. O ...

Assignmentbullselect two systems in the lab or at home on

Assignment • Select two systems in the lab (or at home on the same LAN) make sure that they you are able to pass messages between them • Establish Wireshark on one of the systems and be sure that you can see all the mess ...

Suppose that on your birthday you checked the balance on

Suppose that on your birthday you checked the balance on your retirement account and you decided to make a $1,000 payment at the end of every month until you retire at the specified age. If you disreagard the inflation ( ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As