Assignment 1 - First Java program using Strings

Assignment 1 - First Java program using Strings - 45 You...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Dr. Karina V. Assiter b28e2dec95b8eb76d0ec625be15f68320c89d9e0.doc 5/13/2009 Wentworth Institute of Technology Object Oriented Programming Due: September 15, 2004 Topics: 1. Editing, compiling and running simple Java Programs 2. Strings 3. Keyboard and Console I/O Instructions 1. 2. Write a program that determines change to be dispensed from a vending machine, given that: An item in the machine can cost between 25 cents and a dollar, in 5-cent increments The machine accepts only a single dollar bill to pay for the item. For example, a sample dialog might be: Enter price of item (from 25 cents to a dollar in 5-cent increments):
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 45 You bought an item for 45 cents and gave me a dollar, so your change is: 2 quarters, 0 dimes, and 1 nickel Submitting your work: 1. Make sure that your name is in your project files. 2. If you have more than one file, make .zip files of your project(s) 3. Send your .zip file as an attachment to [email protected] with the assignment number as the title a. Be sure to include your name in the email body if you have an obscure email address (i.e., if I cannot determine who you are from your username). _________________________________________________________________...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online