Question
Modify the Stereo Receiver class created in Module 1. If the user attempts to create or modify a stereo receiver object when any of the
Modify the Stereo Receiver class created in Module 1. If the user attempts to create or modify a stereo receiver object when any of the values passed are invalid, an invalid argument exception should be thrown with appropriate text: Manufacturer, Model, or Serial Number not provided Inappropriate values for Wattage, Number of Channels, Band , Frequency , Volume, or Power The constructor and mutator methods should throw invalid parameter exceptions if invalid parameters are provided. Can you please write a program that utilizes this class to create and display stereo receivers based on user input. Utilize try-catch blocks to validate the user input. Ensure that the exception thrown includes appropriate text to describe the problem (e.g. "Invalid Value - volume cannot exceed 10" or "Invalid Frequency"). Demonstrate usage of the class and its embedded exception handling in a program that prompts users for initial values, creates a receiver object, and then prompts the user to change the various values. To submit your assignment: In Canvas, go to the Module where this assignment is posted, Submit: 1.The Source code for the lab assignment (*.cpp) 2.Any Header files for the lab assignment (*.h) 3. Screen shots illustrating the program ran successfully with at least three
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