Question: Interlude 3.2.1 Coding Excer I still do not get this answer right even after following all steps. Also changing the original base_price from 4.5 to

Interlude 3.2.1 Coding Exercise 2 (External resource 1 item = "quesadilla" 2 meat = "steak" 3 queso = False 4 guacamole = False 5 double_meat = False 6 7 9 \#You may modify the lines of code above, but don't move 10 When you Submit your code, we'll change these lines to 11 \#assign different values to the variables. 12 . 13 \#Let's further expand our previous program to cover a bro. 14 Amenu variety. Instead of just bunritoes, now the program 15 \#should cover three monu items: quesadillas, burritoes, al 16 Anachos. Instead of separate booleans for steak and pork, 17 Hwe instead have a string that could be "steak". "pork", 18 " "chicken", "tofu" and "beof". We still have booleans fo Hineat. Hit WYour code should cilculate the price as follows: \# - The base price for a cuesadilla is 4. Be, for nachos is 4. 50 , and for burnitoes is 5.00. 26 \# - If meat is steak on periss ardo 0.50. Any other meat adc no money to the price. 28 IH - guacamole alwaye adds 1, e0 towethe pnice. 1 item = "quesadilla" 2 meat = "steak" 3 queso = False 4 guacamole = Falae 5 double_meat = False 6 [Fxecuted at: Tue Feb 28 4; 46 : 18 PST 2923] We found a feu things wrand in th your code. The first one is shown betor, and the reit ran 9 HYou may modify the 1 ines of code atiove, but don't move thent the found in full mesules. txt.1 10 twhen you Subutit your code, we"11 change these 1 ifres to n the dropdowil in the top lef 11 thassign different values to the varlables. ti 12 it 13 illet's farther expand our previous prognam to cover a broader 14 amenu variety. Instead of just burritoes, ros the progeam Wo tested your code watb iten 15 istiould cover three menas itemst quesadillas, buerltoes, and " "burrito", seat. - "chicken", 16. Maachos. Instead of separate booleans for steak and porks, querso - Ralse, guacaeole - ial 17 itil instead have a string that could be "steak", "pork"? se, double meat - false, We ex 18 " "chcken". "tofu", and "beef". We ltill have bpinans foe 19 Hauesso and guacaeofe, but we al so have in boolean for double. pected you code to print thi 20 ielerat. 21 22 if Your code should calculate the boice as follows: 4.504 and for burist and is s. 09. If aeat is steak. on pork, add 0.50. Any othem neat adds. no money to the price: fruacunole always adds 1400 to the peice. gueso phds 1. 00. to the price unt.tSS the rtin is nachosa In which rase it add nothing. doublit mint, adds 1.50 if the metiel is steali be pork, of base price =4 - 5 . if item =- "quesadiliant base price =4.0 elif itein = "buritto"t base peice =500 if meat == " steak"or meat m "ponk" r. Interlude 3.2.1 Coding Exercise 2 (External resource 1 item = "quesadilla" 2 meat = "steak" 3 queso = False 4 guacamole = False 5 double_meat = False 6 7 9 \#You may modify the lines of code above, but don't move 10 When you Submit your code, we'll change these lines to 11 \#assign different values to the variables. 12 . 13 \#Let's further expand our previous program to cover a bro. 14 Amenu variety. Instead of just bunritoes, now the program 15 \#should cover three monu items: quesadillas, burritoes, al 16 Anachos. Instead of separate booleans for steak and pork, 17 Hwe instead have a string that could be "steak". "pork", 18 " "chicken", "tofu" and "beof". We still have booleans fo Hineat. Hit WYour code should cilculate the price as follows: \# - The base price for a cuesadilla is 4. Be, for nachos is 4. 50 , and for burnitoes is 5.00. 26 \# - If meat is steak on periss ardo 0.50. Any other meat adc no money to the price. 28 IH - guacamole alwaye adds 1, e0 towethe pnice. 1 item = "quesadilla" 2 meat = "steak" 3 queso = False 4 guacamole = Falae 5 double_meat = False 6 [Fxecuted at: Tue Feb 28 4; 46 : 18 PST 2923] We found a feu things wrand in th your code. The first one is shown betor, and the reit ran 9 HYou may modify the 1 ines of code atiove, but don't move thent the found in full mesules. txt.1 10 twhen you Subutit your code, we"11 change these 1 ifres to n the dropdowil in the top lef 11 thassign different values to the varlables. ti 12 it 13 illet's farther expand our previous prognam to cover a broader 14 amenu variety. Instead of just burritoes, ros the progeam Wo tested your code watb iten 15 istiould cover three menas itemst quesadillas, buerltoes, and " "burrito", seat. - "chicken", 16. Maachos. Instead of separate booleans for steak and porks, querso - Ralse, guacaeole - ial 17 itil instead have a string that could be "steak", "pork"? se, double meat - false, We ex 18 " "chcken". "tofu", and "beef". We ltill have bpinans foe 19 Hauesso and guacaeofe, but we al so have in boolean for double. pected you code to print thi 20 ielerat. 21 22 if Your code should calculate the boice as follows: 4.504 and for burist and is s. 09. If aeat is steak. on pork, add 0.50. Any othem neat adds. no money to the price: fruacunole always adds 1400 to the peice. gueso phds 1. 00. to the price unt.tSS the rtin is nachosa In which rase it add nothing. doublit mint, adds 1.50 if the metiel is steali be pork, of base price =4 - 5 . if item =- "quesadiliant base price =4.0 elif itein = "buritto"t base peice =500 if meat == " steak"or meat m "ponk" r
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
