Week 3 Activity Laundry Lesson
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.
12 years ago
Purchase the answer to view it
- lndry.zip