Concept explainers
Suppose a two-lane road converges to one lane to pass through a tunnel. To coordinate the use of the tunnel, the following signal system has been installed:
A car entering either end of the tunnel causes red lights above the tunnel entrances to be turned on. As the car exits he tunnel, the lights are turned off. If an approaching car finds a red light on, it waits until the light is turned off before entering the tunnel.
What is the flaw in this system?
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Computer Science: An Overview (13th Edition) (What's New in Computer Science)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Objects (6th Edition)
Digital Fundamentals (11th Edition)
Starting Out with C++ from Control Structures to Objects (9th Edition)
Starting Out with C++ from Control Structures to Objects (8th Edition)
Concepts of Programming Languages (11th Edition)
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
- Consider a thermostat with only one temperature threshold. In the initial state, if the temperature is less than or equal to 20 degrees Celsius, it turns the heater on and leaves it on for at least 30 seconds. After that, if the temperature is greater than 20 degrees, it turns the heater off and leaves it off for at least 2 minutes. It turns it on again only if the temperature is less than or equal to 20 degrees. Design an FSM that behaves as described, assuming it reacts exactly once every 30 secondsarrow_forwardDescribe a logic function for an alarm system by constructing a truth table, logic circuit and a Boolean expression. The ALARM output is '1' if PANIC input is '1', or if the ENABLE input is '1', the EXITING input is '0' and the house is not SECURE. The house is SECURE if the inputs of WINDOW, GARAGE and DOOR are all 1. (Reduce the circuit if possible, only)arrow_forwardDraw the high level state machine and data path for: an elevator that can move between floors 1 and 20 of a building. The destination of the elevator can be set by pressing the button for a specific floor, the value representing the desired floor is F. Once the value of F is input, if the current level C is greater than F the elevator will descend one floor per clock cycle. If the C is less than F, the elevator will ascend one floor per clock cycle. If C is equal to F, the elevator will not move. If there is no desired floor currently input, the elevator will remain idle until a floor is selected. Assume the elevator initial starts at level 1. The elevator cannot go below floor 1 or above floor 20. For any multibit inputs, outputs, or variables, state how many bits are needed.arrow_forward
- Draw the logic diagram of following below. traffic light is installed at a junction of a railroad and a road. the traffic light is controlled by two switches in the rails placed one mile apart on either side of the junction. a switch is turned on when the train is over it and is turned off otherwise. the traffic light changes from green (logic 0) to red (logic 1) when the beginning of the train is one mile from the junction. the light changes back to green when the end of the train is one mile away from the junction. all trains are less than 2 miles long.arrow_forwardA standard science experiment is to drop a ball and see how high it bounces. Once the “bounciness” of the ball has been determined, the ratio gives a bounciness index. For example, if a ball dropped from a height of 10 feet bounces 6 feet high, the index is 0.6 and the total distance traveled by the ball is 16 feet after one bounce. If the ball were to continue bouncing, the distance after two bounces would be 10 ft + 6 ft + 6 ft + 3.6 ft = 25.6 ft. Note that distance traveled for each successive bounce is the distance to the floor plus 0.6 of that distance as the ball comes back up. Write a program that lets the user enter the initial height of the ball and the number of times the ball is allowed to continue bouncing. Output should be the total distance traveled by the ball. Please name your function "bounce" that has three arguments (initial height, index, number of bounce) and return the total distance traveled by the ball. (float) Skip the part where users can enter the inputs of…arrow_forward. قسم هندسة تقنيات الحاسوب المرحله الثالثهarrow_forward
- Let to be two resistors R1=202,R2=10N are parallel in the network and the total current of the circuit =6A. Which of the following is IR2? * 2 A О 4А ЗА In Kirchhoff's currents law(KCL) let to be three currents 1=2A,12=3A,13=4A are the input of the node in the network and the current 14 is the output of this node. which of the following is the value of current 14? * O 7A O 9 A O 4 Aarrow_forwardA chemical process takes place in a reactor vessel continuously, but it has to be monitored for abnormal behaviour. The system has two sensors S1 and S2 that can independently detect an abnormal temperature. They pass an electrical signal to an electrical OR-gate A, which passes a signal on to both the protection units P1 and P2 if either sensor gives a signal. The protection units and the OR-gate get electrical power from electric power unit E1, while sensors get power from electric power unit E2. Build a (qualitative) fault tree for the top event "Protection system not available" using failure of the indicated components.arrow_forwardExercise 1 The truth table of the functions F1(x,y,z) and F2(x.y.z) are given below: y F1 F1 1 1 1 1 1 1 1 0. 1 1 1 1 1 1 1 1 1. Determine the Boolean functions of F1(x.y,z) and F2(x.y.z). 2. Give the Implementation circuits of F1(x.y,z) and F2(x.y.z). 3. Implement Fi(x.y,z) and F2(x.y,z). Use: https://circuitverse.org/simulatorarrow_forward
- Computer Science write a program that simulates the performance of the PN junction, and with that, you can easily modulate the parameters controlling the performance of the PN junctions.arrow_forwardA thin square metal plate has a uniform temperature of 80°C on two opposite edges, a temperature of 120°C on the third edge, and a temperature of 60°C on the remaining edge. A mathematical procedure to approximate the temperature at six uniformly spaced interior points results in the following equations: 4T₁-T₂-Th - 200 -7₁ +422-73-75 - 80 T₂ | 4T3 T4 = 140 -T3 + 4T4-T5-140 T₂ T₁ 4T5 T6 = 80 I -T₁-T₁ + 4T6 = = 200 What is the value of T1, T2, T3, T4, T5 and T6?arrow_forwardYou need to program the logic for an autonomous road line painting vehicle. The vehicle (flashes yellow hazard lights during operation) is responsi a solid yellow line when the road bend is 45 degrees or more. When the road curvature is straight (or less than 45), a white dashed line must be pa intersection, the painting must stop and resume once past the intersection. When the vehicle reaches the final destination or at any time, should th deplete, the vehicle must stop and the red hazard lights must be turned on. Write down the procedure for a computer to perform this task as well-written pseudo-code. Your pseudo-code must be explicitly stated in low-level could be easily translated into a computer program by a programmer.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education