Question: Can you make a flowchart with this information? The Pet-tastic pet shop has expanded their footprint to include a Pet Spa. They have outlined additional
Can you make a flowchart with this information?
The Pet-tastic pet shop has expanded their footprint to include a Pet Spa. They have outlined additional services they can now offer to both new pet owners and existing pet owners. For now, a customer may only select a purchase for their existing pet OR adopt a new pet.
For Current Pet Owners o Dogs are offered a full grooming service for $55 o Cats are offered a nair trimming for $25
When adopting a pet, the cost of adoption is $95, plus the following optional add-ons depending on the pet type:
o Cat adoption:
Starter package: $20 for a food/water bowl and 20lb bag of food and cat toy pack
1 year nail trimming: $100
o Dog adoption:
Food package: $40 for a food/water bowl and 50lb bag of food and dog toy pack
1 year full grooming: $350
Pet-tastic frequent shopper members get an additional 10% off any purchase
Inputs:
CustomerType: Text - Owner or Adoption
GroomingPet: Text Dog or Cat
AdoptionPet: Text Dog or Cat
CatStarter: Yes or No
CatNail: Yes or No
DogStarter: Yes or No
DoGroom: 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).
Page 2 of 3
SAMPLE TRACES THROUGH THE CORRECT ALGORITHM

| Sample 1: INPUT: Owner or Adoption: Owner Pet Type: Dog Frequent Shopper: Yes | Sample 2: INPUT: Owner or Adoption: Adoption Pet Type: Cat Starter Package: Yes Nail Package: Yes Frequent Shopper: No | Sample 3 INPUT: Owner or Adoption: Adoption Pet Type: Dog Starter Package: Yes Grooming Package: No Frequent Shopper: Yes |
| OUTPUT: Total Price = $55.00 Discount = $5.50 Sales Tax = $3.47 Final Cost = $52.97 | OUTPUT: Total Price = $215.00 Discount = $0.00 Sales Tax = $15.05 Final Cost = $230.05 | OUTPUT: Total Price = $135.00 Discount = $13.50 Sales Tax = $8.51 Final Cost = $130.01 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
