0% found this document useful (0 votes)
8 views1 page

Part 1

Uploaded by

Fru Awah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Part 1

Uploaded by

Fru Awah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Part 1

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 radius. Call

your print_circum function three times with different values for radius.

Part 2

Welcome to your first project. Develop a catalog for a company. Assume that this company sells three different

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:

a. If a customer purchases individual items, he does not receive any discount.

b. If a customer purchases a combo pack with two unique items, he gets a 10% discount.

c. If the customer purchases a gift pack, he gets a 25% 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.

Your catalog should look like this

How to summit your work

 Summit your work as a word doc.

 Format Times new roman, spacing of two and a margin of 1cm all round.

 The doc should contain the code and a screenshot of the results.

 If it is too difficult feel free to cry a little take a walk…if after this you still find it difficult read and

extra of 25 more pages in the text book and make use of youtube.

You might also like