CTEC5723 High Assurance System Design Assignment

Assignment Help Other Subject
Reference no: EM132485872

CTEC5723 - High Assurance System Design - De Montfort University

Learning outcome 1: Describe and evaluate fundamental formal methods concepts

Learning outcome 2: Analyse and critically review the role of formal methods in the software life cycle

Learning outcome 3: Critically evaluate the role of tools and methods supporting formal software development

Exercise 1

You are given the following vending machine specifications:

Machine N can dispense the following type of snacks: chocolate bar, packet of crisps or bag of sweets. N has 3 buttons for selecting the type of snack and 2 buttons for selecting the number of snacks: 1 or 2.

Payment can only by contactless card. The customer first selects the type of snack and then selects the number of snacks. If the number of snacks is available then the customer presents the contactless card to the card reader. If payment is approved then N will dispense the selected item and wait for the next customer. N can run out of a particular type of snack, in this case a warning will be issued to the customer that another item can be selected. The customer can either select another type of snack or choose not to have a snack. If number of snacks selected is not available then N will only dispense the available number of snacks.

Machine M is a updated version of machine N. The unhealthy chocolate bar has been replaced by the healthy cereal bar and the healthy option bag of popcorn has been added. M has therefore 4 buttons for selecting the type of snack. The operation of M is the same as N.

Machine P can dispense the the following type of healthy drinks: fruit juice, water or skimmed milk. P has currently 3 buttons for selecting the type of drink. Payment can only by contactless card. The customer first selects the type of drink and then presents the contactless card to the card reader. If payment is approved then P will dispense the selected item and wait for the next customer. P can run out of a particular drink, in this case a warning will be issued to the customer that another item should be selected. The customer will only be presented with the no drink option if P runs out of all drinks.

You are required to

Q1: Produce a model of each of the following machines together with an appropriate set of documentations which includes: the specification of the models, the models themselves, design decisions and their simulation and test cases (using JFLAP):

i) Machine N for dispensing a number of snacks.
ii) Machine M for dispensing a number of snacks.
iii) Machine P for dispensing a drink.
iv) A combined P-N machine in which a number of snacks are dispensed after the drink. Note: payment for machine P is separate from machine N.
v) A combined P-M machine in which a number of snacks are dispensed after the drink. Note: payment for machine P is separate from machine M.
vi) A combined M-P machine in which a drink is dispensed after a number of snacks. Note: payment for machine M is separate from machine P.

Q2: Explore the notion of equivalence between FSMs in general.

Investigate the condition(s) that need to be satisfied for the combined P-N machine produced in iv) and the combined P-M machine produced in v), to be equivalent.

Exercise 2

Q1: Describe informally the languages accepted by the finite state machines shown below.

i)

1989_figure.jpg

ii)

1630_figure1.jpg

b)The following machine is deterministic finite state machine over the input alphabet {0; 1}

827_figure2.jpg

i) Construct the minimisation tree for this machine.

ii) Deduce the minimal deterministic finite state machine equivalent to this machine. Note: you should also remove unreachable states if any.

c) Given the following language.
L = {w ∈ {0; 1; 2; 3; 4; 5; 6; 7; 8; 9}+ : w is a multiple of 1000 }

i) Construct a deterministic finite state machine accepting L.
ii) Give a regular expression for the language L.

d) Draw state diagrams for nondeterministic finite machines accepting these languages.
i) (ba)* + aa*

ii) 1*(01*)*1*

e) Consider the "-transition nondeterministic finite state machine shown below.

1033_figure3.jpg

i) Construct a nondeterministic finite state machine equivalent to this machine.
ii) Transform the machine obtained in i) into an equivalent deterministic finite state machine.

Exercise 3.

Assessment Indicators:

a) Critically analyse the limitations of finite state machines (FSM) in modelling reactive systems and discuss how these limitations are overcome in Statecharts. (Max 500 words)

b) The following is an informal description of the entry and exit system of a bio laboratory (AREA-42). AREA-42 consists of two rooms, the green room where staff put on their bio-hazard suites, and the red room where all the experiments will take place. Staff can enter and exit the green and red rooms via the two orange corridors.

The AREA-42 entry/exit system (see figure) consists of four doors D0, D1, D2 and D3 and two infrared sensors IR0 and IR1.
Initially door D0 is open, door D1 is closed, door D2 is open and door D3 is closed.

1619_figure4.jpg

The procedure for exiting the green room and entering the red room is as follows:
• Enter the left orange corridor via door D0.
• If infrared sensor IR0 detects somebody then door D0 will close.
• If D0 is closed then door D1 will open.
If infrared sensor IR0 does not detect somebody then door D1 will close.
If door D1 is closed then the left corridor is decontaminated. This procedure takes 30 seconds.

If the decontamination procedure has completed then the door D0 will open.

The procedure for exiting the red room and entering the green room is as follows:
• Enter the right orange corridor via door D2.
• If infrared sensor IR1 detects somebody then door D2 will close.
If D2 is closed then the right corridor is decontaminated. This procedure takes 1 minute.
If the decontamination procedure has completed then the door D3 will open.
If infrared sensor IR1 does not detect somebody then door D3 will close.
• If door D3 is closed then door D2 will open.

Be aware of the following
The two decontamination procedures are different in that the left one is lethal to humans. The right one is human friendly.

As experiments in the red room are potential dangerous doors D2 and D3 should not be open at the same time. Similarly doors D0 and D1.

Specify the above AREA-42 system using Statecharts.

Check your answer by simulating that a staff member first enters the left orange corridor and then enters the red room. After a while the staff members returns to the green room via the right orange corridor.

Reference no: EM132485872

Questions Cloud

Specific recommendations for a friend or family member : The Covid pandemic and required changes to our lives have created much stress for many of us. Give five specific recommendations for a friend or family member
ME602 SCADA and Distributed Control Systems : ME602 SCADA and Distributed Control Systems Assignment help and solution, Engineering Institute of Technology - assessment writing service
How could issuing a premium bond help the company : How could issuing a premium bond help the company in terms of the impact on financial statement?Which statement could be affected the most?
What is reported on the balance sheet as of december : The ending inventory has a value of $360,000. If dollar-value LIFO is being used, what is reported on the balance sheet as of December 31, Year Two?
CTEC5723 High Assurance System Design Assignment : CTEC5723 High Assurance System Design Assignment help and solution, De Montfort University - assessment writing service
What initial salary would ben need to receive : What initial salary would Ben need to receive to make him indifferent between attending Wilton University and staying in his current position?
What is megatropolis hospital operating margin : What is Megatropolis Hospital's operating margin? Refer to Megatropolis Hospital's financial statements below for calculating the ratios requested
Identify two ethical requirements : Identify two ethical requirements to be considered when making budgetary forecasts and projections. Explain how each requirement will affect
List two principles of corporate governance : List two principles of corporate governance, and at least onepractice associated with the principle specified. Refer to the Corporate Governance Principle

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd