subject

Write a program that will input a list of test scores in from the keyboard. When the user enters -1, print the average. What do you need to be careful about when using -1 to stop a loop?
Sample Run:

Enter the Scores:
45
100
-1

The average is: 72.5

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Looking at the electroscope, describe how you can cause the two leaves at the bottom to repel each other and stay that way
Answers: 3
question
Computers and Technology, 25.06.2019 02:30
How to delete a question in
Answers: 2
You know the right answer?
Write a program that will input a list of test scores in from the keyboard. When the user enters -1,...
Questions
question
Mathematics, 02.10.2020 14:01
question
History, 02.10.2020 14:01
question
World Languages, 02.10.2020 14:01
question
Mathematics, 02.10.2020 14:01
question
English, 02.10.2020 14:01
question
Mathematics, 02.10.2020 14:01
Questions on the website: 13722367