The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 374 Weeks Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
I need help with this..
Â
In this project, you will make Race Boat application. Each Race Boat has a name. The name of the boats should be read from a file "boats.txt". You can assume there will be a maximum of 100 boats. Copy and paste the following boat names in the boat.txt file:
Â
Sea Monkey
Backdraft
Cast Away
Nautifish
Destiny
Â
The application should be able to accept commands from the user. The user has to provide the commands in the following format:
Â
<Boat name>, <command>
Â
Example:
Sea Monkey, power on
Sea Monkey, turn left
Sea Monkey, speed up
Â
The acceptable commands are the following (Any other command should be considered invalid):
Â
Â
Command (1st line in bold)
Description (2nd line non-bold):
Â
power on
This commands powers up the boat
power off
This commands powers off the boat
speed up
This commands increases the boat speed by the minimum speed increment 2 mph
slow down
This commands decreases the boat speed by the minimum speed decrement 2 mph
turn left
This commands turns the boat to the left by the minimum left turn degree 5 deg
turn right
This commands turns the boat to the right by the minimum right turn degree 5 deg
Â
Â
After each command is entered and executed, the state of the boat should be output.
Â
Backdraft at the speed of 10 mph moving in the direction 330 deg.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I