1 / 14

Decision Structure in Java

Decision Structure in Java. Teacher: Mr. Ho. Agenda. Review: Software Development Life Cycle Decision Structure in Java Work Period: In-Class Exercise Bonus Question. What is Software Development Life Cycle?. Software Development Life Cycle. User Requirements. Planning & Design.

ciara
Download Presentation

Decision Structure in Java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Decision Structure in Java Teacher: Mr. Ho

  2. Agenda • Review: Software Development Life Cycle • Decision Structure in Java • Work Period: • In-Class Exercise • Bonus Question

  3. What is Software Development Life Cycle?

  4. Software Development Life Cycle User Requirements Planning & Design Implementation in Java Testing Maintenance

  5. Decision Structure in Java

  6. User Requirements • Write a computer program that: • Asks the user for a temperature value (in oC) • Outputs that it is cold if the temperature is less than 5oC

  7. Planning & Design  IPO Input Processing Output temperature temperature < 5 “cold”

  8. Planning & Design  Flowchart Start Prompt & ask for temperature (in oC) temperature < 5 YES Output “cold” No End

  9. Implementation in Java • See BlueJ files

  10. Testing • What is testing? • Why do we need to do testing?

  11. Testing – Test Plan Test Cases: Does our program work correctly?

  12. Maintenance • Write descriptive comments in the Java code

  13. Questions & Answers ?

  14. In-Class Activities • Go to the course web page at http://computerNHSS.wikispaces.com • Download today’s lesson and “2 – In-Class Activity on Decision Structure.docx” • Work on the In-Class Activity: • Follow the software development life cycle (i.e., planning & design, implementation, test plan, and maintenance) • If you are finished, let Mr. Ho know. • Bonus: • The temperature program in today’s lesson has a minor design flaw. Identify it and fix it. Then, you will get a bonus mark.

More Related