1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Snezhnost [94]
3 years ago
7

Our goal is to design a traffic-light controller with the following properties; it lights up the green light (output G) for 15 s

econds, followed by the yellow light (output Y) for 9 seconds, then the red light (output R) for 12 seconds. The controller will repeat this pattern forever. Our system will have a clock signal with a period of 3 seconds. 1. How many states, N, are needed in a FSM to implement this controller
Engineering
1 answer:
nataly862011 [7]3 years ago
3 0

Answer:

There will be three (3) states that will be needed in-order to implement the FSM controller.

Explanation:

FSM stands for  Finite-State Machine. This is an example of a model used in  mathematical computation. The FSM is an abstract machine that can be in exactly one of a finite number of states at any given time.

You might be interested in
In the circuit given below, R1 = 17 kΩ, R2 = 74 kΩ, and R3 = 5 MΩ. Calculate the gain 1formula58.mml when the switch is in posit
Elenna [48]

Answer:a

a) Vo/Vi = - 3.4

b) Vo/Vi = - 14.8

c) Vo/Vi = - 1000

Explanation:

a)

R1 = 17kΩ

for ideal op-amp

Va≈Vb=0 so Va=0

(Va - Vi)/5kΩ + (Va -Vo)/17kΩ = 0

sin we know Va≈Vb=0

so

-Vi/5kΩ + -Vo/17kΩ = 0

Vo/Vi = - 17k/5k

Vo/Vi = -3.4

║Vo/Vi ║ = 3.4    ( negative sign phase inversion)

b)

R2 = 74kΩ

for ideal op-amp

Va≈Vb=0 so Va=0

so

(Va-Vi)/5kΩ + (Va-Vo)74kΩ = 0

-Vi/5kΩ + -Vo/74kΩ = 0

Vo/Vi = - 74kΩ/5kΩ

Vo/Vi = - 14.8

║Vo/Vi ║ = 14.8  ( negative sign phase inversion)

c)

Also for ideal op-amp

Va≈Vb=0 so Va=0

Now for position 3 we apply nodal analysis we got at position 1

(Va - Vi)/5kΩ + (Va - Vo)/5000kΩ = 0           ( 5MΩ = 5000kΩ )

so

-Vi/5kΩ + -Vo/5000kΩ = 0

Vo/Vi = - 5000kΩ/5kΩ

Vo/Vi = - 1000

║Vo/Vi ║ = 1000  ( negative sign phase inversion)

3 0
3 years ago
8.19 - Airline Reservations System (Project Name: Airline) - A small airline has just purchased a computer for its new automated
e-lub [12.9K]

Answer:

The App is written in C++ language using dev C++.

Explanation:

/******************************************************************************

You can run this program in any C++ compiler like dev C++ or any online C++ compiler

*******************************************************************************/

#include <iostream>

using namespace std;

class bookingSeat// class for airline reservation system

{

  private:

   

   

  bool reserveSeat[10];// 10 seats (1-5) for first class and 6-10 for economy class

  int firstClassCounter=0;//count first class seat

  int economyClassCounter=5;//count economy class seat

  char seatPlacement;/* switch between economy and first clas seat----- a variable for making decision based on user input*/

  public:  

  void setFirstClassSeat()//

  {

      if(firstClassCounter<5)// first class seat should be in range of 1 to 5

      {

          reserveSeat[firstClassCounter]=1; /*set first class seat..... change index value to 1 meaning that it now it is reserved*/

          cout<<"Your First Class seat is booked and your seat no is "<<firstClassCounter+1; //display seat number reserved

          firstClassCounter++; //increament counter

      }

      else//in case seats are ful

      {

          cout<<"\nSeats are full";

          if(economyClassCounter==10 && firstClassCounter==5)

          {

              cout<<"\n Next flight leaves in 3 hours.";

          }

          else

          {

              cout<<"\nIt’s acceptable to be placed to you in the first-class section  y/n ";//take input from user

              cin>>seatPlacement;//user input

              if(seatPlacement=='y')//if customer want to reserve seat in first class

              {

                  setEconomyClassSeat();// then reserve first class seat

              }

              else

              {

                  cout<<"\n Next flight leaves in 3 hours.";

               }

               

          }

      }

       

  }

  void setEconomyClassSeat()//set economy class seat

  {

    if(economyClassCounter<10)//seat ranges between 6 and 10

      {

          reserveSeat[economyClassCounter]=1;// reserve economy class seat

          cout<<"Your Economy class seat is booked and your seat no is "<<economyClassCounter+1;//display reservation message about seat

          economyClassCounter++;//increament counter

      }

      else// if economy class seats are fulled

      {

          cout<<"\nSeats are full";

          if(economyClassCounter==10 && firstClassCounter==5)//check if all seats are booked in both classes

          {

              cout<<"\n Next flight leaves in 3 hours.";

          }

          else

          {

              cout<<"\nIt’s acceptable to be placed to you in the first-class section  y/n ";//take input from user

              cin>>seatPlacement;//user input

              if(seatPlacement=='y')//if customer want to reserve seat in first class

              {

                  setFirstClassSeat();// then reserve first class seat

              }

              else

              {

                  cout<<"\n Next flight leaves in 3 hours.";

               }

               

          }

      }

  }

   

   

};

int main()

{   int checkseat=10;// check seat

   int classType;//class type economy or first class

   bookingSeat bookseat;//object declaration of class bookingSeat

   while(checkseat<=10)//run the application until seats are fulled in both classes

   {

       cout<<"\nEnter 1 for First Class and 2 for Economy Class ";

       cin>>classType;//what user entered

       switch (classType)//decide which seat class to be reserved  

       {

           case 1://if user enter 1 then reserve first class seat

           bookseat.setFirstClassSeat();

           break;

           case 2://if user enter 2 then reserve the economy class seat

           bookseat.setEconomyClassSeat();

           

       }

       

   }

   

   return 0;

}

8 0
3 years ago
When a circuit has more resistance, what happens to current flow ?
zloy xaker [14]
The relationship between resistance and the area of the cross section of a wire is inversely proportional . When resistance is increased in a circuit , for example by adding more electrical components , the current decreases as a result.
6 0
3 years ago
He is going ___ in the hot air ballon​
Vladimir [108]

no artical shoul be used here

5 0
2 years ago
Explain the process of energy conversion by describing how energy was converted from the windmill design brief. Discuss the diff
cupoosta [38]

Answer:

Wind energy is converted to Mechanical energy  which is then converted in to  electrical energy

Explanation:

In a wind mill the following energy conversions take place

a) Wind energy is converted into Mechanical energy (rotation of rotor blades)

b) Mechanical energy is converted into electrical energy (by using electric motor)

This electrical energy is then used for transmission through electric lines.

6 0
2 years ago
Other questions:
  • A gear and shaft with nominal diameter of 34 mm are to be assembled with a medium drive fit (H7/s6). The gear has a hub, with an
    9·1 answer
  • A pressure gage connected to a tank reads 50 psi at a location where the barometric reading is 29.1 inches Hg. Determine the abs
    6·1 answer
  • A power company desires to use groundwater from a hot spring to power a heat engine. If the groundwater is at 95 deg C and the a
    7·1 answer
  • In order to avoid slipping in the shop, your footwear should __
    10·2 answers
  • What are the two safety precautions taken before driving a car​
    12·1 answer
  • Plot the following trig functions using subplots, choosing an appropriate layout for the number of functions displayed. The subp
    8·1 answer
  • Ammonia in a piston–cylinder assembly undergoes two processes in series. At the initial state, p1 = 120 lbf/in.2 and the quality
    15·1 answer
  • A Wii remote flung from a hand through a TV, with a kinetic energy of 1.44J and a mass of 4.5kg. Whats the velocity?
    6·1 answer
  • A single-phase load is located 2800 ft from its source. The load draws a current of 86 A and operates on 480 V. The maximum volt
    10·1 answer
  • Steam locomotives with a 4-6-2 wheel arrangement were usually classified as what?.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!