Discussion Topic
Develop a response to the questions below, which will address the basic concepts of programming. Remember to use your textbook and other academic resources to justify your responses. Plausible responses to the questions below will also be discussed in class.
1. Variables, decisions, and loops are the basic building blocks of a program, describe what each is used for in a program giving an example of when each would be used in a program that collects a user’s name and outputs a welcome message 10 times, skipping the 5th message and outputting “You are halfway there [name]” where [name] is the user’s name instead.
2. Modularization is a concept in programming that encourages the reuse of code in a program. These are generally called functions. When would you use a function in a program (give an example) and are they always necessary?
3. Python doesn’t make you define the type of a variable when declaring them however they do exist. What are the types in Python and are they different than types in other languages like C?