# quiz.py Pseudocode:

1. The program will run.
2. The program will set initial variable.
3. The program will print the intro.
4. The program will ask the name.
5. The program will ask that question.
6. If answer isn’t a positive number or number 1-4, it will ask for a number 1-4.
7. If the answer is correct, the program will count a score.
8. If the answer is incorrect, the program will go to next question.
9. The program will repeat step 5-8 five time.
10. The program will check score.
11. The program will print result based on the score.
12. The program will end.
Advertisements

# alien.py part 2  PSEUDOCODE:

• The program will run.
• The program will set initial variable for start,week, startCheck and weekCheck.
• The screen will show an introduction about this program.
• The program will ask the user first question “how many alien landed?”
• If the answer is not positive integer, the program will set a loop back to the  first question and ask for a positive integer.
• The program will ask the user second question “how long they had landed?”
• If the answer is not positive integer, the program will set a loop back to the  second question and ask for a positive integer.
• Once both answer are positive integer the program will calculation the amount of alien after certain amount of week.
• The program will end. # Alien.py part1 Pseudocode:

• The program will start
• A introduction about this program will show on the screen
• First question “How Many Alien Landed?”
• Second question “How Long They Had Landed?”
• The user will put the number of alien landed and time measure in week.
• The program will do the equation “2^ (Week) *(number of alien)”.
• Calculation will show for the amount of week the user put
• The program will end.  # bMonth.py

#bMonth.py by HYC

print(“This program is to find out the month of your brithday.”)
print(“—–PLEASE ANSWER ALL QUESTION WITH LOWER CASE.—–“)

letter1 = input(“What is the frist letter of your month? “)

if letter1 == “j”:
letter4 = input( “What’s the fourth letter in your month? “)

if letter4 == “u”:
print(“It’s January!”)
elif letter4 == “e”:
print(“It’s June!”)
elif letter4 == “y”:
print(“It’s July!”)
else:
print(“N/A”)

elif letter1 == “f”:
print(“It’s Februnary!”)

elif letter1 == “m”:
letter3 = input(“What’s the third letter in your month? “)

if letter3 == “r”:
print(“It’s March!”)
elif letter3 == “y”:
print(“It’s May!”)
else:
print(“N/A”)

elif letter1 == “a”:
letter2 = input (“What’s the second letter in your month? “)

if letter2 == “p”:
print(“It’s April!”)
elif letter2 == “u”:
print(“It’s August!”)
else:
print(“N/A”)

elif letter1 == “s”:
print(“It’s September!”)

elif letter1 == “o”:
print(“It’s October!”)

elif letter1 == “n”:
print(“It’s November!”)

elif letter1 == “d”:
print(“It’s December!”)

else:
print(“N/A”) # hourly.py

#hourly.py by HYC

name = str(“Hongyang Chen”)
job = str(“Lawyer”)
wage = float(“119.77”)
hour = int(“13”)

print (“Hi, my name is”, name , “and I am a” ,job,”.”)
print (“I make \$”,wage, “an hour and I work” , hour, “hours a day.”)

for i in range(hour):
if i == 0:
print(“After” ,i+1,”hour,I make total of \$” ,(i+1) * wage, “.”)
else:
print(“After” ,i+1,”hours,I make total of \$” ,(i+1) * wage, “.”) # bMonth.py

#bMonth.py by HYC

print(“This program is to find out the month of your brithday.”)
print(“—–PLEASE ANSWER ALL QUESTION WITH LOWER CASE.—–“)

letter1 = input(“What is the frist letter of your month? “)

if letter1 == “j”:
letter4 = input( “What’s the fourth letter in your month? “)

if letter4 == “u”:
print(“It’s January!”)
elif letter4 == “e”:
print(“It’s June!”)
elif letter4 == “y”:
print(“It’s July!”)
else:
print(“N/A”)

elif letter1 == “f”:
print(“It’s Februnary!”)

elif letter1 == “m”:
letter3 = input(“What’s the third letter in your month? “)

if letter3 == “r”:
print(“It’s March!”)
elif letter3 == “y”:
print(“It’s May!”)
else:
print(“N/A”)

elif letter1 == “a”:
letter2 = input (“What’s the second letter in your month? “)

if letter2 == “p”:
print(“It’s April!”)
elif letter2 == “u”:
print(“It’s August!”)
else:
print(“N/A”)

elif letter1 == “s”:
print(“It’s September!”)

elif letter1 == “o”:
print(“It’s October!”)

elif letter1 == “n”:
print(“It’s November!”)

elif letter1 == “d”:
print(“It’s December!”)

else:
print(“N/A”) 