# Northern Virginia Community College Sequence and Decisions Using Simple Conditions

User Generated

xunyvsn20

Programming

Northern Virginia Community College

### Description

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.

Resources:

- RAPTOR official Website http://raptor.martincarlisle.com/

-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

#### 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
ModeDaysWeather
BusM/W N/A
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.

At...

Review
Review

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

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4