Question: Write a program that performs the following: - (1) ask user to enter the prices (in float data type) of banana, apple, and orange, respectively.

 Write a program that performs the following: - (1) ask user

Write a program that performs the following: - (1) ask user to enter the prices (in float data type) of banana, apple, and orange, respectively. - (2) calculate the average price of these three fruits. - (3) use the format function to round their average price to one decimal place. - (4) concatenate the dollar symbol $ to the left of the formatted average price (string concatenation must be used), and print out the result as shown in the screenshot below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!