Design a state machine to operate the two trains

Assignment Help Econometrics
Reference no: EM131301460

Design a state machine to operate the two trains avoiding collisions but minimizing their idle time. Trains must not crash by moving the wrong direction into an open switch. Develop a simulation to verify your state machine is operating correctly before running the video train system. The trains are assumed to be in the initial positions as shown in Figure 8.14. Train A is to move counterclockwise around the outside track until it comes to Sensor 1, then move to the inside track stopping at Sensor 5 and waiting for B to pass Sensor 3 twice. Trains can move at different speeds, so no assumption should be made about the train speeds. A train hitting a sensor can be stopped before entering the switch area.

Once B has passed Sensor 3 twice, Train A moves to the outside track and continues around counterclockwise until it picks up where it left off at the starting position as shown in Figure 8.15. Train B is to move as designated only stopping at a sensor to avoid collisions with A. Train B will then continue as soon as there is no potential collision and continue as designated. Trains A and B should run continuously, stopping only to avoid a potential collision.

2185_c0d1222c-d98e-47bb-af8e-cd3f53c4b450.png

Reference no: EM131301460

Questions Cloud

Describe the companys strategic approach to globalization : Analyze the company's strategic approach to globalization and their approach to competition, sustainability, CSR, marketing, analysis (external, internal, industry), and cross border issues
Despite the difference in the solution methods : Noting that this game is equivalent to game (B) of question 2 from Problem Set #6, compare and make sure that the solutions are identical as well (despite the difference in the solution methods).
Should the sampsons buy these stocks explain : Summarize your decision on the type of orders you will place to purchase stocks and your preference for using cash versus buying on margin.
Child obesity : Title: Child Obesity (Should it be okay to ban junk food from school?)A synthesis (researched) argument Essay on this topic. Child Obesity  (Should it be okay to ban junk food from school?). I have already purchased two other orders on this topic the..
Design a state machine to operate the two trains : Trains can move at different speeds, so no assumption should be made about the train speeds. A train hitting a sensor can be stopped before entering the switch area.
Relevant concepts and include relevant examples : Discuss in detail any relevant concepts and include relevant examples in your answer. The answer is worth a total of twenty-five points. these are long answer questions.
How would stephanies bond investing decisions : How would Stephanie's bond investing decisions be different if she were a single mother of two children?- When should you consider investing in bonds?
What is a call feature on a bond : What is a call feature on a bond? How will a call feature affect investor interest in purchasing the bond?- What is a convertible bond?
How will this affect the economy : On Dec. 16, 2015 the Federal Reserve voted to increase interest rates for the first time in 7 years. How will this affect the economy? Check out this video from The New York Times.

Reviews

Write a Review

Econometrics Questions & Answers

  Evaluating the results of regression

Gold Trackers watching the value of precious metals and has daily information on prices and sales of gold for the last many years.

  Find the new equilibrium price and quantity

Assume market demand increases and that the new demand curve isnow Qd = 50 - P. Further assume the government provides toeach firm, a subsidy of $40 per unit of output produced. Thus the supply curve now becomes Qs = 10 + 2(P+40).

  How many students would it take to break even

Three college students are considering operating a tutoring business in economics. This business would require that they give up their current jobs at the student recreation center, which pays $6,000 per year.

  What will the new equilibrium level of employment be

Suppose that, instead of a minimum wage of $4, the government is providing a subsidy to employers to raise the equilibrium wage to $4. How much will this subsidy have to be and what will the new equilibrium level of employment be

  Sketch their graphs on the same set of axes

In you are given a pair of equations, one representing a supply curve and the other a demand curve, where p is the per unit price for x items.

  What are some other categories of expenses

What is depreciation expense, and what is its purpose?

  What is the firm''s economic profit or loss in equilibrium

In equilibrium, approximately what is the firm's total cost and total revenue?

  What happens to the equilibrium price and quantity

The widget industry in Springfield is competitive, with numerous buyers and sellers. Consumers don't differentiate among the various brands of widgets (no product differentiation). The industry demand curve is given by:Qd = 998 - 5Pw + 4 Y - 6Pg

  Briefly explain the economic logic behind grunfelds model

Briefly explain the economic logic behind Grunfeld's model and the expected signs of the coefficients in (1). Run OLS on the pooled data. Explain the possible problem(s) with the regression from part b.

  What is home''s net position in dollar denominated assets

Home's currency is the peso and trades at 1 peso per dollar. Home has external assets of $200 billion, all of which are denominated in dollars. It has external liabilities of $400 billion, 75% of which are denominated in dollars.

  Determine the capitalized cost of an expenditure

Determine the capitalized cost of an expenditure of $200,000 attime 0, $25,000 in year 2 through 5, and $40,000 per year from year 6 on. Use an interestrate of 12% per year.

  How organisations operate within their environments

Do you attribute this view as contributing to disasters such as the Brazil case or do you attribute the profit motive, a key characteristic of capitalism as having a large impact on how organisations operate within their environments?

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