Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

There are too many answer in chegg but all arenot working so please do in with perfect coding HTML Requirements Collect the user's name, email

There are too many answer in chegg but all arenot working so please do in with perfect coding

HTML Requirements

Collect the user's name, email address, and credit card information to generate an estimate.

Make sure there are at least five items available for sale.

JavaScript Requirements

All JavaScript code must be located in an external script file.

The following user inputs must be validated

2 Mandatory fields name and email address.

Fields with a specific format

Credit Card in format xxxx-xxxx-xxxx-xxxx, eg: 4111-1111-1111-1111

Credit Card Expiry Month in the format: MMM, e.g., NOV

Credit Card Expiry Year in the format: yyyy, e.g., 2021

At least one item should be bought, and the value customer enters in the item quantity input boxes should be a number. Do not use input type numbers in HTML. You must validate using JavaScript.

As a part of the fundraiser, the customer must donate $10 or 10% of the total price of the items they buy, whichever is higher. Automatically calculate the donation amount based on the total purchase.

If any errors exist, display all the error messages on the web page. Do not use a JavaScript popup box for this purpose or show only one error at a time.

Generate a receipt to give to the customer. Show only the last four digits of the credit card along with the rest of the information like name, email, products, quantity, total cost, donation amount, etc.

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

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

Tell the merits and demerits of Mendeleev's periodic table.

Answered: 1 week ago