Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Java The user enters a integer number, say x So long as the number is not 0, the program does the following: Accumulate the
Using Java
The user enters a integer number, say x So long as the number is not 0, the program does the following: Accumulate the value of x Asks for the next number Finally, find the sum and average of the numbers//print average with 2 decimal places//The output should be like//You have entered n integers. Sum = ?? and the average= nnn.nn;//Test your program using a) any 4 integers and b) 0. Use function; Continue from the other day; Write a method called "letterGrade" to assign the letter grade according to the score (use DTCC scoring scheme) The user asks for how many numbers to generate; For every number generate it has to be between 40..100 and call this number score; Call "letterGrade" and print the letter grade for it; Continue this process until the user enters 0 or less for step 2; Use Rand() and Array; User enters n Generate n random integer numbers which are less than 100; Print the content of the array and find max, min, sum, and average; Continue 1 to 3 until n = 5 or lessStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started