CS 1101 Learning Guide Unit 2 Programming Assignment Home
CS 1101 Learning Guide Unit 2 Programming Assignment Home
id=412647&chapterid=497864
In this unit, we explored the basic concepts of Python variables, operators, and expressions in Python and construct Python functions that take
arguments. Before completing this assignment, review the reading material listed below:
Ensure that you go through all the topics in chapters 2 and 3, including the examples and solving the questions in the exercises.
The circumference of a circle is calculated by 2πr, where π = 3.14159 (rounded to five decimal places). Write a function called
print_circum that takes an argument for the circle’s radius and prints the circle's circumference.
Call your print_circum function three times with di�erent values for radius.
Welcome to your �rst project. Develop a catalog for a company. Assume that this company sells three di�erent Items. The seller can sell
individual items or a combination of any two items. A gift pack is a special combination that contains all three items. Here are some special
considerations:
B. If a customer purchases a combo pack with two unique items, he gets a 10% discount.
Write a function for the above scenario. Perform the calculations in code wherever applicable. The function should be your own creation, not
copied from any other source. The �nal output should look like:
1 of 3 4/18/2024, 9:02 PM
Learning Guide Unit 2: Programming Assignment | Home https://my.uopeople.edu/mod/book/view.php?id=412647&chapterid=497864
If you use an informational source, be sure to identify the source and share the link to the source you used.
Downey, A. (2015). Think Python: How to think like a computer scientist. Green Tree Press.
https://greenteapress.com/thinkpython2/thinkpython2.pdf
2 of 3 4/18/2024, 9:02 PM
Learning Guide Unit 2: Programming Assignment | Home https://my.uopeople.edu/mod/book/view.php?id=412647&chapterid=497864
3 of 3 4/18/2024, 9:02 PM