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

  Is household better off or worse off with higher interest

Suppose that the household decides to consume 26,000 in period 1 and 32,000 in period 2. Now suppose that the interest rate falls 50 percent, and the household decides not to borrow or lend at all. Is the household better off or worse off with the..

  Determine whether the two inequalities above are consistent

US Output: 100 units Labor: 20 workers Wages: $3 Exports:$90 UK Output: 50 units Labor: 20 workers Wages:$2 Exports: $45 1.) Compare the relative productivity with the wage ratio 2.) Then calculate the ratio of the two exports. 3.) Determine whether ..

  What is the break even price

what is the break even price What is the shut-down price What if cable was currently $70.00 and was lowered to $40.0, how large is the price effect How large would be the quantity effect be What is the profit maximizing qunatity and price for cabl..

  How many robots will the firm emply for the year

The robotics corporation produces cuddly toys using only computer driven robots. The quantity of toys (t) produced per year is given by T = 10r where r is the number of robots used during each year of production If the market price of robotics 200..

  Calculate the economic cost of pursuing the mba

Consider a student who has finished her undergraduate degree and is considering pursuing an MBA as a full-time student. The cost of the 2-year MBA program she is considering is $45,000 for tuition. If she doesn't become a full-time MBA student.

  What is the economic profit or loss of the business

A few years ago, a construction manager earning $70,000 per year working for a regional home builder decided to open his own home building company. He took $100,000 out of one of his investment accounts that had been earning around 6%

  Modify the neoclassical economy by introducing costs

Characterize the steady-state equilibrium and the transitional dynamics. How do the implications of this model differ from those of the baseline neoclassical model?

  What is the amount of profit that jonathan can maximize

Jonathan (a monopolist) maximizes profit by producing a quantity of 800 pillows where marginal cost is $2 and average cost is $4. Consumers are willing to pay as high as $10 per pillow when the quantity supplied is 800 pillows.

  What would be the vehicle operating cost of your company

what would be the vehicle operating cost of your company for each semi-truck in cent per mile?

  How does the system affect total savings in society

Suppose that the government introduces a social security system that will take $10 from each individual in period 1, put it in a bank account, and transfer it back to them with interest in period 2. What is the new lifetime budget constraint? What..

  Which most likely would yield the most predictable evidence

Auditors try to identify predictable relationships when using analytical procedures. Relationships involving transactions from which of the following accounts most likely would yield the most predictable evidence?

  What is the minimum level of the price of x1 compatible

the utility function (x1,x2)= (x1+1)(x2+4). The price of x2 is $1. Lee spends all his income to buy 6 units of x2 and no x1. What is the minimum level of the price of x1 compatible with these facts

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