Question
SalesQuote Class Namespace: Last.First.Business Create a new class called SalesQuote to the LastName.FirstName.Business project. Follow the new design of this class. You will be able
SalesQuote Class
Namespace: Last.First.Business
Create a new class called SalesQuote to the LastName.FirstName.Business project. Follow the new design of this class. You will be able to use much of the code from your previous version.
Design
Properties
+ VehicleSalePrice : decimal - Gets and sets the sale price of the vehicle.
Exceptions:
ArgumentOutOfRangeException - Thrown when the property is set to less than or equal to 0. Message: The value cannot be less than or equal to 0. Parameter Name: value
+ TradeInAmount : decimal - Gets and sets the trade in amount.
Exceptions:
ArgumentOutOfRangeException - Thrown when the property is set to less than 0. Message: The value cannot be less than 0. Parameter Name: value
+ AccessoriesChosen : Accessories - Gets and sets the accessories that were chosen.
Exceptions:
System.ComponentModel.InvalidEnumArgumentException - Thrown when the property is set to an invalid value. Message: The value is an invalid enumeration value.
+ ExteriorFinishChosen : ExteriorFinish - Gets and sets the exterior finish that was chosen.
Exceptions:
System.ComponentModel.InvalidEnumArgumentException - Thrown when the property is set to an invalid value. Message: The value is an invalid enumeration value.
+ AccessoryCost : decimal - Gets the cost of accessories chosen.
+ FinishCost : decimal - Gets the cost of the exterior finish chosen.
+ TotalOptions : decimal - Gets the sum of the cost of the chosen accessories and exterior finish (rounded to two decimal places).
+ SubTotal : decimal - Gets the sum of the vehicles sale price and the Accessory and Finish Cost (rounded to two decimal places).
+ SalesTax : decimal - Gets the amount of tax to charge based on the subtotal (rounded to two decimal places).
+ Total : decimal - Gets the sum of the subtotal and taxes.
+ AmountDue : decimal - Gets the result of subtracting the trade-in amount from the total (rounded to two decimal places).
+ SalesQuote(decimal, decimal, decimal, Accessories, ExteriorFinish)
Exceptions:
ArgumentOutOfRangeException - Thrown when the vehicle sale price is less than or equal to 0. Message: The argument cannot be less than or equal to 0. Parameter name: vehicleSalePrice.
ArgumentOutOfRangeException - Thrown when the trade in amount is less than 0. Message: The argument cannot be less than 0. Parameter name: tradeInAmount.
ArgumentOutOfRangeException - Thrown when the sales tax rate is less than 0. Message: The argument cannot be less than 0. Parameter name: salesTaxRate.
ArgumentOutOfRangeException - Thrown when the sales tax rate is greater than 1. Message: The argument cannot be greater than 1. Parameter name: salesTaxRate.
System.ComponentModel.InvalidEnumArgumentException - Thrown when the accessories chosen is an invalid argument. Message: The argument is an invalid enumeration value.
System.ComponentModel.InvalidEnumArgumentException - Thrown when the exterior finish chosen is an invalid argument. Message: The argument is an invalid enumeration value.
+ SalesQuote(decimal, decimal, decimal)
Exceptions:
ArgumentOutOfRangeException - Thrown when the vehicle sale price is less than or equal to 0. Message: The argument cannot be less than or equal to 0. Parameter name: vehicleSalePrice.
ArgumentOutOfRangeException - Thrown when the trade in amount is less than 0. Message: The argument cannot be less than 0. Parameter name: tradeInAmount.
ArgumentOutOfRangeException - Thrown when the sales tax rate is less than 0. Message: The argument cannot be less than 0. Parameter name: salesTaxRate.
ArgumentOutOfRangeException - Thrown when the sales tax rate is greater than 1. Message: The argument cannot be greater than 1. Parameter name: salesTaxRate.
Please code using C#.
SalesQuote - vehicleSalePrice : decimal - tradelnAmount : decimal - salesTaxRate : decimal - accessoriesChosen : Accessories - exteriorFinishChosen : ExteriorFinish + property >> VehicleSalePrice : decimal + property>> TradelnAmount : decimal + property >> AccessoriesChosen : Accessories +> ExteriorFinishChosen : ExteriorFinish +> AccessoryCost : decimal + property >> FinishCost : decimal +> TotalOptions : decimal +> SubTotal : decimal +> SalesTax : decimal +> Total : decimal +> AmountDue : decimal +SalesQuote(vehicleSalePrice : decimal, tradelnAmount : decimal, salesTaxRate : decimal, accessoriesChosen : Accessories, exteriorFinishChosen : ExteriorFinish) +SalesQuote(vehicleSalePrice : decimal, tradelnAmount : decimal, salesTaxRate : decimal)
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