Question
I am working on Codio and my problem is : Challenge 1 Directions Read the problem listed below. Formulate a Decomposition or Outline of the
I am working on Codio and my problem is : Challenge 1 Directions Read the problem listed below. Formulate a Decomposition or Outline of the problem. Determine if you have seen this problem before and how it was solved. Start to write your Algorithm, making note of the inputs and outputs that will be required. Write your code, test and debug. Problem Create a program that will ask the user for number of chicken wings or wings they want to order at a restaurant. The number of wings and the sauce will determine if there is a discount on the total wings purchased. For hot wings purchased in a quantity of 6 or less there is no discount. For hot wings and a quantity of more than 6 but less than or equal to 12, there is a 10% discount. For hot wings purchased in the amount of greater than 12 but less than 24 the discount is 20%. For sweet and sour wings, purchased with a quantity of 6 or less the discount is 5%. For sweet and sour wings and a quantity of greater than 6 but less than or equal to 12, the discount is 10%. For sweet and sour wings purchased with a quantity greater than 12 but less than or equal to 24, the discount is 15%. For all wing purchases greater than 24 wings, the discount is 25%. All wings are 50 cents each. The program needs to ask the user for the type of wing either hot or sweet with the following prompt: Enter the wing type: The program also needs to ask for the quantity of wings using the following prompt: Enter the quantity: The program needs to determine the discount rate, calculate the subtotal, discount and total cost of the wings. It then needs to print out all of these values using the following text: Discount Rate: Subtotal: Discount: Total: Finally the program needs to ask the user if they want to purchase another order of wings using the following prompt: Given that the user enters sour and 20, here is what your screen should read: Enter the wing type: sour Enter the quantity: 20 Discount Rate: 0.15 Subtotal: 10.0 Discount: 1.5 Total: 8.5 To write this you can open IDLE or VS Code first so that you can see the output to help you troubleshoot problems. You can also use the Terminal to run your code.
O ri b b - Nightdress ** Base Hul because LI | : . Campllom Chalenge Ningepen n er the war Tepe: aking pur quantity - Int(ins. Enter the Cret: aking any WingType Tow.lower changing to lowercase litary Tow ." -- LILI THE 22 CUET WITH 24 wind the clocouncia 25%. Alwind 50 cena cuch there for the typh wing the hot wet with IN P AT Telowing prompt wboutal - arty-0.93 asalo.atw.batal Futorile viie typ: Ol - Dolfootal-d'SCO ) Cololating tool kluba Theo prompt wboutal - sty. l. fo.brott - d o ) The program medo determine the decount . cause the stralcium cl ncululuwa ar int("autt: dacoustiprinting out print("TuleL: Lowl inlits low or a put(" ouvant to be another onder of t er yes or no the user they want to purchure another onderct Finally the program need to WRT w Chen that the user tes sour and 20. here is what your screen should react To write this you compor CLB vs Codes you can see the custo help you troubleshoot cherou can use the Termo un your code CU IMALE . LE python3 Challenges/Challengel.py Challenge 1 TON S ubs Hur foot lapo r an PS B. Den Nure - Chacht LE LYRICAL DE PREP. .15 Mart to entuz other cade st viga, te se na: Do you want to star cashs sedest viga. S 7.2 se res LD YOU HAEC ERE Basche seces YES, EDAE Y LASStep 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