Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Quadrilateral EFGH is a kite. Find mG. E H Answered: 1 week ago

Answered: 1 week ago