Comment

Angela Royal

August 25, 2010 at 8:26 PM

If you could, I am so lost on a java assignment for school that I have to do, can you offer assistance on creating the code for the below assignment:

A teacher at a local elementary school has asked your company to create a program to perform a computation using a number input by the user. The user may choose to square, cube, double, or halve the number. The result should be output to the screen. After the result is displayed, the program should prompt the user to enter another number and select another computation or exit the program. Remember: The square of a number is the number multiplied by itself (2 squared is 2 * 2). The cube of a number is the number multiplied by itself 3 times (3 cubed is 3 * 3 * 3). Double the number is the number multiplied by 2. Half the number is the number divided by 2. Your solution must include case logic and looping logic. Your solution must include 5 parts in addition to the coded solution

View All Comments | View Tutorial

A teacher at a local elementary school has asked your company to create a program to perform a computation using a number input by the user. The user may choose to square, cube, double, or halve the number. The result should be output to the screen. After the result is displayed, the program should prompt the user to enter another number and select another computation or exit the program. Remember: The square of a number is the number multiplied by itself (2 squared is 2 * 2). The cube of a number is the number multiplied by itself 3 times (3 cubed is 3 * 3 * 3). Double the number is the number multiplied by 2. Half the number is the number divided by 2. Your solution must include case logic and looping logic. Your solution must include 5 parts in addition to the coded solution

View All Comments | View Tutorial

Related Tutorial and Articles

Advertisements
Advertisements

- JQuery-JSP AJAX example not working
- Starting MySQL.. ERROR! The server quit without updating PID file
- I need help on my Java code.... please please help me out!?
- calling one jap page from another jsp page
- Industrial problem
- please help java
- jquery issue plese help
- [Mini-Project]
- Jcombobox
- display database results