Copy and paste this into your coding environment and complet…
Copy and paste this into your coding environment and complete the missing parts. snacks = [“Chips”, “Cookies”, “Granola Bar”, “Candy”]prices = [2.50, 3.00, 1.75, 1.50]def display_menu(snacks, prices):# Use a loop to print the menu items and prices.# Example:# 1 . Chips – $ 2.5passdef calculate_total(price, quantity):# Multiply price * quantity and return the result.passdef main():print(“Welcome to the Campus Snack Ordering Program!”)display_menu(snacks, prices)choice = int(input(“Enter snack choice (1-4): “))# Validate choice using a loop:# Keep asking while choice is not between 1 and 4.quantity = int(input(“Enter quantity: “))# Validate quantity using a loop:# Keep asking while quantity is less than or equal to 0.# Use the choice to select the correct snack and price from the lists.# Store them in variables named snack and price.total = calculate_total(price, quantity)# Apply discount if total > 10print(“Order Summary”)print(“Snack:”, snack)print(“Quantity:”, quantity)print(“Total cost: $”, total)main() Required Program Tests (Do BOTH) After your program is complete, run it two times using the following inputs. Test Case 1 Snack choice: 2 Quantity: 3 Test Case 2 Snack choice: 1 Quantity: 5 Take one screenshot showing BOTH runs.
Read DetailsIdentify two errors in the below code and explain why each i…
Identify two errors in the below code and explain why each is incorrect. snacks = [“Chips”,”Cookies”,”Granola Bar”,”Candy”]prices = [2.50,3.00,1.75,1.50]for i in range(snacks):print(i+1, snacks[i], prices[i])choice = int(input(“Enter your choice: “))if choice > 4:print(“Invalid choice”)price = prices[choice]total = price * quantityprint(“Total:”, total)
Read DetailsA client with newly diagnosed type 1 diabetes mellitus who t…
A client with newly diagnosed type 1 diabetes mellitus who takes NPH daily in the morning calls the nurse to report recurrent episodes of hypoglycemia with exercise. Which statement by the client indicates an adequate understanding of the peak action of NPH insulin and exercise?
Read DetailsA nurse in the emergency department is assessing a client wh…
A nurse in the emergency department is assessing a client who reports abdominal pain that began around the umbilicus 8 hours ago and has now moved to the right lower quadrant. The client reports nausea and loss of appetite. Which assessment finding support the nurse’s suspicion of acute appendicitis?
Read Details