Skip to content

Interactive console application that represents a hill walker's watch.

Notifications You must be signed in to change notification settings

Omer-l/Hill-Walker-Device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hill-Walker-Device

Object Oriented Programming Coursework, Second Year of Computer Science

Scenario

The program must implement the FSM illustrated in Figure 5. As part of this program, design and implement a Java class that represents the wrist device

Below is a finite state machine. The FSM essentially represents the set of states that the device can be in, with transitions resulting from events and actions produced by one of the two buttons being pressed. Note that when the device is in ‘altimeter’ mode, pressing the ‘set’ button has no effect and the device remains in altimeter mode (this is sometimes referred to as a null transition).

  1. The User interaction supports all state transition depicted in Figure 5.
  •   Below is the prompt with real current time displayed.

      

  1. For the purposes of this task the altimeter mode is fixed at value 1500 (metres).
  •   Below shows the application when the state is 'mode=altimeter'.

      

About

Interactive console application that represents a hill walker's watch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages