Answered step by step
Verified Expert Solution
Link Copied!

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 0.
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: {total-formatted-as-currency}"
Example:
Quote: $34,500.98

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

Above

Answered: 1 week ago

Question

Discuss whether we can control stereotyping.

Answered: 1 week ago