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 method, to be included in a template unsorted list

Write a metho, to be included in a template unsorted list class, called replace_item, that will receive two xType parameters, one called olditem, the other called newitem.

  Draw a two-dimensional house seen from the front

Draw a two-dimensional house seen from the front, the way a child would: with a dor, two windows, and a roof with a chimney

  Aimthis assignment is designed to apply your knowledge on

aimthis assignment is designed to apply your knowledge on microcontroller to build a traffic light system. you are

  Function odd_fill() that fills all integers between two poin

write a function odd_fill() that fills all integers between two pointers, first and last, with a sequence of odd integers: 1,3,5,7

  Write a c++ program to sort a list of number using vectors

Write a C++ program to sort a list of number using vectors. Output the values when the elements are inserted into its correct position. Assume the first element in the list is sorted.

  Write a function that takes two positive integer arguments

Write a function named "g_c_d" that takes two positive integer arguments and returns as its value the greatest common divisor of those two integers. If the function is passed an argument that is not positive (i.e., greater than zero).

  Dimensional array of integers and fill it with data

Create a 2-by-3 two-dimensional array of integers and fill it with data. Loop through the array and locate the smallest value stored. Print out the smallest value as well as its row and column position in the array

  Write a c program that reads a data file of floating numbers

Write a program that reads a data file of floating numbers into an array and prints the array elements along with the number of items in the array

  Linked list program

This lab, along with your TA, will help you navigate through designing, implementing, and testing a dynamic linked list.  Linked lists may be used to implement many real world applications. Recall, linked lists are data structures, which represent co..

  You will implement a simplified version of the set class

you will implement a simplified version of the set class. you must implement all functions defined in the provided file

  Value of x after the following code is executed

What will be the value of x after the following code is executed?int x = 20, y = 30;while (y

  State private portion of class to model the item

In c++ state the private portion of a class to model the given item: a class Date for dates consisting of a month, day and year. a class PhoneNumber for a telephone numbers consisting of area code, local exchange, and number.

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