Question: REMINDER this subject is object oriented development Question 2 Design a class named CarpetCalculator to represent a carpet. The class contains: A string data field

 REMINDER this subject is object oriented development Question 2 Design a

REMINDER this subject is object oriented development

Question 2 Design a class named CarpetCalculator to represent a carpet. The class contains: A string data field named carpet Name that specify the name of the carpet. (example: Berber,Pile.etc) . e Three double data fields named pricePerSquareMeter, roomLength, and room Width. e A constructor that creates a carpet with the specified name, price and area (length width) NOTE: name, and price can be hard-coded. Length andwidth can be input by user . A method named determineTotal Cost0 that calculates and returns the cost of the carpet. Draw a UML diagram for the class Write a program named CarpetCalculatorApp java that creates two carpet object. a. b. Implement the class (named CarpetCalculator java) c. dis Persian Display the cost of both of the carpets Input WhatiSthe room!ength(rn)? OK Cancel Input 2What is the room width (m)? OK Cancel

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!