Computers and Technology
Computers and Technology, 03.06.2021 20:20, owlsandR5

I WILL GIVE 100 POINTS NOW PLEAS 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.

Decide on a question to ask the user. Some ideas include:

What grade are you in?

What sport do you play?

Where did you go on vacation?

Use one variable to store the response.

Use one if-else statement to make a decision based on the user's input.

Display two messages; one for each condition (True and False).

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

Flowchart Write it out

Flowchart: Input leads to if statment. If true print response. if false print different response. Program ends. Get input:

If statement:

Print if true:

Print if false:

Part 2: Code the Program

Use the following guidelines to code your program.

Use the Python IDLE to write your program.

Using comments, type a heading that includes your name, today’s date, and a short description.

Set up your def main(): statement. (Don’t forget the parentheses and colon.)

Write one if-else statement using user input.

Include a print message for both conditions (True and False).

Conclude the program with the main() statement.

Follow the Python style conventions regarding indentation in your program.

Run your program to ensure it is working properly. Fix any errors you may observe.

When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.

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.

Part 4: Save Your Work

Don't forget to save this worksheet. You will submit it for your assessment.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:00, jahi1201
Ahorse is how much percent more powerful than a pony
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, mikey3882
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 22.06.2019 22:40, nsuleban9524
When you type the pwd command, you notice that your current location on the linux filesystem is the /usr/local directory. answer the following questions, assuming that your current directory is /usr/local for each question. a. which command could you use to change to the /usr directory using an absolute pathname? b. which command could you use to change to the /usr directory using a relative pathname? c. which command could you use to change to the /usr/local/share/info directory using an absolute pathname? d. which command could you use to change to the /usr/local/share/info directory using a relative pathname? e. which command could you use to change to the /etc directory using an absolute pathname? f. which command could you use to change to the /etc directory using a relative pathname?
Answers: 3
image
Computers and Technology, 23.06.2019 19:30, Felixthecat7186
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 3
Do you know the correct answer?
I WILL GIVE 100 POINTS NOW PLEAS Output: Your goal

You will write a program that asks a...

Questions in other subjects:

Konu
Mathematics, 16.10.2020 09:01
Konu
Mathematics, 16.10.2020 09:01
Konu
Mathematics, 16.10.2020 09:01