Sony TV Manufacturer want you to design a program that will help their customers to check the price along with the dimensions for their products to be purchased. For this Carefully read all the instructions and follow the requirements. o Create a class called SONY_TV along with two constructors as follows: o A Default constructor to set the length of TV. o A parameterized constructor that will receive the width in float. o By using a friend function calculate the area of the SonyTV o Create a member function to calculate the price of the sony TV by multiplying the area with Rs 100. o Create a show( ) function to show the details of the purchased sony TV. In the main you will construct three objects that will show the use of the two constructors. After calling the constructor it will call the area function, and then the price calculation function.
Sony TV Manufacturer want you to design a program that will help their customers to
check the price along with the dimensions for their products to be purchased. For this
Carefully read all the instructions and follow the requirements.
o Create a class called SONY_TV along with two constructors as follows:
o A Default constructor to set the length of TV.
o A parameterized constructor that will receive the width in float.
o By using a friend function calculate the area of the SonyTV
o Create a member function to calculate the price of the sony TV by multiplying the area
with Rs 100.
o Create a show( ) function to show the details of the purchased sony TV.
In the main you will construct three objects that will show the use of the two constructors. After
calling the constructor it will call the area function, and then the price calculation function.
Step by step
Solved in 2 steps