Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can you please send pictures of the answer like pictures of the html file and js file Objective: A script that calculates the amount of
Can you please send pictures of the answer like pictures of the html file and js file Objective: A script that calculates the amount of tip to leave for a service. Note: AT LEAST ONE OF THE FUNCTIONS NEED TO BE AN ARROW FUNCTION * Prompt the user to enter a dollar amount for the meal, and the service quality (great, ok, or poor service) * Use a function to verify the service quality entered is valid (equals great, ok or poor) * If an invalid service quality is entered, display message to user to let them know the service quality is invalid, and end the program * Use a function to verify the service amount entered is valid (between $5.00 and $500.00) * If an invalid value is entered, display a message to user to let them know the amount is invalid and end the program * Use a function to calculate the tip amount and return the value * Display message to user to display the service amount, the recommended tip, and the service quality the tip is based on. Include text to describe what is being displayed in a message something like "The ticket was $50.00 and the tip is $10 for a great service quality".
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