***myGraphics.py Define

The myGraphics project I will be doing is an image of the solar system. I will need a number of different objects which include:

  • Planets(pluto will not be included)
  • stars
  • asteroids
  • rings
  • background
  • continents for earth(if I have time)

functions and arguments:

  • draw_circ(x, y, rad, color, win)
  • draw_star(p1, p2, p3, p4, p5, color, win)
  • draw_ring(x, y, ringSize, win)
Advertisements

QuizEI.py

 

Flow Chart

unnamed

Pseudo Code

  1. Create variable for name, score count, errors for each question, as well as the correct answers
  2. Ask the user for the name
  3. Tell the user that you will now quiz them
  4. Ask the user “who won the 2016 presidential debate?”
  5. If the user puts an answer other than the choices, tell the user and redirect them back to the question.
  6. If the user gets the question correct, add one point to their score.
  7. If the user gets the question wrong, don’t give them a point
  8. Ask the user “what is the most populated continent in the world?”
  9. If the user puts an answer other than the choices, tell the user and redirect them back to the question.
  10. If the user gets the question correct, add one point to their score.
  11. If the user gets the question wrong, don’t give them a point
  12. Ask the user “How old was Harambe when he was killed?”
  13. If the user puts an answer other than the choices, tell the user and redirect them back to the question.
  14. If the user gets the question correct, add one point to their score.
  15. If the user gets the question wrong, don’t give them a point.
  16. Ask the user “What is the spiciest pepper in the world?”
  17. If the user puts an answer other than the choices, tell the user and redirect them back to the question
  18. If the user gets the question correct, add one point to their score.
  19. If the user gets the question wrong, don’t give them a point.
  20. Ask the user “Who is the best teacher in UA Maker?”
  21. If the user puts an answer other than the choices, tell the user and redirect them back to the question
  22. If the user gets the question correct, add one point to their score.
  23. If the user gets the question wrong, don’t give them a point.
  24. Give the user the score they got
  25. Tell the user which questions they got wrong

First Revision

qqq1

Second revision

qqq2

Final

qq

qq1qq2

 

 

**bMonth.py

# bMonthEI.py by eddieuamaker

print(“Hello good sir”)
# Greeting the person

print(“Capricorn: 22 Dec – 20 Jan”)
print(“Aquarius: 21 Jan – 19 Feb”)
print(“Pisces: 20 Feb – 20 Mar”)
print(“Aries: 21 Mar – 19 Apr”)
print(“Taurus: 20 Apr – 20 May”)
print(“Gemini: 21 May – 21 Jun”)
print(“Cancer: 22 Jun – 23 Jul”)
print(“Leo: 24 Jul – 23 Aug”)
print(“Virgo: 24 Aug – 22 Sept”)
print(“Libra: 23 Sept – 22 Oct”)
print(“Scorpio: 23 Oct – 22 Nov”)
print(“Sagitarius 23 Nov – 20 Dec”)

zodiac=input(“May I ask what your zodiac sign is?”)
# Asks the person for his/her zodiac sign

if zodiac==”Capricorn” or zodiac==”capricorn”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be early January!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be late December!”)

if zodiac==”Aquarius” or zodiac==”aquarius”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be early late January!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be early Febuary!”)

if zodiac==”Pisces” or zodiac==”pisces”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be early March!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be late Febuary!”)

if zodiac==”Aries” or zodiac==”aries”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be late March!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be early April!”)

if zodiac==”Taurus” or zodiac==”taurus”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be early May”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be late April”)

if zodiac==”Gemini” or zodiac==”gemini”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Late May!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be early June! “)

if zodiac==”Cancer” or zodiac==”cancer”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be early July”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be late June”)

if zodiac==”Leo” or zodiac==”leo”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Late July”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be Early August!”)

if zodiac==”Virgo” or zodiac==”virgo”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Early September!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be Late August!”)

if zodiac==”libra” or zodiac==”Libra”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Late September!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be Early October!”)

if zodiac==”Scorpio” or zodiac==”scorpio”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Early November!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be Late October!”)

if zodiac==”Sagitarius” or zodiac==”sagitarius”:
number=input(“Now, is the month of your birth an odd or even number?”)
if number==”odd” or number==”Odd”:
print(“AHA! Your birthday must be Late November!”)

elif number==”Even” or number==”even”:
print(“AHA! Your birthday must be Early December!”)

else:
print(“Sorry, I don’t know what to say”)