Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone make just the flowchart for this lab? Introduction Engineers often work with logical operations. Logic is critical to dynamic control. An excellent example
Can someone make just the flowchart for this lab?
Introduction Engineers often work with logical operations. Logic is critical to dynamic control. An excellent example of this exists in transportation engineering. Conditional logic operations are needed to manage the complex track schedules for light-rail transit (LRT) systems. The following lab demonstrates input/output control for an LRT system. The operational logic of an LRT junction is to be implemented for user-defined input with a C++ program. Pre-lab Flowchart Before your lab class, draw a flowchart for your proposed program (see program specification below). See the Lecture 4 notes for information on how to draw a flowchart. Remember, a flowchart does NOT contain code. Rather, it is a visual description of an algorithm and is written in plain English. You may produce your flowchart on a computer and print it, or, you may NEATLY draw your flowchart by hand on a piece of paper. Your flowchart is due at the START of your lab class and is worth 20% of this lab's grade (see the APSC 177 Lab Guide). Program Specification Consider an LRT junction with four input tracks and one output track. The output track can handle only one train at a time. Therefore, the LRT junction will only clear one train for travel from amongst all the trains on all the input tracks. The one train cleared for travel is selected by a ranking of track priorities as follows: The input track with the highest number of trains on it is given the highest priority and will have one train cleared for travel. All other trains on that highest priority track and on the other tracks are stopped. If equal numbers of trains exist on any input tracks, the following order of priority, from highest to lowest, is used: Track 4, Track 3, Track 2, Track 1. If the highest priority track (with the cleared train) has four or more stopped trains, an alert is generated for that track. Write a C++ program to Prompt the user to enter, and then read in, the number of trains on each input track
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started