27a_Assignment_4

27a_Assignment_4 - Assignment 4 - Bank ATM Select one...

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

View Full Document Right Arrow Icon
Assignment 4 - Bank ATM Select one option from the four below. All options are worth the same number of points. The more advanced options are provided for students who find the basic ones too easy and want more of a challenge. Make sure you have read and understand the Modules Information About Programming Assignments and Style Rules for Assignments before submitting this assignment. Hand in only one program, please. OPTION A (Basic): Checking Account ATM Simulate an ATM. Start the user's checking account balance at $1000. Then, entering a user-input loop, giving the user four choices: W (Withdrawal) D (Deposit) B (Show Balance) Q (Quit) The user enters a single character (plus the enter key) and the program continues as appropriate: If 'W', ask for an amount. Subtract the amount from the balance, display the new balance and continue with the main loop. If 'D', ask for an amount. Add the amount from the balance, display the new balance and continue with the main loop. If 'B', display the new balance and continue with the main loop.
Background image of page 1

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

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

This note was uploaded on 05/21/2011 for the course CIS 27A taught by Professor Unknown during the Spring '07 term at Foothill College.

Page1 / 2

27a_Assignment_4 - Assignment 4 - Bank ATM Select one...

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