Changes between Version 5 and Version 6 of ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises


Ignore:
Timestamp:
Nov 14, 2016, 8:10:42 PM (9 years ago)
Author:
azhang
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises

    v5 v6  
    3131* In the `main` method, the `Farm` creates a `Dog` with a `mass` of `15.4` named `Spot`
    3232
    33 In the `main` method, the `Farm` will print the names of both animals and their masses.
    34 * Ex. `Spot is a Dog with a mass of 15.4.`
    35 Then, `Cloud` will `eat` `0.2`, `move` `0.8`, and `speak`.
    36 `Spot` will then `eat` `0.4`,  `move` `0.6`, and `speak`.
    37 `Farm` will print the names of both animals and their masses once again.
     33In the `main` method, the `Farm` will:
     34* print the names of both animals and their masses.
     35  1. Ex. `Spot is a Dog with a mass of 15.4.`
     36* Then, `Cloud` will `eat` `0.2`, `move` `0.8`, and `speak`.
     37* `Spot` will then `eat` `0.4`,  `move` `0.6`, and `speak`.
     38* `Farm` will print the names of both animals and their masses once again.
    3839
    3940You will probably get weird numbers like 15.200000000001. This is imprecision with floating point numbers, and is normal