Difference between revisions of "Tech Support Flow Chart Assignment"

From WLCS
Line 9: Line 9:
 
'''Procedures:'''
 
'''Procedures:'''
 
# Create a python script named techSupport.py
 
# Create a python script named techSupport.py
 
+
# Each block is an input (prompt for the user), diamond blocks are prompts that must be saved in a variable
 
+
#* Example:
 
+
#** input("Start (Press Enter to continue)")
 
+
#** button = input("Find a Menu item or button which looks related to what you want to do")
 
+
# Use if-statements to guide/direct the program flow according to the flow chart
 
 
# 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.
 
# HINT: You will have NESTED if statements as you proceed through the geek dating chart.
  

Revision as of 08:20, 21 September 2016

Objective: Create a program that asks the user various questions that leads them through the TechSupportChart.png

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:

  1. Create a python script named techSupport.py
  2. Each block is an input (prompt for the user), diamond blocks are prompts that must be saved in a variable
    • Example:
      • input("Start (Press Enter to continue)")
      • button = input("Find a Menu item or button which looks related to what you want to do")
  3. Use if-statements to guide/direct the program flow according to the flow chart
  4. 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?"
if choice == "n":
  choice2 = input("Would you like to get some Five Guys? (y/n)")
  if choice2 == "y":
    print "YES!  Five Guys rocks!"
  if choice2 == "n":
    print "WHAT?!?  You are crazy!  Five Guys rocks!"