Answered step by step
Verified Expert Solution
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
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 HawaiiStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started