Solved: A program that calculates average of math, science grade…

$30.00

Category:

Description

Solved: A program that calculates average of math, science grade…

Write a java program that calculates average of math, science grade as well as total class average. The class gets following math and science grade of mid-term:

MATH SCIENCE
80.5 25.5
100 92.5
75.0 65.5
82.3 79.6
35.9 22.7
73.6 66.2
88.9 98.7
46.2 62.3
100 100
97.8 99.5

Your program should meet following requiements:

  1. The program must declare two-dimensional array to save all data above.
  2. The program must use nested for loop to calculate math, and science average as well as total class average.
  3. The program only allow two decimal palces. (Example: 25.54)

Sample Run:

Class Average: 74.64
Math Average: 78.02
Science Average: 71.25


error: Content is protected !!