No products in the cart.

Define a class Clothing in C++ …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Define a class Clothing in C++ with the following descriptions: Private Members: Code. Of type string Type. Of type string Size. Of type integer Material. Of type string Price. Of type float A function Calc_Price() which calculates and assigns the value of GPrice as follows: For the value of Material as"COTTON": Type. Price (Rs) TROUSER. 1500 SHIRT. 1200 For Material other than "COTTON" the above mentioned price gets reduced by 25%. Public Members : A constructor to assign initial values of code, Type and Material with the word "NOT AS-SIGNED" and Size and price with 0. A function Enter() to input the values of the data members Code, Type ,Size and Material and invoke the Calc_Price() function. A function Show() which displays the content of all the data members for a Clotting.
  • 0 answers
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App