{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# 1 - Introduction to Computers and Programming Prof I K...

This preview shows pages 1–4. Sign up to view the full content.

Introduction to Computers and Programming Prof. I. K. Lundqvist Recitation 1 Some suggestions … Problem solving example) If-then-else statements Yesterdays PRS question (robot) / Truth table Binary, Hex, ASCII String manipulation Sept 11 2003 – Feldman Case Study Format (the bank Little/Big Endian

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

View Full Document
Case Study Format (p19) 1) Problem Specification amount of money (positive integer only) in a bank account. than zero) to be withdrawn. in the account, by more than \$50, the program is to display a message that the transaction is refused, and the equal to the amount in the account, the transaction is in the account, by up to \$50, the program is to accept the transaction and display the new balance, with a warning that the account is overdrawn. 1. Problem specification 2. Analysis 3. Design 4. Test plan 5. Implementation 6. Testing A program is required which will ask the user for the It will then ask for the amount of money (integers greater If the amount to be withdrawn is greater than the amount unchanged balance is displayed. If the amount of money to be withdrawn is less than or accepted and the new balance in the account is displayed. If the amount to be withdrawn is greater than the amount
2) Analysis 100 Enter the withdrawal 50 Accepted . Balance is 50 76 Enter the withdrawal 150 Refused ! Balance is 76 50 Enter the withdrawal 75 Overdraft ! Balance is -25 Determine what you are asked to do: 1. Interact with user via text interface Enter balance of the account Enter balance of the account Enter balance of the account 2) Analysis • Determine what you are asked to do: 2. Act differently depending on balance in

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern