ProgrammingJava Programming 1 assignment HELP!
Posted:

ProgrammingJava Programming 1 assignment HELP!Posted:

Cyberking
  • Winter 2016
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 532
Reputation Power: 28
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 532
Reputation Power: 28
Below is the assignment. Im having trouble completing it! I'm willing to pay $25 thru paypal to anyone who can complete this and send me the java file back.


ParkingLot Class

Write a class named ParkingLot.

The class has the following fields, and only these fields:

location a String containing the street address where the parking lot is located
length the length in feet of the parking lot
width the width in feet of the parking lot
hcSpaces the number of handicap parking spaces the parking lot has
nonhcSpaces the number of non-handicap spaces the parking lot has
numEntrances the number of entrances the parking lot has
numExits the number of exits the parking lot has


Use appropriate data types for the above fields where it is not specified.



The class has the following methods:

A constructor that accepts as arguments values for the fields above, in the order shown above.
A copy constructor that makes a copy of a ParkingLot object.
A getLocation method that returns the value of the location field.
A getHcSpaces method that returns the value of the hcSpaces field.
A getNonHcSpaces method the returns the value of the nonhcSpaces field.
A setNumEntrances method that accepts an Integer argument, which is assigned to the NumEntrances field.
A setNumExits method that accepts an Integer argument, which is assigned to the NumExits field.
An equals method that accepts a ParkingLot object as an argument. If the argument object has the same number of total parking lot spaces as the calling object, this method returns true. Otherwise, it returns false. The total number of parking lot spaces is the sum of the handicap and nonhandicap spaces.
A toString method that returns the values of all class fields in a friendly, readable fashion.


Demonstrate your class in a program by

creating at least three ParkingLot objects. Two should have the same number of handicap and non-handicap spaces.
displaying your objects by causing the toString method to be called. Do not directly call toString.
showing that your equals method works properly for two "equal" parking lot instances and for two "not equal" instances.
Your ParkingLot class must be in a separate java file
#2. Posted:
Cyberking
  • Christmas!
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 532
Reputation Power: 28
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 532
Reputation Power: 28
If your able to do it please respond on this form or pm me. I have to get it completed by today!
#3. Posted:
asan13
  • New Member
Status: Offline
Joined: Dec 10, 20185Year Member
Posts: 2
Reputation Power: 0
Status: Offline
Joined: Dec 10, 20185Year Member
Posts: 2
Reputation Power: 0
I as well have this assignment due today. If anyone could help please let us know! I too will pay for this!
#4. Posted:
acballer192
  • Challenger
Status: Offline
Joined: Jun 28, 201014Year Member
Posts: 153
Reputation Power: 6
Status: Offline
Joined: Jun 28, 201014Year Member
Posts: 153
Reputation Power: 6
Did you guys ever yet your help? Lol
#5. Posted:
asan13
  • New Member
Status: Offline
Joined: Dec 10, 20185Year Member
Posts: 2
Reputation Power: 0
Status: Offline
Joined: Dec 10, 20185Year Member
Posts: 2
Reputation Power: 0
#6. Posted:
acballer192
  • Challenger
Status: Offline
Joined: Jun 28, 201014Year Member
Posts: 153
Reputation Power: 6
Status: Offline
Joined: Jun 28, 201014Year Member
Posts: 153
Reputation Power: 6
asan13 wrote


Im probably able to help you if you still need help. Dm me if you need some help. Got nothing else to do lol.
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS