Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, need little help with my programming homework. Gave you the details and the UML just unsure how to set up the array for cost():

Hello, need little help with my programming homework. Gave you the details and the UML just unsure how to set up the array for cost(): double and toString(): String as in what goes under them. Thanks

The cost of the Standard Service Level( S ) is $9,865.34 per acre(prorated).

Example: at the Standard Service Level, a 1.5 acre lot is 1.5*9,865.34 = $14,798.01

The cost of the Premium Service Level( P ) is $15,975.75 (prorated) for up to an acre. When a lot is over an acre the price is $15,975.75 for the first acre and $21,999.98 per acre (prorated) beyond 1.

Example: at the Premium Service Level, a 1.5 acre lot is 1.0*$15,975.75 +0.5*$21,999.98 = $26,975.74

LandscapingService

LandscapingService

-serviceLevel : char

-acreage : double

+ LandscapingService ( newServiceLevel : char, newAcreage: double )

+getAcreage( ) : double

+getServiceLevel( ):char

+setAcreage( newAcreage: double ) : void

+setServiceLevel( newServiceLevel : char ) : void

+cost( ) : double

+toString( ) : String

I know how to setup the UML just not sure how to program the cost(): double and toString(): String as in what goes under them

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

The Power Of Numbers In Health Care A Students Journey In Data Analysis

Authors: Kaiden

1st Edition

8119747887, 978-8119747887

More Books

Students also viewed these Databases questions

Question

In c++ 1) int *number; cout Answered: 1 week ago

Answered: 1 week ago

Question

How many multiples of 4 are there between 10 and 250?

Answered: 1 week ago