Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
26 views

CS 1101 Learning Guide Unit 1 Programming Assignment Home

Uploaded by

homepoet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

CS 1101 Learning Guide Unit 1 Programming Assignment Home

Uploaded by

homepoet
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Learning Guide Unit 1: Programming Assignment | Home https://my.uopeople.edu/mod/book/view.php?

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:

a. Think Python: How to think like a computer scientist

▪ Review Chapter 1 - The Way of the Program (pp. 1 – 8) and the examples presented in it.

b. For installing the IDLE development environment on UNIX:

▪ Using Python on Unix platforms. (n.d.). Python Documentation. https://docs.python.org/3/using/unix.html

• Using Python on Windows. (n.d.). Python Documentation. https://docs.python.org/3/using/windows.html

• Savage, B. (n.d.). 5. Using Python on a Mac. Python Documentation. https://docs.python.org/3/using/mac.html

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.

c. In Python, is it possible to display an integer like 09? Justify your answer.

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

You might also like