Java-1 Answers

Java-1 Answers - Kenneth OMalley Starting Out with Java:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Kenneth O’Malley Starting Out with Java: From Control Structures through Objects Week 1 Homework 01/21/09 Multiple Choice Answers 1. B 2. D 3. A 4. C 5. B 6. B 7. C 8. D 9. A 10. B 11. A 12.C 13. B 14. D Find the Error - Solution 1. The first line of pseudocode contains a function with an invalid operator, rather than describing the mathematical operation. In addition the order of operation is not properly reflected in the example. The pseudocode should appear as follows: Display “What is the room’s width?”. Input width. Display “What is the room’s length?”. Input length. Store the value of width times length in the area variable. Display area. Algorithmic Workbench – Solution 1. Display “What is the costumer’s maximum amount of credit?”.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Kenneth OMalley Starting Out with Java: From Control Structures through Objects Week 1 Homework 01/21/09 Input maximum. Display What amount of credit has been used by the costumer?. Input used. Store the value of maximum minus used in the available variable. Display available. 2. Display What is the retail price of item being purchased?. Input retail. Display What is the sales tax rate?. Input rate. Store the value of rate times .01 times retail in the tax variable. Display tax. Store the value of retail plus tax in the total variable. Display total....
View Full Document

This note was uploaded on 04/23/2010 for the course CISY- 103-9 taught by Professor Reddy during the Spring '10 term at Raritan.

Page1 / 2

Java-1 Answers - Kenneth OMalley Starting Out with Java:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online