2021年3月28日星期日

Methods for homework

I need help settins up methods for my HW that I am doing. It's for a tulip shop program and I'm havin a hard time with gettin all the methods I need for the task. Prompt is here: Problem Statement You have been hired to write a program for a store that sells tulips. This store sells pink, red, and yellow tulips. Tulips are sold 12 tulips in one bouquet. The store begins with 125 pink tulips in stock and 75 red tulips in stock, and 55 yellow tulips in stock. The user will specify the customer name, the number of bouquets to purchase, and the color choice for each bouquet. The customer is not required to choose the same color tulip for all bouquets in the order. The program must present a menu of color options for each bouquet to the user. The store charges $30 for a bouquet of pink tulips, $50 for a bouquet of red tulips, and $75 for a bouquet of yellow tulips. If the customer pays by cash they earn a 20% discount. The customer either pays by cash or credit card. The program must print out the customer name, the number of bouquets of tulips in the order, and the total cost of the order, method of payment, the number of tulips of each color left in stock after the order is completed. The output must follow the format shown below (except the customer name should be used in place of Your Name).

Tulip Order for Your Name Number of Bouquets 2 Total Cost $105.00 Method of Payment Credit Pink Tulips in Stock After Order 113 Red Tulips in Stock After Order 75 Yellow Tulips in Stock After Order 43

https://stackoverflow.com/questions/66847614/methods-for-homework March 29, 2021 at 09:05AM

没有评论:

发表评论