Question: In java, Write a program to process some numbers. Ask the user to enter a number and display the number, followed by ***, followed by

In java, Write a program to process some numbers. Ask the user to enter a number and display the number, followed by ***, followed by the number squared, followed by &&&, and followed by the number cubed. Allow the user to enter as many numbers as he/she wishes. So, use a reasonable sentinel value to end the loop (for example, -999). Dont use Yes/No type prompts to exit the loop. Also, calculate and display the total of the numbers entered by the user, total of the squares and the total of the cubes. If the user enters the sentinel value at the beginning of the process, display a message that there is nothing to process.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!