subject

Write a program to calculate students’ average test scores and their grades. you may assume the following input data: johnson 85 83 77 91 76 aniston 80 90 95 93 48 cooper 78 81 11 90 73 gupta 92 83 30 69 87 blair 23 45 96 38 59 clark 60 85 45 39 67 kennedy 77 31 52 74 83 bronson 93 94 89 77 97 sunny 79 85 28 93 82 smith 85 72 49 75 63 use three arrays: a one-dimensional array to store the students’ names, a (parallel) two-dimensional array to store the test scores, and a parallel one-dimensional array to store grades. your program must contain at least the following functions: a function to read and store data into two arrays a function to calculate the average test score and grade a function to output the results. have your program also output the class average. use the following scale to determine the letter grade: 90%–100%, a; 80%–89.99%, b; 70%–79.99%, c; 60%–69.99%, d; and 0%–59.99%, f . format your output with setprecision(2) to ensure the proper number of decimals for testing!

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 21:00, jarrettashlyn
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr. nextdouble(); minutestraveled = scnr. nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system. out. println("miles: " + milestraveled); } }
Answers: 2
image
Computers and Technology, 23.06.2019 09:00, amberpublow7
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, trippie4life
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
image
Computers and Technology, 25.06.2019 05:30, AM28
Two technicians are discussing a resistance measurement. technician a states that components being measured should be removed or isolated from the circuit. technician b states that power to the circuit should be disconnected when measuring resistance. which technician is correct?
Answers: 1
You know the right answer?
Write a program to calculate students’ average test scores and their grades. you may assume the foll...

Questions in other subjects:

Konu
Mathematics, 23.01.2021 01:00
Konu
English, 23.01.2021 01:00