Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Does it have correct contact information?

Answered: 1 week ago