Counters on LogixPro Simulator
.docx
keyboard_arrow_up
School
Texas A&M University *
*We aren’t endorsed by this school
Course
400
Subject
Computer Science
Date
Apr 3, 2024
Type
docx
Pages
10
Uploaded by DeaconFreedomMouse25
Counters on LogixPro Simulator
In this LAB, please, make sure you do three things:
a. If your program does not work and you have to modify it, make sure you reset the simulation, counters/timers, data tables before rerunning a program.
b. Please make sure you document your program by commenting in few words the function of each rung (example: Start/Stop conveyer motor for the first rung of Activity 1). To do so, select rung by clicking on its number, right click=>edit.
c. Drug and drop addresses from the simulation graph to your program. The only exception is typing inside a box (example: C5:0.ACC needs to be typed).
Activity 1.
Paste a screen shot of your working program here:
Activity 2. Part a.
Part b.
Add a second entrance (I:1/3) and a second exit (I:1/4) to the garage.
Paste a screen shot for part a & part b here:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
SPIM simulator (QtSpim).
Simulation: Write a MIPS program that computes the expression;
y = A * B + C * D Where A, B, C, and D are integers
arrow_forward
ANSWER IN PYTHON PLEASE.
arrow_forward
Practical Reserach: Explain what the statement "variables are independent of each other" implies.
arrow_forward
You have just purchased a new personal computer system. Before putting the system
components together, you read the instruction booklet that came with the system. The
booklet contains a list of the components that you should have received. The booklet
advises you to verify that you received all of the components by matching those that you
received with those on the list. If a component was received, you should cross its name
off the list; otherwise, you should draw a circle around the component name in the list.
Using only the instructions listed in Figure 1-10, create an algorithm that shows the
steps you should take to verify that you received the correct components. Be sure to
indent the instructions appropriately.
6.
circle the component name on the list
cross the component name off the list
end if
end repeat
if the component was received, do this:
otherwise, do this:
read the component name from the list
repeat for each component name on the list:
search for the component
arrow_forward
(python)
Write the program based on the details in the picture and the additional details below.
Since this is a simulation, we will not prompt the user for inputs. Any inputs will result in a loss of points. To determine the radius of the circle, add together your Birth Month and Day. So my radius would be 41.
NOTE: this radius will be used for all of the simulation trials.
Once you have the radius, implement the Monte Carlo simulation with 500,000 random (x,y) points (remember to make them floats) and display the results of 10 trials. Each trial does another simulation of 500,000 random (x,y).
Display the following for each trial:
Trial number
Number of hits inside the circle from the simulation
The percentage of hits (Only want 2 decimal places)
At the end you must display the average percentage for all 10 trials.
Bonus Option:
Create an 11th trial and create a graphic representation of the simulation.
Draw a square and corresponding circle (you do not need the grid)
Draw each…
arrow_forward
Please type thank you!
Tasks: 1. Write a python program that implements the estimation of Pi through a Monte Calo simulation.
Describe how Pi is being estimated in this simulation.
How many iterations do you need to run? In your own words, make a case for when it is a good approximation of Pi.
d. Suggest a method that would accelerate the approximation of Pi. You may either suggest a method that would accelerate the approximation of Pi than the method you described in b, or you may describe two methods and explain which one can accelerate the approximation of Pi than the other one.
arrow_forward
Context
You work with the team in charge of the automatic driving program at Tesla. You are in charge of programming the necessary braking to be applied in the event that the car's on-board computer detects a stationary obstacle that appears directly in front of the car.
Constraints
In order not to rush the passengers of the car too much, the program would like to brake as gently as possible.
To keep a certain safety margin, the program must stop 1 meter before reaching the obstacle.
Modelization
Start by modeling the acceleration required to bring the car to a complete stop (while respecting the constraints) as a function of the speed at which the car was initially traveling and the distance at which the obstacle appeared.
Then test your model by calculating the modulus of the acceleration needed for the following values
The car was traveling at 45 km/h;
The obstacle appeared 23 meters in front of the car;
arrow_forward
Question 4
The horizontal cylindrical tank shown is used to store fuel. The tank has a diameter of 6 m and is 8 m long. The amount of fuel in the tank can be estimated by looking at the level of the fuel through a narrow vertical glass window at the front of the tank. A scale that is marked next to the window shows the level of the fuel corresponding to 40, 60, 80, 120, and 160 thousand litters. Write a MATLAB program (script file) to determine the vertical position (measured from the ground) of the lines of the lines of the scale
arrow_forward
Explain "motion input." Give instances of motion input's various applications in medical, military, sports, and entertainment.
arrow_forward
Circuit Assignment
(Digital Logic)
You have been hired by a home security company to design and
implement a home alarm system. The
logic of the system is as follows:
Once the alarm system has been armed, it is to sound if the front door is
opened, or (the back door is
opened and window is opened).
Design the necessary circuit using use any method to implement the
situation above.
Your circuit should have 4 inputs (A-alarm, F=front door, B-back door,
W= window).
A=1 means the system is Armed.
F-1 means Front door is open.
B-1 means Back door is open.
W=1 means Window is open.
There should be one output S. When S= 1 the alarm should sound,
otherwise the alarm is silence.
Submit these 3 items:
1- Create the formula, S = ... in terms of the variables
2 - Create the truth table,
3- Draw the Circuit. (You can use the zyBooks tool to build the circuit
and screen shot the circuit image.)
arrow_forward
Please type thank you!
Tasks: 1. Write a python program that implements the estimation of Pi through a Monte Calo simulation.
1) How many iterations do you need to run? make a case for when it is a good approximation of Pi.
2) Suggest a method that would accelerate the approximation of Pi. You may either suggest a method that would accelerate the approximation of Pi than the method you described in b, or you may describe two methods and explain which one can accelerate the approximation of Pi than the other one.
arrow_forward
CODE USING C++
When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue.
Once this is resolved, it's almost always easier to move forward.
As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me?
Instructions:
In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this.
You are also provided with the 2D array in the main() function.
Your only task is to call the findElephant() function and pass the 2D array, and print the return value.
Output
Elephant:·10
arrow_forward
please answer right (python)
arrow_forward
Overview
In this assignment, you will gain more practice with designing a program. Specifically, you will create pseudocode for a higher/lower game. This will give you practice designing a more complex program and allow you to see more of the benefits that designing before coding can offer. The higher/lower game will combine different programming constructs that you have been learning about, such as input and output, decision branching, and a loop.
Higher/Lower Game DescriptionYour friend Maria has come to you and said that she has been playing the higher/lower game with her three-year-old daughter Bella. Maria tells Bella that she is thinking of a number between 1 and 10, and then Bella tries to guess the number. When Bella guesses a number, Maria tells her whether the number she is thinking of is higher or lower or if Bella guessed it. The game continues until Bella guesses the right number. As much as Maria likes playing the game with Bella, Bella is very excited to play the game…
arrow_forward
Matlab
arrow_forward
PROGRAMMING LANGUAGE: C++ALSO PASTE SCREENSHOTS OF OUTPUTS
You are required to create a simulation of an elevator system. There are 7 floors in a building. A user may enter the elevator and press the button of the destined floor. The simulation should display appropriate messages while moving towards the destined floor.
arrow_forward
Scenario Instructions
You are a Mathematics major who has
agreed to teach an elementary school math
class where the students are studying
geometry. They are just starting to learn
about sine, cosine, and tangent.
You've decided that you want to show the
students what these functions look like when
they have been graphed.
Write a Python program to display three
separate graphs for sin, cos, and tan. Add
the ability to show all three graphs on a
single graph with one row and three
columns.
arrow_forward
Overview
In this assignment, you will gain more practice with designing a program. Specifically, you will create pseudocode for a higher/lower game. This will
give you practice designing a more complex program and allow you to see more of the benefits that designing before coding can offer. The
higher/lower game will combine different programming constructs that you have been learning about, such as input and output, decision
branching, and a loop.
Higher/Lower Game Description
Your friend Maria has come to you and said that she has been playing the higher/lower game with her three-year-old daughter Bella. María tells
Bella that she is thinking of a number between 1 and 10, and then Bella tries to guess the number. When Bella guesses a number, Maria tells her
whether the number she is thinking of is higher or lower or if Bella guessed it. The game continues until Bella guesses the right number. As much as
Maria likes playing the game with Bella, Bella is very excited to play the game…
arrow_forward
Programming language is C. I would really be appriciate if you could help me with this. Please provide me with your cashapp, so I can tip you for your work. THANK YOU:)
In this project, we shall simulate the operations of an ATM machine.
Suppose you’re in charge of this simulation and here is a scenario of what is required to do:
The customer will be assigned a random or fixed number for his/her balance.
First, the customer is prompted to enter his personal identification number pin (for this case study, we test only if this pin is formed by 4 digits! otherwise, a message like “Invalid PIN, try again . . .” will be displayed) and the user is re-prompted to enter the pin. The customer is given three chances to enter his pin. If he/she fails during the three trials you display a message like “Sorry you can’t continue, contact your bank for assistance!”
If the pin is correct (formed by 4 digits), then the system will ask the customer for the receipt ( 1 for YES and 2 for NO ) and a menu…
arrow_forward
Computer science
arrow_forward
MATLAB Please don't use AI provide screen shot for output and code Quickly
arrow_forward
Do it in Java
arrow_forward
5. The Symbolic Math Toolbox is a collection of MATLAB functions that are used for
execution of -
6. The symbolic expression is a symbolic object. The form for creating a symbolic
expression is: -
7. The 'solve' command can be used for solving a system of equations. If the number of
equations and the number of variables are the same, the solution is -
8. The 'solve' command can be used for solving a system of equations. If the number of
variables is greater than the number of equations, the solution is -
desired variables in terms of the other variables.
9. The 'simplify' command uses mathematical operations and functional and trigonometric
identities to generate a simpler form of the expression. The format of the 'simplify
command is: -
---- operations.
- for the
arrow_forward
Java -
What does the term “boundary testing” mean? If your program was doing calculations and took in values from 1 to 100, what values would you use to test with?
arrow_forward
int LED
void setup ()
{
pinMode (LED,OUTPUT) ;
void loop 0
digitalWrite (LED,HIGH);
delay (1000) ;
digitalWrite (LED, LOW) ;
delay (1000);
For the following circuit board, the following code was
applied to make the LED blink every one second.
1- If the LED was connected to pin 5 and the delay was 3 seconds.
Modify the code to accommodate these changes.
2- How does the LED blinking changes between the two codes?
DIGITAL (PWM
0O UNO
ARDUINO
ANALOG
222222
arrow_forward
CODE USING C++
4. Find the Elephant
by CodeChum Admin
When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue.
Once this is resolved, it's almost always easier to move forward.
As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me?
Instructions:
In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this.
You are also provided with the 2D array in the main() function.
Your only task is to call the findElephant() function and pass the 2D array, and print the return value.
Output
Elephant:·10
EDIT THIS CODE:
#include <iostream>#include <climits>using namespace std;
int findElephant(int[][100]);
int main(void) { int…
arrow_forward
Instructions
Assuming you are registered in a class with several activities/categories (quizzes, labs, homework, attendance, etc.), you would like to keep track of your grades throughout the quarter. For each category, you need to add your grade, e.g., for the labs you got 100 in lab 1, 95 in lab 2, etc.
How are we going to store our grades for each category?
Remember that in our main program, we keep the information for various grade categories. This information is stored as a list of lists, which can, for example, look like this:
[["Lab", 35], ["Quiz", 35]]
Each list that is contained in the main “database” (a list of lists) contains information about a category and its corresponding grade percentage.
If for the labs, you got 100 in lab 1, 95 in lab 2, we can store this information for the “Lab” category as an additional list:
["Lab", 35, [100, 95]]
This means that our database would then look like this (note the nesting of the grades):
[["Lab", 35, [100, 95]], ["Quiz", 35]]
In order…
arrow_forward
ANSWER IN PYTHON. THIS IS A CODING PROBLEM.
arrow_forward
python programming:
Topic: Functional model
Write a program one statement long (it can span multiple lines) that displays the curvature of a sinusoid.
arrow_forward
However, even after completing the debugging process, the issue still persists. At this point, what exactly can you do?
arrow_forward
Please help me find codes for these problems in MATLAB. Use command window only.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Related Questions
- You have just purchased a new personal computer system. Before putting the system components together, you read the instruction booklet that came with the system. The booklet contains a list of the components that you should have received. The booklet advises you to verify that you received all of the components by matching those that you received with those on the list. If a component was received, you should cross its name off the list; otherwise, you should draw a circle around the component name in the list. Using only the instructions listed in Figure 1-10, create an algorithm that shows the steps you should take to verify that you received the correct components. Be sure to indent the instructions appropriately. 6. circle the component name on the list cross the component name off the list end if end repeat if the component was received, do this: otherwise, do this: read the component name from the list repeat for each component name on the list: search for the componentarrow_forward(python) Write the program based on the details in the picture and the additional details below. Since this is a simulation, we will not prompt the user for inputs. Any inputs will result in a loss of points. To determine the radius of the circle, add together your Birth Month and Day. So my radius would be 41. NOTE: this radius will be used for all of the simulation trials. Once you have the radius, implement the Monte Carlo simulation with 500,000 random (x,y) points (remember to make them floats) and display the results of 10 trials. Each trial does another simulation of 500,000 random (x,y). Display the following for each trial: Trial number Number of hits inside the circle from the simulation The percentage of hits (Only want 2 decimal places) At the end you must display the average percentage for all 10 trials. Bonus Option: Create an 11th trial and create a graphic representation of the simulation. Draw a square and corresponding circle (you do not need the grid) Draw each…arrow_forwardPlease type thank you! Tasks: 1. Write a python program that implements the estimation of Pi through a Monte Calo simulation. Describe how Pi is being estimated in this simulation. How many iterations do you need to run? In your own words, make a case for when it is a good approximation of Pi. d. Suggest a method that would accelerate the approximation of Pi. You may either suggest a method that would accelerate the approximation of Pi than the method you described in b, or you may describe two methods and explain which one can accelerate the approximation of Pi than the other one.arrow_forward
- Context You work with the team in charge of the automatic driving program at Tesla. You are in charge of programming the necessary braking to be applied in the event that the car's on-board computer detects a stationary obstacle that appears directly in front of the car. Constraints In order not to rush the passengers of the car too much, the program would like to brake as gently as possible. To keep a certain safety margin, the program must stop 1 meter before reaching the obstacle. Modelization Start by modeling the acceleration required to bring the car to a complete stop (while respecting the constraints) as a function of the speed at which the car was initially traveling and the distance at which the obstacle appeared. Then test your model by calculating the modulus of the acceleration needed for the following values The car was traveling at 45 km/h; The obstacle appeared 23 meters in front of the car;arrow_forwardQuestion 4 The horizontal cylindrical tank shown is used to store fuel. The tank has a diameter of 6 m and is 8 m long. The amount of fuel in the tank can be estimated by looking at the level of the fuel through a narrow vertical glass window at the front of the tank. A scale that is marked next to the window shows the level of the fuel corresponding to 40, 60, 80, 120, and 160 thousand litters. Write a MATLAB program (script file) to determine the vertical position (measured from the ground) of the lines of the lines of the scalearrow_forwardExplain "motion input." Give instances of motion input's various applications in medical, military, sports, and entertainment.arrow_forward
- Circuit Assignment (Digital Logic) You have been hired by a home security company to design and implement a home alarm system. The logic of the system is as follows: Once the alarm system has been armed, it is to sound if the front door is opened, or (the back door is opened and window is opened). Design the necessary circuit using use any method to implement the situation above. Your circuit should have 4 inputs (A-alarm, F=front door, B-back door, W= window). A=1 means the system is Armed. F-1 means Front door is open. B-1 means Back door is open. W=1 means Window is open. There should be one output S. When S= 1 the alarm should sound, otherwise the alarm is silence. Submit these 3 items: 1- Create the formula, S = ... in terms of the variables 2 - Create the truth table, 3- Draw the Circuit. (You can use the zyBooks tool to build the circuit and screen shot the circuit image.)arrow_forwardPlease type thank you! Tasks: 1. Write a python program that implements the estimation of Pi through a Monte Calo simulation. 1) How many iterations do you need to run? make a case for when it is a good approximation of Pi. 2) Suggest a method that would accelerate the approximation of Pi. You may either suggest a method that would accelerate the approximation of Pi than the method you described in b, or you may describe two methods and explain which one can accelerate the approximation of Pi than the other one.arrow_forwardCODE USING C++ When dealing with problems, it is always best to find the "elephant" in the room. The elephant is basically the biggest issue. Once this is resolved, it's almost always easier to move forward. As a therapist, I know how to find the elephant in the room. However, I'm feeling sick today and the next client is coming. Could you please find the elephant for me? Instructions: In the code editor, you are provided with a function, findElephant() that accepts a 2D array and returns the largest element in the array. This function has already been implemented so do not edit this. You are also provided with the 2D array in the main() function. Your only task is to call the findElephant() function and pass the 2D array, and print the return value. Output Elephant:·10arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr