Week 3 Activity Laundry Lesson

profilexoon
cis115_wk3_exercise2_laundrylesson.pdf

Name:_________________

2/22/2011 CIS115 Laundry Lesson Page 1

TCO #4 – Given a simple business problem that requires one or more decisions, create a solution algorithm that uses decisions with logical and relational expressions. TCO #9 – Given a program with logic errors that is intended as a solution to a simple business problem, employ debugging diagnostics to remove and correct the errors. Assignment: This is another collaborative effort –work with one or two other people to solve the laundry problem. Gather your laundry and supplies to prepare for the Laundromat adventure. Remember, most of us have a limited amount of cash. Write an algorithm to prompt & accept the estimated number of wash loads and the estimated number of loads needing a dryer. You also need to ask the user if they remembered to bring soap! For each wash load, charge 2.00. For each dryer load, charge another 1.50. If it’s time to purchase soap, add 7.00 to the cost of doing the laundry. If you’d like to add fabric softener, then add 4.00 to the cost of the laundry. The program should then calculate & display the total cost of doing the laundry. Be sure to THINK about the logic and design first (IPO chart and or pseudocode), then code the Visual Logic command line processing. Rubric: When completed staple the following documents together neatly in 1,2,3,4 order:

1) This instruction sheet first 2) The IPO Chart, second 3) The Pseudocode, third 4) The Flowchart and output example last.

Point distribution for this application:

Laundry Lesson

Document: Points possible: Points received

IPO Chart 5

Pseudocode 5

Flowchart and output 10

Total Points 20

Week 3 Activity – Laundry Lesson

2/22/2011 CIS115 Laundry Lesson Page 2

IPO Chart:

Input Processing Output

Pseudocode: Begin laundryLesson End Flowchart: Example Output after execution: