Intro to Programming

CSIS-1340-503-Su19

Course Reflection

In this course, I learned about the basics of programming and an intro to the Python language. I learned about the SDLC (Software Development Life Cycle), programming flow charts, client expectations, pseudocode, and the different jobs available in the IT industry.

I already knew a couple of languages before going into this course, I wasn’t too much interested in learning about programming, but the basics of programming and how to program the right way. I felt that I learned that and more in this class. It was also nice to learn the Python language and what it’s used for.

Signature Assignment

This assignment shows off what I have learned in Python.

Assignment: _7-10_Dream_Vacation.py
 1     # 7-10 Dream Vacation
 2     # Author: John DeGrey
 3     """ Write a program that polls users about their dream vacation.
 4     Write a prompt similar to If you could visit one place in the world,
 5     where would you go? Include a block of code that prints the results of the poll.
 6     """
 7
 8     poll_responses = {}
 9     
10     poll_active = True
11     
12     while poll_active:
13         name = input("\nWhat is your name: ") 
14         visit = input("If you could visit one place in the world, where would you go? ") 
15     
16         poll_responses[name] = visit 
17     
18         continue_poll_active = True
19         while continue_poll_active: 
20             continue_poll = input ("Would you like to add another response? (yes/no) ") 
21             if continue_poll == 'no': 
22                 continue_poll_active = False 
23                 poll_active = False
24             elif continue_poll == 'yes':
25                 continue_poll_active = False
26          
27          print("\n--- Poll Results ---")
28          for name, visit in poll_responses.items():
29              print(f"{name} would like to visit {visit}.")
30
31
32