Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simple interactive app. a ) ( 5 pts ) Add code to the app to ask the user for a number via a

Create a simple interactive app.
a)(5 pts) Add code to the app to ask the user for a number via a prompt call. The number should be displayed on a tag on the corresponding web page with a prefix of Quantity. For example, if 80 is entered, then you should see this on the web page
Quantity: 80
b)(15 pts ) Extend the app to ask the user to enter a percentage amount. The app should compute this percentage of the number entered, and output the result to the web page using a formatted string - with the percentage figure, the quantity and the result. For example, if 50 is entered as the percentage amount, then you should see this on the web page,
Quantity: 80
50% of Quantity, 80, is 40
You should use a template literal to format the output string.

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

How many three-digit numbers are divisible by 7?

Answered: 1 week ago

Question

What is Indian Polity and Governance ?

Answered: 1 week ago