Question: Please write it in full python. This one is difficult. Thanks. 9.4 Eggs4Sale Instruction Eggs4Sale Problem Name this program: Eggs4Sale Programming Project Name this program
9.4 Eggs4Sale Instruction Eggs4Sale Problem Name this program: Eggs4Sale Programming Project Name this program Eggs4Sale Ernesto's Eggs has a different wholesale prices for their eggs, based upon the number sold. O up to but not including 4 dozen $0.50 per dozen 4 up to but not including 6 dozen $0.45 per dozen o up to but not including 11 doren 50.40 per dozen 11 or more dozen $0.35 per doren Extra eggs are priced at 1/12 the perdoren price Vi a) Write a program that asks the user for the number of eggs and then calculates the bill. Make sure you format the output to 2 decimal places. By using the round function the number of decimal places can be set price ruunatorice, 2) # where 2 is the number of decimal places You may need to look at the Eating programming in Catwas to see how we do this. The program output should look similar to Enter number of ees 126 Your cost is $0.40 per dozen or 0.03 per es Your bill comes to $4.20 b) A computer is not always available, so Mr. Ernesto would like a chart showing the price for any number of ees up to 120. Don't forget to tab between the egg number and the price using the It. Add code to your program that displays a chart similar to: 1 2 3 4 5 0.04 0.08 0.13 0.17 0.21 48 49 50 1.96 1.80 1.84 1.88
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
