Difference between revisions of "Tech Support Flow Chart Assignment"
From WLCS
(Created page with "'''Objective:''' Create a program that asks the user various questions that leads them through the Image:GeekDatingChart.jpg '''Competencies:''' * 043 Design a program using...") |
|||
Line 1: | Line 1: | ||
− | '''Objective:''' Create a program that asks the user various questions that leads them through the [[Image: | + | '''Objective:''' Create a program that asks the user various questions that leads them through the [[Image:TechSupportChart.jpg]] |
'''Competencies:''' | '''Competencies:''' | ||
Line 8: | Line 8: | ||
'''Procedures:''' | '''Procedures:''' | ||
− | # Create a python script named | + | # Create a python script named techSupport.py |
# Ask the user the first question: "Do you have someone in mind? (y/n)" | # Ask the user the first question: "Do you have someone in mind? (y/n)" | ||
# Store the user's input into a variable | # Store the user's input into a variable |
Revision as of 13:19, 21 September 2012
Objective: Create a program that asks the user various questions that leads them through the File:TechSupportChart.jpg
Competencies:
- 043 Design a program using an algorithm, pseudocode, and/or a flowchart.
- 044 Code the program, using a programming language.
- 045 Execute the program with sample data.
- 046 Debug the program.
Procedures:
- Create a python script named techSupport.py
- Ask the user the first question: "Do you have someone in mind? (y/n)"
- Store the user's input into a variable
- If the variable is a "y", then proceed to ask them "Are they available? (y/n)"
- If the variable is a "n", then proceed to "GPF"
- HINT: You will have NESTED if statements as you proceed through the geek dating chart.
Example:
choice = input("Have you eaten yet today? (y/n)")
if choice == "y":
print "You ate without me?"
elif choice == "n":
choice2 = input("Would you like to get some Five Guys? (y/n)")
if choice2 == "y":
print "YES! Five Guys rocks!"
else:
print "WHAT?!? You are crazy! Five Guys rocks!"