Purchase Solution

UML into Java Code

Not what you're looking for?

Ask Custom Question

Please help with this UML Diagram by updating it and putting it into Java Code. The one that I did is listed below:

Car object class:

1. What does CAR object know?

The CAR object should know about

a. Its direction to move

b. Its Speed limit(min and max)

c. Gear limit

d. Break capacity

e. Engine status

2. What can a CAR object do?

The functions of CAR are

a. Move (front and back)

b. Start Engine

c. Stop Engine

d. Increase Gear

e. Decrease Gear

f. Stop or slow down using Break

______________________________________________________________________________

Car Object

----------------------------------------------------------------

- __accelerationTime: float

- __acceleration: float

- __breakAcceleration: float

- __gear: int

- __gearUpshifted: Boolean

- __maxGear: int

- __position: float

- __speed: float

- __started: boolean

------------------------------------------------------------------------

+ setAccelerationSpeed(speed: Float):

+ getAccelerationSpeed() : Float

+ displaySpeed()

+ brake()

+ setDownshiftGear(gear: Int)

+ getDownshiftGear() : Int

+ startEngine(): int

+ stopEngine(): int

+ toString(): String

+ upshiftGear(): int.

Purchase this Solution

Solution Summary

UML into Java codes are examined in the solution. What the CAR objects knows is determined.

Solution Preview

See attached file for the completed solution.

Question:
UML into Java Code
I need help with this UML Diagram by updating it and putting it into Java Code. The one that I did is listed below:

Car object class:

1. What does CAR object know?

The CAR object should know about

a. Its direction to move

b. Its Speed limit(min and max)

c. Gear limit

d. Break capacity

e. Engine status

2. What can a CAR object do?

The functions of CAR are

a. Move (front and back)

b. Start Engine

c. Stop Engine

d. Increase Gear

e. Decrease Gear

f. Stop or slow down using Break

______________________________________________________________________________

Car Object ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.