subject

The Power of If Worksheet
Output: Your goal
You will write a program that asks a user to answer a question, stores the response in a variable, and then prints a message based on the response.

Part 1: Plan and Write the Pseudocode
Using pseudocode, write an algorithm that someone else can follow.
1. Decide on a question to ask the user. Some ideas include:
1. What grade are you in?
2. What sport do you play?
3. Where did you go on vacation?
2. Use one variable to store the response.
3. Use one if-else statement to make a decision based on the user's input.
4. Display two messages; one for each condition (True and False).

Insert your pseudocode here: (you only need to do one)

Write it out:

Get input:

If statement:

Print if true:

Print if false:

Part 2: Code the Program
Use the following guidelines to code your program.
1. Use the Python IDLE to write your program.
2. Using comments, type a heading that includes your name, today’s date, and a short description.
3. Set up your def main(): statement. (Don’t forget the parentheses and colon.)
4. Write one if-else statement using user input.
5. Include a print message for both conditions (True and False).
6. Conclude the program with the main() statement.
7. Follow the Python style conventions regarding indentation in your program.
8. Run your program to ensure it is working properly. Fix any errors you may observe.
Part 3: Post Mortem Review (PMR)
Using complete sentences, respond to all the questions in the PMR chart.
Review Question Response
What was the purpose of your program?

How could your program be useful in the real world?

What is a problem you ran into, and how did you fix it?

Describe one thing you would do differently the next time you write a program.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 25.06.2019 00:00
Into which of these files would you paste copied information to create an integrated document? a. mailing list b. destination c. source d. data source
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
One important thing in finding employment is to get your resume noticed and read.true or false
Answers: 2
question
Computers and Technology, 25.06.2019 13:00
What are the different components of the cloud architecture?
Answers: 1
You know the right answer?
The Power of If Worksheet
Output: Your goal
You will write a program that asks a user...
Questions
question
Mathematics, 18.10.2020 14:01
Questions on the website: 13722360