Search for question
Question

The rules about the logic required are the same as those for the initial version and are listed below:

For Current Pet Owners

o Dogs are offered a full grooming service for $55 (this services is performed by default

when a dog owner arrives).

o Cats are offered a nail trimming for $25 (this services is performed by default when a

cat owner arrives).

For Adoptions

o When adopting a pet, the cost of adoption is $95, plus the following optional add-ons

depending on the pet type:

• Cat adoption optional add-ons:

• Starter Food package: $20 for a food/water bowl and 20lb bag of food and

cat toy pack

Frequent Shoppers: Pet-tastic frequent shopper members get an additional 10% off any pur-

chase

Inputs:

• 1 year nail trimming: $100

Dog adoption optional add-ons:

• Starter Food package: $40 for a food/water bowl and 50lb bag of food and

dog toy pack

• 1 year full grooming: $350

CustomerType: Text-Owner or Adoption

PetType: Text - Dog or Cat

CatStarter: Yes or No

DogStarter: Yes or No

DogGroomPerYear: Yes or No

CatNailPerYear: Yes or No

FreqShopper: Yes or No

Outputs:

Total price (pre-tax).

Shopper Discount (if member).

Sales Tax amount to be added to the bill (7% rounded up to the nearest cent).

Final Cost of the bill (including the tax)./nPROBLEM DESCRIPTION

A GUI (Graphical User Interface) is required to process pets spa services and produce accurate

results. Radio buttons and text boxes will be used for input and output purposes. A button will be

used for processing data. Another button will be employed to clear the text boxes and radio

buttons.

Create a webpage to implement the interface required using the JavaScript programming language.

The illustration below displays the format of the GUI screen required. An HTML template is

provided on Canvas to be used as a starting point to create the screen required.

Note: Choose a background color and a text color of your preference.

Fig: 1

Fig: 2