Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will create 3 classes and a main program that asks the user to enter the required information. Sales tax and total charges should be
You will create 3 classes and a main program that asks the user to enter the required information. Sales tax and total charges should be calculated in separate methods inside of the appropriate class. Be sure to include comments describing what the code is doing. When completed, compress the folder containing all of the files associated with the program.
Problem Description
A dog groomer at Merlins Pet Grooming has asked you to create a program for her office to create invoices for her customers visits. When a customer brings their pet in for grooming, the clerk gets the Customers name, address, phone number and email address. The pets name, the type of pet, and the age of the pet are also collected. After the pet has been groomed, the clerk will determine the charges for the services, and print an invoice for the customer. The invoice should neatly display the Customers name, address, phone and email address. The invoice should also display the pets name, type and age. The charges, tax, and total should also be displayed. All calculations should take place in the class methods. All display should use method calls to get the methods from the classes to display the appropriate information. Do not accept any numbers that are less than or equal to zero. Calculate the sales tax using a constant equal to 0.0975 and limit the display to two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started