Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python thanks Assume six college friends Alex, Bay, Dana, Max, Terry, and Wes went to Hawaii for spring break. There they picked up shells.

In Python thanks image text in transcribed

Assume six college friends Alex, Bay, Dana, Max, Terry, and Wes went to Hawaii for spring break. There they picked up shells. Typical shells found in Hawaii are of these types: Puka, Cone, Driftwood, Sea Glass, and Starfish. Write a program that (1) Prompts user to enter number of shells each person collected, for example, Hello Alex! Please tell me how many different shells you collected. Puka: 15 Cone: 0 Driftwood:7 Hello Bay! Please tell me how many different shells you collected. Puka 12 Cone:9 (2) Your program creates a list of tuples based on the input, i.e [('Puka' 15), ('Cone', O),,'Puka 12), ('Cone',),. Print out the list. (Note: do step (1) and (2) together, i.e. create the list while inputting) (3) Your program creates a new list of tuples by combining the counts of same type, i.e. [('Puka' 52), ('Cone', 21), (assume total Puba shells collected 52,.) Print out the list. (Note: you must use for loop for combining) (4) Assume Puba shells worth $1.00 each, Cone shell $1.50 each, Driftwood $0.50, Sea Glass $2.00 and Starfish $2.5, calculate and print out how much worth of sea shells they collected. (Note: for loop required.) (5) Draw bar graph such as below illustrating the distribution of their collections. Shells Found in Hawaii

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

3 The distinction between microeconomics and macroeconomics.

Answered: 1 week ago

Question

2 The role of economic theory in economics.

Answered: 1 week ago