Visual Studio Solution Create a new Visual Studio Solution named RRCAGConsoleFirstLast, where First and Last correspond

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Visual Studio Solution Create a new Visual Studio Solution named RRCAGConsoleFirstLast, where First and Last correspond

Post by answerhappygod »

Visual Studio Solution Create a new Visual Studio Solution namedRRCAGConsoleFirstLast, where First and Last correspond to yourfirst and last names. Example: RRCAGConsoleDallasPage ConsoleApplication Project Name the Console Application ProjectRRCAGAppFirstLast, where First and Last correspond to your firstand last names. WARNING! Do not proceed with the rest of theassignment until you are sure you have setup the solutioncorrectly. Design Class Diagram Click here opens in new window fora larger version of the image. DO NOT modify, add or subtract anymembers to any classes or other constructs. SalesQuote Class Thisclass contains functionality that supports the business process ofdetermining a quote price for a vehicle sale. Create the SalesQuoteclass in the console application project. This class must bedefined under the Last.First.Business namespace, where First andLast correspond to your first and last names. FieldsvehicleSalePrice : decimal - The selling price of the vehicle beingsold. tradeInAmount : decimal - The amount offered to the customerfor the trade in of their vehicle. salesTaxRate : decimal - The taxrate applied to the sale of a vehicle. accessoriesChosen :Accessories - The chosen accessories. exteriorFinishChosen :ExteriorFinish - The chosen exterior finish. ConstructorsSalesQuote(decimal, decimal, decimal, Accessories, ExteriorFinish)Initializes an instance of SalesQuote with a vehicle price,trade-in value, sales tax rate, accessories chosen and exteriorfinish chosen. Parameters: vehicleSalePrice - the selling price ofthe vehicle being sold. tradeInAmount - the amount offered to thecustomer for the trade in of their vehicle. salesTaxRate - the taxrate applied to the sale of a vehicle. accessoriesChosen - thevalue of the chosen accessories. exteriorFinishChosen - the valueof the chosen exterior finish. SalesQuote(decimal, decimal,decimal) Initializes an instance of SalesQuote with a vehicleprice, trade-in amount, sales tax rate, no accessories chosen andno exterior finish chosen. Parameters: vehicleSalePrice - theselling price of the vehicle being sold. tradeInAmount - the amountoffered to the customer for the trade in of their vehicle.salesTaxRate - the tax rate applied to the sale of a vehicle.Methods GetVehicleSalePrice() : decimal Gets the sale price of thevehicle. SetVehicleSalePrice(decimal) : void Sets the sale price ofthe vehicle. Parameters: vehicleSalesPrice : decimal - the sellingprice of the vehicle. GetTradeInAmount() : decimal Gets the tradein amount. SetTradeInAmount(decimal) : void Sets the trade inamount. Parameters: tradeInAmount : decimal - the amount offered tothe customer for the trade in of their vehicle.GetAccessoriesChosen() : Accessories Gets the accessories chosenfor the vehicle. SetAccessoriesChosen(Accessories) : void Sets theaccessories chosen for the vehicle. Parameters: accessoriesChosen :Accessories - the chosen accessories. GetExteriorFinishChosen() :ExteriorFinish Gets the exterior finish chosen for the vehicle.SetExteriorFinishChosen(ExteriorFinish) : void Sets the exteriorfinish chosen for the vehicle. Parameters: exteriorFinishChosen :ExteriorFinish - the chosen exterior finish. GetAccessoriesCost() :decimal Returns the cost of the accessories chosen. Accessorieshave the following costs: Stereo System - $505.05 Leather Interior- $1,010.10 Computer Navigation - $1,515.15 GetExteriorFinishCost(): decimal Returns the cost of the exterior finish chosen. ExteriorFinishes have the following costs: Standard - $202.02 Pearlized -$404.04 Custom - $606.06 GetSubTotal() : decimal Returns the sum ofthe vehicle’s sale price, accessories and exterior finish costs(rounded to two decimal places). GetSalesTax() : decimal Returnsthe amount of tax to charge based on the subtotal (rounded to twodecimal places). GetTotal() : decimal Returns the sum of thesubtotal and taxes. GetAmountDue() : decimal Returns the differenceof the total and trade-in amount (rounded to two decimal places).Accessories Enumeration Namespace: Last.First.Business TheAccessories enumeration has the following values: None StereoSystemLeatherInterior StereoAndLeather ComputerNavigationStereoAndNavigation LeatherAndNavigation All ExteriorFinishEnumeration Namespace: Last.First.Business The ExteriorFinishenumeration has the following values: None Standard PearlizedCustom Program Program Class The Program class is generated whenyou use the Console Application Project template. Ensure theProgram class is in the RRCAGAppFirstLast namespace. ProgramRequirements The program must include all test cases required totest the SalesQuote class. For each method (unit) being tested,ensure your client program provides output clearly describing themethod being tested along with the expected and actual result. Eachunit test will be written in its own method. Each unit test methodwill test one outcome only. Each unit test method will be namedusing the standard outlined in the course material. When testingconstructors, verify the results by calling an accessor method ofthe class. When testing mutators, use the accessor method to verifythe state change. When a test fails (actual does not match theexpected), correct the method code, then re-test. Keep in mind thata poorly written test can produce inaccurate test results. If atest fails, ensure you have written the test correctly beforemodifying your unit code. Output Requirement For each method (unit)being tested, output the method signature. For each test, outputthe following: Test number Outcome description Expected resultActual result Leave one blank line between each test. Sample OutputFormat Testing method GetVehicleSalesPrice() Test 1 Expected:5000.00 Actual: 5000.00 Test 2 Expected: 6000.00 Actual: 6000.00Testing method SetVehicleSalesPrice(decimal) Test 1 Expected:9000.00 Actual: 9000.00 ?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply