{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

a1q2-errors - Line 39 addition sign missing Should...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 /* Muhammad Ehtasham Ulhaque (260269599) COMP 202-001 - Section 1 (Fall 2007) Instructor: Mathieu Petitpas Assignment 1, Part 2, Question 2 */ Line 7, wrong value assigned. Should be 'mochaccino = 0 Line 20, incorrect positioning of 'int'. Should be 'cappuccino = scan.nextInt() Line 26, incorrect variable name. Should be 'londonFog = scan.nextInt() Line 32, incorrect variable assignment technique. Should be 'total = cappuccino + mochaccino + londonFog + greenTea
Background image of page 1

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

View Full Document Right 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: Line 39, addition (+) sign missing. Should be 'System.out.println("You have sold a total of " + total + " cups of beverage today" ) Line 40/41, illegal way to start a string in a new line. Should be ' System.out.println("Starting with the budget of " + initialBudge Sheet1 Page 2...
View Full Document

{[ snackBarMessage ]}