Question: To solve this problem, I ll walk through the steps and how the code can structured. Here s the implementation: 5 . You are working

To solve this problem, Ill walk through the steps and how the code can structured. Heres the implementation:
5. You are working at KFC and must enter each product sold and calculate the profit you made at the end of the day. You decided to automate the selling and calculating the profit for the day. KFC sells two products: ZINGER and CHICKEN.
5.1. Use the starter code provided below.
5.2. Create a user prompt to input a burger sale and then store the sale in a file
5.3. The name of the file should be your initials_KFC.txt
5.4. If the user enters R, show the total sale amount and profit, and the program stops.
5.5.R can be entered in upper- or lowercase.
5.6. ZINGER sells for $9.95 and costs $4 to make.
5.7. CHICKEN sells for $12.95 and costs $6.50 dollars to make.
5.8. Message to the user to enter data should be:
5.9. Please choose one of the following options:
(1) ZINGER, (2) CHICKEN, (R) Report
>>>
5.10. Message to the user after r is pressed should be (values will vary based on sales):
For Example: You made $33.0. The profit is $18.5
OUTPUT OF TEXT FILE:
1121
# Display menu options
def print_options():
return
# Ask for user input until input is input
def validate_user_input():
return response
#update the file with the product sold
def update_file(file_handle, response):
return
#Display the daily profit
def display_daily_profit(FILE_NAME, KFC_MEAL_COST, KFC_MEAL_PRICE, KFC_CHICKEN_COST, KFC_ZINGER_PRICE):
return
# Main
KFC_MEAL_COST =4.00
KFC_MEAL_PRICE =10.00
KFC_CHICKEN_COST =6.50
KFC_ZINGER_PRICE =13.00
FILE_NAME ="KFC.txt"
while True:
PYTHON CODE DONT USE AI OR CHATGPT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!