Understanding Decision Structures and Software Development Life Cycle in Java Programming
In today's lesson, we will explore the fundamental concepts of Decision Structures in Java and the Software Development Life Cycle (SDLC). We'll begin by reviewing the SDLC phases: user requirements, planning and design, implementation, testing, and maintenance. The class will engage in an in-class exercise where you will write a Java program that prompts the user for a temperature value and determines if it is "cold." Additionally, we'll discuss testing and the importance it holds in software development. Complete today's activities to gain insight and earn a bonus mark by fixing a minor design flaw.
Understanding Decision Structures and Software Development Life Cycle in Java Programming
E N D
Presentation Transcript
Decision Structure in Java Teacher: Mr. Ho
Agenda • Review: Software Development Life Cycle • Decision Structure in Java • Work Period: • In-Class Exercise • Bonus Question
Software Development Life Cycle User Requirements Planning & Design Implementation in Java Testing Maintenance
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
Planning & Design IPO Input Processing Output temperature temperature < 5 “cold”
Planning & Design Flowchart Start Prompt & ask for temperature (in oC) temperature < 5 YES Output “cold” No End
Implementation in Java • See BlueJ files
Testing • What is testing? • Why do we need to do testing?
Testing – Test Plan Test Cases: Does our program work correctly?
Maintenance • Write descriptive comments in the Java code
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.