es with events Subscribing to and handling events Introduction This phase of the project will have you make some updates to classes in the library project. Defect Management Part of the evaluation of this assignment will include your ability to repair defects from previous versions of your code. Ensure that you are applying the feedback provided to you in the assignment evaluations. You should expect to receive deductions on this assignment for any outstanding defects. Requirements WARNING! It is highly recommended you make a copy of the your RRCAGLibraryFirstNameLastName solution prior to editing the LastName.FirstName.Business project. Update the following classes in the LastName.FirstName.Business namespace. SalesQuote Class Add the following events and methods to the SalesQuote class. Events + VehiclePriceChanged : EventHandler - Occurs when the price of the vehicle being quoted on changes. + TradeInAmountCha

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please written by computer source

  • Module 4 Assignment This assignment will reinforce your knowledge of the following areas: Coding classes with events Subscribing to and handling events Introduction This phase of the project will have you make some updates to classes in the library project. Defect Management Part of the evaluation of this assignment will include your ability to repair defects from previous versions of your code. Ensure that you are applying the feedback provided to you in the assignment evaluations. You should expect to receive deductions on this assignment for any outstanding defects. Requirements WARNING! It is highly recommended you make a copy of the your RRCAGLibraryFirstNameLastName solution prior to editing the LastName.FirstName.Business project. Update the following classes in the LastName.FirstName.Business namespace. SalesQuote Class Add the following events and methods to the SalesQuote class. Events + VehiclePriceChanged : EventHandler - Occurs when the price of the vehicle being quoted on changes. + TradeInAmountChanged : EventHandler - Occurs when the amount for the trade in vehicle changes. + AccessoriesChosenChanged : EventHandler - Occurs when the chosen accessories change. + ExteriorFinishChosenChanged : EventHandler - Occurs when the chosen exterior finish changes. Methods # OnVehiclePriceChanged() : void (virtual) - Raises the VehiclePriceChanged event. # OnTradeInAmountChanged() : void (virtual) - Raises the TradeInAmountChanged event. # OnAccessoriesChosenChanged() : void (virtual) - Raises the AccessoriesChosenChanged event. # OnExteriorFinishChosenChanged() : void (virtual) - Raises the ExteriorFinishChosenChanged event. Invoice Class Add the following events and methods to the Invoice class. Events + ProvincialSalesTaxRateChanged : EventHandler - Occurs when the provincial sales tax rate of the Invoice changes. + GoodsAndServicesTaxRateChanged : EventHandler - Occurs when the goods and services tax rate of the Invoice changes. Methods # OnProvincialSalesTaxRateChanged() : void (virtual) - Raises the ProvincialSalesTaxRateChanged event. # OnGoodsAndServicesTaxRateChanged() : void (virtual) - Raises the GoodsAndServicesTaxRateChanged event. CarWashInvoice Class Add the following events and methods to the Invoice class. Events + PackageCostChanged : EventHandler - Occurs when the package cost changes. + FragranceCostChanged : EventHandler - Occurs when the fragrance cost changes. Methods # OnPackageCostChanged() : void (virtual) - Raises the PackageCostChanged event. # OnFragranceCostChanged() : void (virtual) - Raises the FragranceCostChanged event. Events that are raised when a state of the object changes, should only be raised when the state has actually changed. Example: If the current state is 500, and its being changed using the value 500, the event would not be raised as the state would remain the same. Program Create a new Console App (.NET Framework) Project. Name the project LastName.FirstName.RRCAGTests, where “FirstName” and “LastName” correspond to your first and last names. Name the Visual Studio Solution Assignment4FirstNameLastName, where “FirstName” and “LastName” correspond to your first and last names. If your name is Dallas Page, the project and solution would be named: Project: Page.Dallas.RRCAGTests Solution: Assignment4DallasPage* Construct instances of each type modified in this assignment. Subscribe to at least one event per object. Demonstrate that the event is raised when it is expected to. User input is not required.
Expert Solution
steps

Step by step

Solved in 7 steps with 2 images

Blurred answer
Knowledge Booster
Module hierarchy chart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education