# Chapter 08 Program CS166

Anonymous
account_balance_wallet \$10

### Question Description

Create a folder named Chapter 08 Program and use it to create a Java program to do the following:

### Unformatted Attachment Preview

CS 166 02 Program Assignment 05 Chapter 08 20 Points Name ____________________________________ Due: Thursday, November 1, 2018 Create a folder named Chapter 08 Program and use it to create a Java program to do the following: Console Welcome to the Squares and Cubes table Enter an integer: five Error! Invalid integer. Try again. Enter an integer: -5 Error! Number must be greater than 0 Enter an integer: 101 Error! Number must be less than or equal to 100 Enter an integer: 9 Number ====== 1 2 3 4 5 6 7 8 9 Squared ======= 1 4 9 16 25 36 49 64 81 Cubed ===== 1 8 27 64 125 216 343 512 729 Continue? (y/n): y Enter an integer: 3 Number ====== 1 2 3 Squared ======= 1 4 9 Cubed ===== 1 8 27 Continue? (y/n): n Operation • • • The application prompts the user to enter an integer. The application displays a table of squares and cubes from 1 to the value entered by the user. The application prompts the user to continue. • The formulas for calculating squares and cubes are: • • Assume that the user will enter a valid integer. The application should continue only if the user enters “y” or “Y” to continue. Specifications square = x * x cube = x * x * x Validation • Be sure the value entered is an integer and that it is greater than 0 and no more than 100. Add the following comments to the top of your source code: • Name • Class and Section (CS 166 02) • Assignment (Chapter 08 Program) • Due Date: (see above) • Description of the program What to turn in 1. Turn in this sheet with your name on it. 2. Copy the Chapter 08 folder into your folder in the I:\kopp\inbox\CS 166 02 folder. ...
Purchase answer to see full attachment

onesmasd
School: University of Virginia

Hey, I am thr...

flag Report DMCA
Review

Anonymous
Thank you! Reasonably priced given the quality not just of the tutors but the moderators too. They were helpful and accommodating given my needs.

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors