CS 1101 Learning Guide Unit 1 Programming Assignment Home
CS 1101 Learning Guide Unit 1 Programming Assignment Home
id=412643&chapterid=497856
In this unit, we explored the fundamental concepts in computer programming, basic debugging techniques and reproducing simple
calculations in Python.
Before completing this assignment, review the reading materials listed below:
▪ Review Chapter 1 - The Way of the Program (pp. 1 – 8) and the examples presented in it.
In Chapter 1, section 1.9 Exercises (pg. 7) of your textbook, Exercise 1.1 suggests making mistakes when experimenting with a new
programming feature. This kind of experiment helps you remember what you read; and to also get information on the error messages.
Answer the following questions (a) to (d).by explaining some frequently occurring errors.
To help you answer the questions, write the code in python and run it to produce output for each of the questions.
a. If you are trying to print your name, what happens if you leave out one of the quotation marks or both and why?
b. What is the di�erence between * and ** operators in Python? Explain with the help of an example.
d. Run the commands type('67') and type(67). What is the di�erence in the output and why?
Copy and paste both the code and the screenshot of the output for each of the questions in a Word document.
Write Python program for each of the following questions (a) to (d).
a. To multiply your age by 2 and display it. For example, if your age is 16, so 16 * 2 = 32 b
b. To Display the name of the city, country and continent you are living in.
c. To display the examination schedule (i.e., the starting and the ending day) of this term.
d. Display the temperature of your country on the day the assignment is attempted by you
Add the screenshots of the in the same word document created for Part 1 submissions. Also
from the results of each experiment in part 2 questions.
1 of 2 4/11/2024, 5:27 PM
Learning Guide Unit 1: Programming Assignment | Home https://my.uopeople.edu/mod/book/view.php?id=412643&chapterid=497856
The code and its output must be explained technically. The explanation can be provided before or after the code. The descriptive part of
your response must be at least 200 words.
• Submit the solutions to both part 1 and part 2 on the same document.
• Make sure your submission is double-spaced, using Times New Roman, 12-point font, with 1” margins.
• Use sources to support your arguments. Use high-quality, credible, relevant sources to develop ideas that are appropriate for the
discipline and genre of the writing.
• Use APA citations and references to support your work. Add a reference list at the end of the submission. For assistance with APA
formatting, view the Learning Resource Center: Academic Writing.
• Your submission should be clearly written, concise, and well organized, and free of spelling and grammar errors. The grading will be
based on the quality of your analysis, accurate solution of the problem and the quality of your writing.
Downey, A. (2015). Think Python: How to think like a computer scientist. Green Tree Press. https://greenteapress.com/thinkpython2/
thinkpython2.pdf
2 of 2 4/11/2024, 5:27 PM