Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A Quote has the following attributes: Sale Price ( decimal ) : Represents the quoted sale price of an item for sale. Tax Rate (
A Quote has the following attributes:
Sale Price decimal: Represents the quoted sale price of an item for sale.
Tax Rate decimal: Represents the rate at which tax is charged.
Methods
A Quote can be initialized in the following ways:
Initializes a Quote with a required arguments for sale price and a tax rate.
Initializes a Quote with no arguments. The sale price and tax rate is set to
The constructor methods for this class must be completed using method overloading.
Include accessor and mutator methods for each attribute.
A method that returns the sales tax charged for the sale of the quoted item. The sales tax is calculated by multiplying the sale price by the tax rate.
A method that returns the total of the quote. The total is the sum of the sale price and the sale tax.
Include a ToString method that returns a string in the following format:
"Quote: totalformattedascurrency
Example:
Quote: $
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