Build-a-Corgi Workshop

  • Write the pseudocode for the following program.
  • Create a flowchart.
  • Design a program based on the below information.

Build-a-Corgi Workshop: Scenario

Three children are going to the build-your-own stuffed Corgi workshop with a group of Corgi fans. Each child is allowed to spend no more than $30.00 and they have their own cash!

Based on the three children's selections, calculate the total amount due for the stuffed Corgi. Calculate how much change each child receives, if they do not spend the entire $30. Force a new selection if the child spends more than $30.00. The cashier has unlimited denominations and coin varieties to make the exact change. Use all of the information you have learned in Chapters 1-8 to create an elegant program.

  • Proper naming conventions.
  • Proper use of comments.
  • Using objects.
  • Providing well-formatted user output.
  • Concise writing of code, if you can write it in two lines instead of five, two lines is typically nicer.
  • Do not write repetitive code.
  • Use proper methods/syntax.
  • Using arrays.
  • Using sentinel value.
  • Code is formatted properly.
  • Code output is formatted as if it were a receipt
  • Error check user input as needed to run program properly.

Bills and Coins Assignments

Each child has $30.00 to buy their new toy.
Each child has cash in this designated amount:

Bills Number of Bills Coins Number of Coins
$10.00 1 Quarters 6
$5.00 2 Dimes 10
$1.00 6 Nickels 20
Pennies 50

Items and Prices

To make it easier for small children to decide, tax is already calculated into the below prices.

Each child has to pick ONE item from each list.

Corgi Fur: Choose One

Each child will be able to pick out a fur color of which Corgi they would like. All Corgis come with brown as a standard eye color..

Large Red and White: $12.00
Large Tri-color: $13.50

Corgi Holiday Outfits: Choose One

Shark: $6.49
Mermaid: $8.00
Swim trunks: $6.99

Cute Corgi Sounds: Choose One

Puppy 5-in-1 sounds: $4.49
Personalized message: $3.47
I love you: $2.99
Heartbeat: $2.49

Cute Corgi Accessories: Choose None, One, or More

Beach ball: $3.50
Pet carrier: $7.99
Radio Flyer wagon: $10.00
Water cooler: $3.29

Example of Display For User Output

What is your name?
Hello, Miss Lily B. //Gender identity, first name, last initial, use any name you’d like could be, "Hello, Mr. Billy C."
Choose a corgi color: xxx

What costume will your Corgi wear for the holidays? xxx
Display: Great choice! Your Corgi will make an excellent (mermaid, swimmer, shark)!

What sounds would you like your Corgi to make? xxx

What other cute accessories does your Corgi want? xxx

Oops! You might have to get a different accessory!

// Repeat and go to final user output once total is $30 or under.

Example of Final User Output

Congratulations on your new Corgi!

Your new red and white Corgi is so cute! Your new friend will delight everyone in his or her Shark outfit! Squeeze your puppy’s ear to hear a personalized message just for you!

Corgi Birth Certificate

Your friend will need to bring back this certificate if he or she needs to be patched up!
Take home day: 4/4/20

Your new friend includes:

Large red & white: $12.00
Swim trunks outfit: $6.99
Personalized
message: $3.47
Beach ball: $3.50

Total: $25.96

Cash received $26.00
Your change is $.4.

EXTRA CREDIT

Count back the change to the customer example:

Change: $.25
You have received one quarter in change.
Change: $3.01
You have received 3 $1.00 bills and 1 penny in change.

NOTE: The change received needs to be given back in the least number of coins and dollars.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.