Write the implementation of class called Cellphone according to the following characteristics: A-Data members (Private):

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

Write the implementation of class called Cellphone according to the following characteristics: A-Data members (Private):

Post by answerhappygod »

Write The Implementation Of Class Called Cellphone According To The Following Characteristics A Data Members Private 1
Write The Implementation Of Class Called Cellphone According To The Following Characteristics A Data Members Private 1 (42.23 KiB) Viewed 46 times
Write the implementation of class called Cellphone according to the following characteristics: A-Data members (Private): 1- _Name: 4-10 characters that represents the cell phone name 2-_M_year: 4-digit integer number that represents the manufacture year. 3. _Colors: an enumeration that represents the available colors (at least 3 colors) 4- Price: a double variable with 6 digits (four integer and two float in the format of XXXX.XX) 5. An object of HW_SPECS class that includes: _Memory_capacity (int). NO_processors (int), Screen_resolution (string), _NO_cameras (int), _Fourk (bool) with the necessary constructors, destructor, set and get member functions to initialize and access the aforementioned private data members, 6- An object of SW_SPECS class that includes: _Operating_998 (string), _os_version (double). _Multi_threading (bool) with the necessary constructor, destructor, set and get member functions to initialire and access the aforementioned private data members B- Member functions (publie): 1. Default constructor to initialize the data members. 2. Destructor 3. Copy constructor to provide the necessary code for copying the specs of one cell_phone to another with "Copying Done" message 4. Overload && operator to check if two cellphonc objects are both support multithreading 5. Overload - operator to return the difference in price between two cell phone objects C. Non-Member Non-Friend function: 1. A function called Best_chobee that receives three arguments, an array of objects of type cell phone, the size of the array and a float value called_Budget. The function returns the index of the array clement (the cell_phone) that has the closest price to budget value Part 2: Write a function call Occurrence that receives two arguments: an array of vectors (generic type) and a generic variable called_item. The function returns the index of the vector i.e. the index of the vector in the array of vectors) that has the highest occurrence of the_item. The function returns -1 if the element (_item) is not found on any vector
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply