Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 2912 Assignment3 Vinyl Tile Calculator The Kimo Vinyl Tile Company has asked you to create an application that calculates the price of vinyl tile

image text in transcribedimage text in transcribed

CSCI 2912 Assignment3 Vinyl Tile Calculator The Kimo Vinyl Tile Company has asked you to create an application that calculates the price of vinyl tile for rectangular rooms. To calculate the price, you multiply the area of the floor (width times length) by the price per square foot of vinyl tile. For example, the area of floor that is 10 feet long and 10 feet wide is 100 square feet. To cover that floor with vinyl that costs $9 per square foot would cost $900 (10 x 10x 9-900) First you should create a class named RoomDimension that has two fields: one or the length of the room and one for the width. The RoomDimension class should have a method that returns the area of the room (as stated before, area of the room is the room's length multiplied by the room's width). Next you should create a RoomVinyl class that has a roomDimension object as a field. It should also have a field for the cost of the vinyl per square foot. The RoomVinyl class should have a method that returns the total cost of the vinyl Below is a UML class diagram that shows possible class designs and the relationships among the classes. Once you have written these classes, use them in an application that asks the user to enter the dimensions of a room and the price per square foot of the desired vinyl tile. The application should display the total cost of the vinyl tile

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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago