You are on page 1of 4

01.

04 Documenting & Debugging

Name: Anshi Prem

Directions

This assessment has three parts. Choose one of the options provided below:

Scenario Option 1: You’re volunteering for an organization whose mission is to raise awareness
in high schools about the impact of voting. They would like you to build them a program they
can use at events. The program should have a conversation with the user that asks them their
current age, why they think voting is important, and tell them how many years until they can
register to vote.

Scenario Option 2: Do you enjoy being creative and making up your own scenarios? If you do,
then this option is for you! Come up with any scenario for this assignment as long as you do the
following:

 Scenario must be about making the world a better place.


 Ensure people reading your code understand your scenario (do this with lots of
comments).
 Follow the requirements described below.

Part One: Algorithmic Design and Pseudocode

Use the algorithmic design stage of computational thinking to design a program. Remember that
algorithmic design is where you create step-by-step instructions to solve a problem. This must begin with
pseudocode, then be translated to Python using your pseudocode as a guide.

Write your pseudocode where indicated below. Your pseudocode should be written in English (not
Python), indicate a conversation about improving the world, and must:

be written in a series of steps that reflect algorithmic design


include at least three interactive prompts
assign user input to variables to be used throughout the program. (For example, this could be
their name or age.)
print a tip on the importance of your selected topic

Example of expected output: The output for your program should resemble the following screenshot.
Your specific results will vary depending on the choices you make about the conversation and the input
provided.
Write your pseudocode here:

Input:

- Ask user’s name


- Ask user about what they know of Jesus
- Ask user if they know why this month is special

Output:

- Display text about introduction


- Display text, appreciating the user for their knowledge
- Display text about the good news.
- Display text engaging the user to share the good news

Part Two: Algorithmic Design and Program Code

Use the Python IDLE built into this course to code and run your program. Your code must:

Use comments for internal documentation (including a heading with your name, today’s date,
and a short description of the program). Remember that you can copy/paste much of your
pseudocode for this internal documentation.
use concatenation to join string literals and string values–Hint: print("This is a string
literal " + name + ", that was followed by a value and another
string literal.")
Follow the Python style conventions regarding indentation and the use of white space in your
program.
Run successfully and produce output similar to the example above.
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 turn in this Python file separately.

My code:

#Anshi, 12/13/22, This program is created to spread the good news about christmas

def main():

print("Hello friend!")

#Asking user for input about their name

name = input("What is your name?")

#Introducing by concatenating strings

print("Hello " + name + ", Nice to meet you! I am Anshi")

#Using variabes to name input

knowledge = input("So what do you know about Jesus?")

print("That's great knowledge right there! Well, did you know this month is special for Jesus and
all his children on Earth?")

#User input combining If statement

answer = input("Enter Yes/ No")

#If statement changes according to user input

if (answer == "Yes"):

print("That's great! This month is the month that God gave his own son, our Messiaha to
us, his children. God came down to earth in the form of a human, to fulfill his promise to never let us go
and to make sure we go to him once out time on this planet is over.")
if (answer == "No"):

print("Don't worry my friend I'll tell you why this month is special. This month is the
month that God gave his own son, our Messiah to us, his children. God came down to earth in the form
of a human, to fulfill his promise to never let us go and to make sure we go to him once out time on this
planet is over.")

#Telling the user to share the good news about Jesus

print("Well, now that you know, you should share the good news with others. That Jesus christ,
our Messiah is coming to this world again to save us.")

main()

Part Three: Generalize & Assess with a Post Mortem Review

Complete the Post Mortem Review (PMR). Write thoughtful two- to three-sentence responses to all the
questions in the PMR chart.

Post Mortem Review Question Response

What was the purpose of your program? To tell the user about the promise of God

How could your program be useful in the real The user would learn new information they
world? haven’t heard before (ex: someone of different
religion who didn’t know why Christmas is
celebrated)

What is a problem you ran into, and how did you I didn’t run into any problems
fix it?

Describe one thing you would do differently the I want to make my program user friendly and
next time you write a program. give more control to my user.

How could your program be generalized and It can be used as a software to spread the Good
useful in other areas? news about Christmas to the world.

You might also like