Menu

Production Class String Tilde Il T Float Price Int Year Public Art String N Float P Inty V Q43809152

c++
of production Class And string tilde; Il t ;float price سعر القطعة تارية المتعلم ,int year public: Art(string n, float p, Intof production Class And string tilde; Il t ;float price سعر القطعة تارية المتعلم ,int year public: Art(string n, float p, Inty): vold set Year(); vold settide(): Int getYear(); string gerrile: virtual string GecType0-0; // “Pan ” or “State” virtual float getPrice 0; virtual vold printinfoOf cour<< dide<< year<<endl;} Implement Paintings class, with the following: 1. Additional private data members: width, height and color type all of type integers. Color type could be (1 for oil, 2 for ink, and 3 for acrylic). (3 points) 2. Default constructor (3 points) 3. Initializer constructor (4 points) 4- void setValue(string n, float p, inty, int w, int h, intc), which sets all painting features. (4 points) 5. Getters for width, height, and colorType. (3 points) 6- String GetType(, which returns that this is an object of “Paintings” type. (2 points) 7. float getPrice, which overrides get Price function in Art class, and returns the price based on size (width” height) if between 150cm-200cm adds 100JD, between 200cm-250cm adds 300JD, larger than 250cm adds 500JD. Moreover, the price depends on the production year, if year is before 1900, adds 1000JD, after 1900 adds 500JD. (5 points) 8- void printinfo 0, which overrides printinfo function from Art class, and prints all paintings features (5 points) including title, price, year, width, height and colorType. Show transcribed image text of production Class And string tilde; Il t ;float price سعر القطعة تارية المتعلم ,int year public: Art(string n, float p, Inty): vold set Year(); vold settide(): Int getYear(); string gerrile: virtual string GecType0-0; // “Pan ” or “State” virtual float getPrice 0; virtual vold printinfoOf cour

Expert Answer


Answer to of production Class And string tilde; Il t ;float price سعر القطعة تارية المتعلم ,int year public: …

OR