Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise 1 : Python Warm Up ( must complete ) Problem: Follow the steps below to create a program for Bluebell Greenhouses that prints apurchase
Exercise : Python Warm Up must completeProblem: Follow the steps below to create a program for Bluebell Greenhouses that prints apurchase receipt. In the process, practice using dictionaries and formatting strings Bluebell Greenhouses sells the following Spring flower bulbs. Create a dictionary that storesthis information. Which data should be the keys must be unique and which should be thevalues?Flower Bulb Name Price Per Bulbdaffodil $ tulip $ crocus $ hyacinth $ bluebell $ Mary has a standing order with Bluebell Greenhouses for daffodil bulbs and tulipbulbs every year. Create a new dictionary that stores this information Demand for tulips this year has dramatically outpaced demand. As a result, the price of tulipbulbs has increased by Update the price of tulip bulbs in the appropriate dictionary.Round the price per bulb to decimal places. This year, Mary would also like to try planting hyacinths. Add hyacinth bulbs to thedictionary that is storing her order Display Marys purchase order for this year on the screen. Each line should be formatted asfollows:bulb code number of bulbs $ subtotalfield width: field width: field width: leftaligned rightaligned rightaligned decimal placessingle spacewhere the code for each bulb name is the first three letters of its name, all in capital letters.The lines should be printed so that the bulb codes are in alphabetical order Calculate the total number of bulbs that Mary purchased this year, as well as the total cost ofher order. Include this information at the bottom of her purchase order. Format the total costfloat value so that it is rightaligned in a field width of with decimal places.Exercise : Sample OutputYou have purchased the following bulbs:DAF $ HYA $ TUL $ Thank you for purchasing bulbs from Bluebell Greenhouses.Your total comes to $
Step 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