Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Start Write a program that will initialize variables to zero, and give the user instructions. (ie. Enter a list of non-negative scores, entering the last

image text in transcribed
Start Write a program that will initialize variables to zero, and give the user instructions. (ie. Enter a list of non-negative scores, entering the last number as a negative. In order to compute the average) Request user input Then read in a number and the integer, and accumulate the value till you enter an negative value to break out of the statement. Then display either the (number of scores entered and the resulting average number) or (no scores entered). Then end the program. You can use System.in, System.out, or JOptionPane Read & Store into variables Count = 0 No scores entered Entered value >= 0 Print # of scores read in and also the average value Accumulate total, increment count, read & store input Stop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Solve the following the equation. 8-0.5(x+3)=0.25(x-1)

Answered: 1 week ago