Answered step by step
Verified Expert Solution
Question
1 Approved Answer
OOP Encapsulation: Operator Overloading and File I/O with Your Own Class Required Output: Generate output samples demonstrating each of the requirements (A-E). Utilize all of
OOP Encapsulation: Operator Overloading and File I/O with Your Own Class
Required Output: Generate output samples demonstrating each of the requirements (A-E). Utilize all of your member functions, adequately testing them and showing their functionality (i.e. inputting values, outputting values (displaying them), performing calculations, etc.). PLEASE ANSWER IN C++
CSC240 - Lab Assignment \#4 OOP Encapsulation: Operator Overloading and File I/O with Your Own Class Assigned: Week 6 Due: Week 7 Points: 50 Utilize your class from Lab \#2 Create an application class (with a main method) which will A. Instantiate at least five objects (using each of the constructors at least once) with your program. Set the remaining data with the mutator methods. B. Create a function to accept the values for an object and place them into a new object. C. Create an array of 10 objects of your class type., and read data for 10 objects from a file into the array, then print a report showing all fields in a columnar format using your detailLine() method. D. Create a function to accept the array of objects, and access the elements using pointers instead of array notation. Display the data and the memory addresses of each element in a serialized fashion. E. Overload one binary and one unary operator and demonstrate their use. Classes/Objects Menu: A. Accept input for at least two objects. B. Display results of using your overloaded operators. C. Display at least 5 objects individually using your showValues() function D. Read 10 elements into an array of objects and Display array of objects using your detailLine() function. E. Display address information about your array of objects using pointers. Required Output: Generate output samples demonstrating each of the requirements (A-E). Utilize all of your member functions, adequately testing them and showing their functionality (i.e. inputting values, outputting values (displaying them), performing calculations, etc.)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