The owner of 'Cupcakes R Us' is in need of a web application to sell their bakery products via ecommerce. Cupcakes R Us sells cupcakes, cookies, and cakes. They do not have a storefront. Therefore, they need a web site to sell their baked goods.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Scenario:
The owner of 'Cupcakes R Us' is in need of a web application to sell their bakery products via ecommerce. Cupcakes R Us sells cupcakes, cookies, and cakes. They do not have a storefront. Therefore, they need a web site to sell their baked goods.

The user enters their name, state, bakery item and the quantity (by dozen or cake) for as many items they want to purchase.

The program validates all data entered

the name can not be blank

the state can only be the three states listed above.

the bakery item must be a valid bakery item from the list above.

the quantity can not  <= 0

If the values are invalid, an error message is displayed to the user

Otherwise:

the values for the item and quantity are added to an array of items selected to be purchased.

The program computes the subtotal, and calculates the tax based on the state. The application provides the following information at the bottom of the page : Name of Client (in proper case), State, the list of items selected to be purchased, order subtotal, tax charge, and total.

a. All javaScript code is placed in a file separate from the HTML file
  b. All variables and constants names must be descriptive – no single character variable name
  c. The bodies of all loops, if statements, and functions are indented
  d. Place block comments at the beginning of your page with the following information:
        i. Name
        ii. Page/Program Description
        iii. Last Modified Date

The chart below details their current list of baked goods. All cupcakes and cookies are sold by the dozen only. The cakes are sold individually. 

tem

Size

Flavors

Cost

CupCakes

Mini

Chocolate, Vanilla, Butter, Carrot, Red Velvet

13.00 per dozen

 

Regular

 

18.00 per dozen

 

Large

 

25.00 per dozen

Cookies

Mini

Choc. Chip, Sugar, Peanut Butter, Oatmeal Raisin, Butterscotch

15.00 per dozen

 

Regular

 

30.00 per dozen

 

Large

 

45.00 per dozen

Cakes

Mini

Chocolate, Vanilla, Butter, Carrot, Red Velvet

21.00 per cake

 

Regular

 

35.00 per cake

 

Large

 

45.00 per cake

 

Wedding

 

250.00 per cake

Tax by State:

State

Tax Percentage

Florida

7.0

Georgia

6.5

Alabama

6.0

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Web Host concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education