Question: Hi, can you help me build this code? can you make it as simple as possible, please? thanks Points: 9 .6 for passing the tests

Hi, can you help me build this code? can you make it as simple as possible, please? thanks
Points: 9 .6 for passing the tests on zyBoos .2 for reasonahle laop structure to read and calculate tho sum and numher of scores (thiswill be checked by a grader .1 for finishing comment header (this will be checked by a grader Description: This assignment is to write a program to read unknown number of scares double typel from the keyboard and calculate the sum and average of the scores. The program will repeatedly read positve scores until it reads a non-postive rumber, such as or negative value. After reading the nan-positive score, the program should autput the sum and the average to the screen. Make sure the last input will not be part of the result. For example, If the user enters -12 to quit (as belowl, then -12 should not be part of the calculation. You don't need to use an array to store all the scores we haven't learned it so far, but most irmportantly, it is not necessary!l. Use variaoles to store the sum and number ot scores as you read (read he texttaok if you dan't knaw haw to da , and calculate the average after the user cnters the nan positive value Program Dutput: run Enter a positive ecore (o or negative to quit) 90.1 Enter a positive score (o or negative to quit): 92 Enter a poitive score (0 or negative to quit) 3.5 Enter a positive ecore (o or negative to quit]i -12 The aum is: 275.60, average ia: 91.87
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
