Presentation is loading. Please wait.

Presentation is loading. Please wait.

DECISION STRUCTURE IN JAVA TEACHER: MR. HO. AGENDA Review: Software Development Life Cycle Decision Structure in Java Work Period: In-Class Exercise Bonus.

Similar presentations


Presentation on theme: "DECISION STRUCTURE IN JAVA TEACHER: MR. HO. AGENDA Review: Software Development Life Cycle Decision Structure in Java Work Period: In-Class Exercise Bonus."— 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 o C) Outputs that it is cold if the temperature is less than 5 o C

7 PLANNING & DESIGN  IPO temperaturetemperature < 5“cold” InputProcessing Output

8 PLANNING & DESIGN  FLOWCHART Start Prompt & ask for temperature (in o C) temperature < 5 Output “cold” End YES No

9 IMPLEMENTATION IN JAVA See BlueJ files

10 TESTING What is testing? Why do we need to do testing?

11 TESTING – TEST PLAN Temperature (in o C)Expected OutputActual Output 2.4It is cold. 7.5It is warm. 32.5It is hot. Test Cases: Does our program work correctly?

12 MAINTENANCE Write descriptive comments in the Java code

13 QUESTIONS & ANSWERS ?

14 IN-CLASS ACTIVITIES 1.Go to the course web page at http://computerNHSS.wikispaces.com http://computerNHSS.wikispaces.com 2.Download today’s lesson and “2 – In-Class Activity on Decision Structure.docx” 3.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. 4.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.


Download ppt "DECISION STRUCTURE IN JAVA TEACHER: MR. HO. AGENDA Review: Software Development Life Cycle Decision Structure in Java Work Period: In-Class Exercise Bonus."

Similar presentations


Ads by Google