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

  Write a c program that asks for and reads in two integers

Write a C program that asks for and reads in two integers and then reports if one is a multiple of the other.

  Write a recursive method to print all the permutations

Write a recursive method to print all the permutations of a string.

  The grid is populated randomly

Initially, the grid is populated randomly with occupied and empty cells. Once the initial grid has been created, the program loops. Each iteration of the loop represents a tick or time step in the environment.

  Functions to compute stress and strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads P of 10,000 to 1,000,000 pounds.

  This project is to develop a program that implements a

this project is to develop a program that implements a hierarchical jpeg encoderdecoder for greyscale images.write your

  Principle ofsuperposition to determine that system is linear

Apply the principle of superposition to determine whether the following systems are linear. Sketch what the plot of the function looks like.

  Assignment in c you will write a program that draws a

assignment in c you will write a program that draws a single level for a rogueshylike computer game. the program will

  Ng stands for next guess

Where NG stands for next guess and LG stands for last guess. Write a function that calculates the square root of a number using this method. The initial guess will be the starting value of LG .

  Programmingto compute the volume of water in the cubic feet

Write down an algorithm (Programming in C) in order to compute the volume of water in the cubic feet, flowing through a pipe of diameter d in feet, having a velocity of v feet per second.

  Write a c++ program containing a linked list of 10 integer

Write a C++ program containing a linked list of 10 integer numbers. Have the program display the numbers in the list.

  Modify it so it gives the ith largest number

the follow code gives the ith smallest number, how do you modify it so it gives the ith largest number ?

  Create an array of boat objects

Create Classes for each of the object types that need to be stored, as indicated above.

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