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

- java program
- Interview question.
- in Spring MVC, i would like to download my Mysql database table in pdf,msword,excel formats.
- Convert BLOB to PDF and save it to a location
- Split Data
- Interface in javascript
- how to copy files from remote to local machine using SFTP SSL in java?
- Like Team viewer
- Socket and Servert -Jsp
- swing to applet