Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Since some of you may be without the textbook, I have decided NOT to use the assignments from the text, which actually is good for

Since some of you may be without the textbook, I have decided NOT to use the assignments from the text, which actually is good for you as it gives you more freedom and flexibility while giving me more interesting pieces of work to grade.

For this assignment I would like you to create an online store. There is an images folder with images you can use (in the module called Student Data Files), or there are lots of images on the web. Decide what you will be selling - two or three items will be sufficient. Just make a pretty page. Then we need to practice what you have just learned in Chapter1 so far, which means whatever you did in Lab1.

Use functions wherever possible.

1. Add prompts to get the buyer's name, phone, and email address (three prompts) . Display this information using document.write in a new window or use an alert

2. Add buttons to select the item required . All items should have different prices, and as yet you don't know how to use if else. However by clicking on the button for a particular item you can set the cost depending on which item they choose. You could put the image on the button , or you could have a button and an image - you would need to let the user know they needed to click a button to say how many they wanted.

Then you need to display the item requested, the quantity, and the total price (don't forget the dollar sign). You will need to put this html file as well as the images in a folder and zip it and submit. You will lose points if the images are linked to your computer and don't display for me, so verify it all works before submitting.

Building on H1. Include a check for the email address. This should prompt the user to re-enter the email address and check the second entry with the first to confirm they are the same. If they are different, output a message to that effect. If they are the same, output the name, phone and email to a small window.

For each item you sell, have a different price for different features OR have it in different sizes with different prices. For example, an ice cream cone or a sweater can come in different sizes. If your site is a cinema, you could have different prices for matinees. (Basically I want you to be able to handle if/else). Output to a small window.

Note: Comparison is mentioned in Chapter 2, but if/else is in Chapter 3, so I put the Chapter 3 PowerPoints in the module in case you needed them - but it is basically the same as in java or python.

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

Writing a Strong Introduction

Answered: 1 week ago