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

- Spring Framework 4.1 - First Release candidate available
- java how to get domain name from url
- incompatible types: Row cannot be converted to XSSFRow
- Hibernate ORM 4.2.14.Final released
- how to set running watch with descending order in applycation with ajax
- how to set running watch with descending order in applycation with ajax
- pdf to voice converter
- mysql select into table from another table example
- MySQLselect into new table Example code
- Problem in populating tableview with database data using javafx MVC architecture.