Correction Required:
Please do all the changes marked as RED.
From Week 2 Feedback:
Points
|
Item
|
29/35
|
Feedback from previous assignment is incorporated correctly into the assignment.
You are missing attribute name for your VectorconvertToString is missing correct return data type (this method is supposed to take attributes and format them into a string which is then returned)loadFromString method in Suv class is missing parameteraddVehicle and editVehicle methods have two data types for the parameter – String and Vehicle. A parameter should be defined as “access-modifier data-type attribute-name”
|
XXX below Image XXXX XXX XXXXXXX as :
Images Not ShownXXXXX:
public Vector&XX;Vehicle> listOfVehicles
Images Not Shown
XX all the XXXXXXX XXXXXX XXXXXXXXXXXXXXX() XXXXXX XX :
XXXXXX XXXXXX XXXXXXXXXXXXXXX()
Images Not Shown
In the XXXXX diagram change loadFromString() XXX calculateMilerPerGallon as:
XXXXXX void loadFromString(String attributeString)
public void XXXXXXXXXXXXXXXXXXXXXXX()
XXX the Sedan class it XXXXXX be XXXX XX XXXXX.
Images Not Shown XXXX change XXXXXXXXXX and editVehicle XX :
XXXXXX XXXX addVehicle(String XXXXXXXXXXXXXXX , Vehicle XXXXXXX)
XXXXXX XXXX XXXXXXXXXXX(String attributeString , XXXXXXX vehicle)
This XX DONE XXXX. XXXX XXXX be Week 3 XXXXXXXX
XXXX XXXX X Feedback:
9/15
|
Every composition XXX XXXXXXXXXXX XXXXXXXXXXXX has a correct cardinality XXX each class
Cardinality gives a XXXXX between two XXXXXXX. So you XXXXXX have in composition XXXXXXXXXXXX XXXXXXX XXXXX and Vehicle XXXX X or more XXXXX objects contain X or more XXXXXXXX. How XXXXX a XXXXX that does XXX XXXXX XXXXXXX it XX X XXXX XXXXXXXX? XX XXXXXXXXXXX on Fleet side is incorrect.FleetManager can XXXX XXXX up XX one XXXXX XXXXXX so in your composition relationship XXXXXXX FleetManager XXX Fleet, the cardinality XXX XXXXX XX XXXXXXXXX.
|
Images Not Shown
XX XXX above XXXXXX red just change XX :
1..*----------------------------------------------------------------- X…*
XXXX : Only XXXXXX the values nothing XXXX
Images Not Shown
Here change the XX XXXXXX RED as: XXXXXXX XX 0..* just write X like below
X --------------------------------------------------------- X
XXXX : Only XXXXXX the XXXXXX nothing else
XXXX END XXXX . Week X work XXXX next page:
XXXX 4 Task
(XXXXX XXXXXXX Snapshot)
XXX XXX the RED one in XXXXXXXXXX XXXXXXX
XXXXXX FleetManager
|
XXXXXX Fleet XXXXX
|
public FleetManager(Fleet XXXXX)
public FleetManager()
public void saveToFile()
XXXXXX void XXXXXXXXXXXX(Integer fleedID)
XXXXXX XXXX deleteFleet()
|
XXXXXX XXXXX
|
public XXXXXXX XXXXXXX
XXXXXX Vector<Vehicle>listOfVehicles
|
XXXXXX Fleet()
public XXXXX(XXXXXX fleetID , Vector&XX;Vehicle&XX; XXXXXXXXXXXXXX)
XXXXXX XXXX XXXXXXXXXXXXX(XXXXXX vinNumber)
XXXXXX void openFromFile(XXXXXXX fleetID)
public XXXX saveToFile()
XXXXXX XXXX XXXXXXXXXX(String XXXXXXXXXXXXXXX ,XXXXXXX vehicle)
XXXXXX XXXX editVehicle(XXXXXX attributeString ,Vehicle XXXXXXX)
|
public Vehicle
|
public Integer XXXXXXXXXXXXXXXXX
public Integer yearBuilt
XXXXXX XXXXXXX mileage
public XXXXXXX cylinders
XXXXXX Integer XXXXXXXXXXXXXX
public String make
public String vinNumber
|
public Vehicle()
XXXXXX XXXXXXX(XXXXXXX passengerCapacity , XXXXXXX yearBuilt, XXXXXXX mileage , XXXXXXX cylinders , XXXXXXX XXXXXXXXXXXXXX , XXXXXX XXXX , String vinNumber)
|
XXXXXX XXXXX
|
|
XXXXXX XXXXX()
public XXXXX(Integer XXXXXXXXXXXXXXXXX , Integer yearBuilt, Integer XXXXXXX , Integer XXXXXXXXX , XXXXXXX XXXXXXXXXXXXXX , XXXXXX make , XXXXXX XXXXXXXXX)
publicXXXXXXconvertToString()
XXXXXX void loadFromString(XXXXXX attributeString)
XXXXXX void XXXXXXXXXXXXXXXXXXXXXX()
|
public XXXXX
|
|
XXXXXX XXXXX ()
XXXXXX Sedan (Integer XXXXXXXXXXXXXXXXX , XXXXXXX yearBuilt, XXXXXXX mileage , Integer XXXXXXXXX , Integer milesPerGallon , XXXXXX XXXX , XXXXXX XXXXXXXXX)
publicStringconvertToString()
public XXXX loadFromString(XXXXXX XXXXXXXXXXXXXXX)
public void XXXXXXXXXXXXXXXXXXXXXX()
|
public XXX
|
|
public Suv ()
public Suv (Integer XXXXXXXXXXXXXXXXX , Integer yearBuilt, XXXXXXX XXXXXXX , Integer cylinders , Integer milesPerGallon , String make , XXXXXX XXXXXXXXX)
XXXXXXXXXXXXXXXXXXXXXXXXXXX()
XXXXXX voidXXXXXXXXXXXXXX(XXXXXX XXXXXXXXXXXXXXX)
XXXXXX XXXXcalculateMilesPerCount()
|
">