Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you help me write a code fot this The program will ask the user to specify the number of invitees by showing the message
can you help me write a code fot this
The program will ask the user to specify the number of invitees by showing the message "please enter the number of invitees:" The user is expected to enter a positive integer representing the number of invitees. We assume that the user will always provide valid input. According to the number of invitees, your program should loop over all the invitees to gather information about each individual's dietary preferences. This is accomplished as follows: - Show the user the invitee number that you are taking the information about. You should show the message "Please enter the order details for invitee Number X/Y " where X is the invitee number and Y is the number of invitees. - The program will then ask the user if the invitee has a Keto diet with the message "Do you want a keto friendly neal?" If the user answers (y lowercase) that means yes. Anything else, even the word "yes" should be considered no. - The program will then ask the user if the invitee prefers a vegan meal with the message If the user answers (y as lowercase) that means yes. Otherwise, it is considered no. - The program will then ask the user if the invitee prefers a Gluten-free meal with the message If the user answers (y lowercase) that means yes. Otherwise, it is considered no. - Your program should decide what is the appropriate meal from the menu according to the collected dietary preference for each invitee. e.g. if the user enteres y then y then y, your program should serve Falafel for this particular friend. If the user enterss no then n then y, the program should serve beverage for this friend as none of the meals in the menu satisfies this preference. - The program should keep asking the user these questions until all invitees' preferences are collected Step 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