SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 4 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 06 Jan 2018 My Price 6.00

Make a LandTractclass with the following fields:

Make a LandTractclass  with the following fields:

 

• length - anint  containing the tract's length

• width - anint  containing the tract's width

 

Theclass  should also have the followingmethods :

 

• area - returns anint  representing the tract's area

•equals  - takes another LandTractobject  as aparameter  and returns aboolean  saying

whether  or not the two tracts have the same dimensions (This applies regardless ofwhether  the dimensions match up. i.e., if the length of the first is the same as the width of the other and vice versa, that counts as havingequal  dimensions.)

• toString - returns aString  with details about the LandTractobject  in the format:

LandTractobject  with length 30 and width 40

(If, for example, the LandTractobject  had a length of 30 and a width of 40.)

 

Write a separateprogram  that asks the user to enter the dimensions for the two tracts of

land (in the order length of the first, width of the first, length of the second, width of the second). Theprogram  should print theoutput  of two tracts' toStringmethods  followed by a sentence statingwhether  or not the tracts haveequal  dimensions. (If the tracts have the same dimensions, print, "The two tracts have the same size." Otherwise, print, "The two tracts do not have the same size.") Print all threestatements  on separate lines.

Answers

(5)
Status NEW Posted 06 Jan 2018 01:01 PM My Price 6.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)