Description
Pseudocode:
- Create a new object for the class Toy.
- Open do-while loop
- Open another do-while loop
- Prompt user to enter child’s name
- Take input from keyboard
- Prompt user to enter the age of the child
- Take input from keyboard
- Prompt user to choose a toy (plushies, blocks, and books)
- Validate if choice of toy is age appropriate
- If not appropriate ask if the user wants to cancel that toy request. (yes/no?)
- End do while loop (while choice== yes)
- Prompt user to add balloon or card to gift
- Take input from keyboard
- Display on the console the name, age and the total for gift
- Prompt user to add another gift or not(yes/no?)
- Take input from keyboard
- End do while loop (while reply==yes)
- Create a random 5-digit order number
- Display on the console the total amount of the order, a random five-digit order number, and the programmer name