Unit 1-04

Learning Outcome

At the end of this lesson, you will be able to:

  • create an application that uses if statements

Silent Watching

Review

  • review the Maple Log solution

Lesson

  • go over "Selection", Chapter 3
    • Computer Based Problem Solving

Activity

  • read the following problem:
    • A small microwave is being built just to reheat lunch items. The user selects the items and the number of them that they placed in the microwave (max 3 and they must all be the same items). The engineers have figured out the correct time to heat 1 of each item. It is also known that if you have 2 of them, you should increase the time by 50% and if you have 3 of them you increase it by 100%. Use the following items:
      • sub - 1 minute
      • pizza - 45 seconds
      • soup - 1.75 minutes
  • create the first 4 steps of a "Computer Programming 6 Step" problem-solving model for the above question
  • use "proper" flowchart symbols and show me before proceeding

Daily Assignment

  • post the solution and then the final program on your website
    1. top-down design
    2. flow-chart
    3. pseudo-code
    4. at least three (3) test cases calculated out using some other method then your program (ensure you show how you calculated each one of them out!)
    5. actual code
    6. three screenshots of the program working (with actual values from your test cases above)
    7. link and screenshot of Github repo
  • once your first 2 steps are done, code the next 3
    • post all items to your notebook

Extra

  • answer the above question in a second language