a1q2-errors

a1q2-errors - Line 39, addition (+) sign missing. Should be

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 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: 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

This note was uploaded on 12/29/2010 for the course COMP 202 taught by Professor Verbrugge during the Fall '07 term at McGill.

Page1 / 2

a1q2-errors - Line 39, addition (+) sign missing. Should be

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