Week 3: Order ID 581251
Instructions:
The Test Plan for each project includes the Pseudocode, Flowchart, Goals and Objectives, Functional Requirements, and Test Matrix including Actual Output column. Below the table are screenshots verifying the actual output for each case.
How is your first Test Plan going? You’ll be creating a Test Plan for each of our Chapter 2 programming projects, and you’ll see specifics in our attached Example Test Plan. This can take longer than you think, especially the first time. I can look over your work if you email to me at least a day before it’s due.
Week 3 NOTES – Selection (if/else and switch statements)
We again have graded items due this week:
(1) Week 3 Discussion, (2) Quizzes and Projects from text Chapter 3, (3) Test Plan for each project
WEEK 3 DISCUSSION — What is a “nested if statement?”
Example of Nested If Statement:
if ( age >= 18){
if (knowsHowToDrive) { // this is “nested” inside another if statement
System.out.println(“You are eligible for a license.”); // written only if both conditions are True
TEXTBOOK WORK
We have our usual readings and practice exercises and quizzes in our textbook. Then you have graded Projects 3 and 5, in which you will use what you have learned.
Flowcharts – Notice that the selection icon in flowcharting is a diamond, with yes and no branches.
Section 3.5 of our textbook gives you a good example of a multi-way flowchart.
For Project 3:
You may need a combination of the switch and if/else statements for this one.
For Project 5:
“A picture is worth 1000 words.” Experienced programmers often draw pictures and/or go through a test example to better understand how a problem works, before writing code. Let’s do this like a pro!