Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please do it on c++ The first picture is assignment 1's question we need to solve the second picture using the first picture requirement. and
please do it on c++
The first picture is assignment 1's question we need to solve the second picture using the first picture requirement. and make sure there is .h .cpp and .main file. thank you
Instructions Identify a real-world object such as car, house, toy, computer; or intangible things such as profiles, events. Then, design a class which represents the category of that object. Finally, implement it in C++. Class requirements The name of the class must be related to the category of the object such as car, house, toy, computer, event, profile, etc. The class must contain at least 3 attributes (member variables). These must be private. Each attribute must have at least one accessor and one mutator. These must be public. Accessors must have the const access modifier. At least one mutator must have a business rule which limits the values stored in the attribute. Examples: a) The attribute can only store positive numbers. b) The attribute can only store a set of values such as "True", "False", "NA". c) The maximum value for the attribute is 100. Instructions In the main program Create a dynamic object of your Assignment 1's class* and store its memory address in a pointer. Read user input, and use it to set the values in each of the object attributes (variable members). Display the values of the object attributes. (optional) Display any other calculated property (function) in the object. *If you received feedback related to your Assignment 1 's class, update it appropriately before using it in this assignment. Submission Files to submit: - Visual Studio solution/project files. - Class files (.h and .cpp) - Main program (.cpp) 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