How to implement a state transition diagram

Assignment Help C/C++ Programming
Reference no: EM13524804

An Automated External Defibrillator (AED) is used in first aid ere someone has had a heart attack and needs to be kept alive until an ambulance arrives.

You will design and build a simulation of an AED.

1. The device should be able to detect whether the patient's heart is beating normally (display a green light) or whether it has stopped beating (display a red light). Simulate this with a :witch or other hardware (so for example if the switch is being pressed, the patient's heart has stopped, and if the switch is not being ressed, the heartbeat is normal).

2. If the device detects that the patient's heart is not beating, it should warn bystanders to stand clear and after ten seconds apply an "electric shock.'

3. If after step 2 the heart is still not beating, it should ask the user to start delivering CPR - simulate this by rePeatedlY Pressing a button. Monitor (and possibly display( the rate at which the button is being pressed - between one and two presses per second is the correct rate. Warn the user if the button is being pressed too quickly or too slwly.

4. After 30 seconds of CPR, go to step 2 again, and repeat until the heart starts beating.

You may like to incorporate other inputs and outputs - we have a limited supply of LCD displays, 7-segment LED displays, keypads. You should also look at the example (in the C Programming folder) of how to implement a state transition diagram.

Reference no: EM13524804

Questions Cloud

Analyze current health care delivery structure in your state : Analyze the current health care delivery structure in your state and compare and contrast the major determinants of healthcare market power.
Evaluate the molarity of the diluted acid solution : A student carefully diluted 50.0mL of 6 M HCI solution in 950.0 mL of distilled water. calculate the molarity of the diluted acid solution. Explain why this diluted HCI solution cannot be used as a standard solution of acid.
Receipt of the first payment, and the recognition of revenue : Receipt of the first payment, and the recognition of revenue (assume Baylor uses the perpetual inventory method).
State which of the changes listed will shift the equilibrium : Which of the changes listed will shift the equilibrium to the right for the following reversible reaction. CO(g) +H2O(g) (arrow points to the left and right) CO2(g) + H2(g) + heat
How to implement a state transition diagram : An Automated External Defibrillator (AED) is used in first aid ere someone has had a heart attack and needs to be kept alive until an ambulance arrives.
Calculate the return on equity for abercrombie in 2012 : 1. Calculate the return on equity for Abercrombie in 2012. (Enter your answers in millions, not in dollars. Round your answers to 1 decimal place.)
What is the speed of the car just as it passes the train : A train is moving parallel and adjacent to a highway with a constant speed of 23 m/s. What is the speed of the car just as it passes the train
Net short-term capital gain or loss : Net short-term capital gain or loss before consideration of the prior year loss carryforward;
Calculate the area of the large square : The circle inside the large square below has an area of 71.4 cm2. Calculate the area of the large square

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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