Northern Virginia Community College Sequence and Decisions Using Simple Conditions

User Generated



Northern Virginia Community College


Program Structure - Sequence and Decisions Using Simple Conditions

Understand program structure by reading the following:

Webber (2010). Modern Programming Languages: A Practical Introduction (2nd e.d.). Wilsonville, OR: Franklin Beedle and Associates.

While you read, understand the following topics:

a)Structured vs. unstructured logic

b)Characteristics of structured program

c)The three basic structures (sequence, decision, and repetition)

d)The reasons for structure (clarity, professionalism, efficiency, maintenance and modularity)

Learn how to logically create a simple decision. Think about what you already know about Boolean logic.

a) Understand relational operators
b) Understand Boolean logic
c) Create simple Boolean conditions
1. Review the following document as much as possible - A First Look at Java - ([Comparison and Boolean Operators], and [if and while statements]).
After reading, compare what you already knew about Bolean Operators to what you learned in the reading.

Learn how to structure a program using sequence and decision structure. While reading the Step 3 resources, examine the following topics:

a)Types of decision structures

b)Stack and nest sequence and decision structures to structure a program

c) Create a decision structure using simple decision and stacked structures.


- RAPTOR official Website

-To learn more about the logic of making decisions and program structures, in particular, program structures, watch the following videos:

Raptor Compute Change

Decision Structures in Raptor

Raptor Nested Decision Structure

Task Directions: Task 5 deliverables by week 5 deadline

write a program in Raptor or in Java that solves the following problem: Given input of the day of the week and the current weather conditions (Bad or Good), display the form of transportation (car, bus, or bike) given by the following chart:

Mode of Transportation
BusM/W N/A
CarT/F always on Bad days
BikeThurs only on Good days

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


I was having a hard time with this subject, and this was a great help.

Similar Content
Related Tags