Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 3 (30%) This programming task has a focus on basic object-oriented concepts that are introduced in Chapter 9 of the module kortext Consider the

image text in transcribed

Task 3 (30%) This programming task has a focus on basic object-oriented concepts that are introduced in Chapter 9 of the module kortext Consider the finite state machine (FSM) that is illustrated in Figure 5 below. press mode / change display to altimeter press mode / change display to time mode = time mode = altimeter press set press set/change display to set hours press mode / change display to time mode = set hours mode = set mins press mode / change display to set mins press set / add 1 to hours press set / add 1 to mins Figure 5: Finite State Machine representation of a 'hill walker' device The FSM illustrated in Figure 5 represents a (very) simple 'hill walker' wrist device. The device only has two buttons: one for 'mode', and one for 'set'. 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). Your task is to write a Java 8 program (as a NetBeans 8 project) that is a simulation of this simple wrist device. In other words, the program must implement the FSM illustrated in Figure 5. As part of this program, you are required to design and implement (as a minimum) a Java class that represents the wrist device. As with all other tasks in this assignment, User interaction must be text-based at the NetBeans console. For this simulation, the user interaction must support all state transition depicted in Figure 5 and allow the user to exit the program. For the purposes of this task you can assume the altimeter mode is fixed at value 1500 (metres). Task 3 will be assessed according to correct logic (i.e., correct implementation of the FSM) within the simulation program, and your use of object-oriented concepts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago