Lab Work - Lab 2 Assessment v4
.docx
keyboard_arrow_up
School
Victoria University *
*We aren’t endorsed by this school
Course
VIT1202
Subject
Mechanical Engineering
Date
Apr 3, 2024
Type
docx
Pages
2
Uploaded by AmbassadorStingrayMaster1152 on coursehero.com
VIT1202 – Operating Systems
Laboratory Work – Lab 2 Assessment
Shell Scripting
Task 1: (1 mark)
Write a shell script named displayTax.sh
to get the pay amount from the user and then display the correct tax rate based on the following pay levels: Pay Level
Tax Rate
100000+
43%
80000+
32%
32000+
22%
<= 32000
0%
Task 2: (1 mark)
Write a bash shell script named numbers.sh
to display the numbers 1 to 10. You must use a “for loop” in your solution.
Task 3: (1 mark)
Create a bash shell script named doubleNumbers.sh
Comment your script with: Author name, Date created and program description
The Script displays the number and doubling of the number. Change permission for the script display so that it can be executed. Make screenshots of the script (the program and the output) and paste it in the answer page:
Number = 1, Number Doubled = 2
Number = 2, Number Doubled = 4
Number = 3, Number Doubled = 6
…
Number=10, Number Doubled = 20
Task 4: (1 mark)
In your user home directory, create the new text file named cities.txt with the content as below:
Athens
Paris
London
Melbourne
Tokyo
Create the new script named city
search.sh
in your user home directory which performs the following tasks:
The script is required to prompt the user to enter a city or q to quit. On input of a city name, the script will search the file for the city, and if it exists in the file, print a message the city is found otherwise print a message city is not found. The script uses a loop construct to provide the user with continuous searches. Once the user enters ‘q’ to quit, the script should end execution. Date: 5/10/2023
Author: Stefan Batsas
File: f11bf65f1eb5db03f7657bfe69566fd92476fd23.docx
VIT1202 – Operating Systems
Example output:
Submit your solution script files in one .zip or .rar file to the Laboratory Work – Lab 2 drop box by the submission deadline.
Date: 5/10/2023
Author: Stefan Batsas
File: f11bf65f1eb5db03f7657bfe69566fd92476fd23.docx
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
Which of the follow statement(s) correctly completes the following sentence fragment?
The setup() function in an Arduino sketch ...
(There may be more than one correct answer)
a) is executed only once after a new sketch is uploaded to the Arduino board, or the Arduino
board is reset (user presses "reset" button).
b) can be replaced by a user-defined function like "my_setup()"
c) must always start by making a serial connection to the host computer with Serial.begin().
d) is executed only once when an Arduino board that has been disconnected from the USB
cable is reconnected to that cable. (Assume that the other end of the USB cable is connected
to a computer)
arrow_forward
Which clause of an SQL query displays the results in a specific sequence?
arrow_forward
Make the MATLAB code work to achieve the following functions:
Assume that you are trying to build an operation interface which allows the mechanical engineering students in UNT
to register for 9 of the MEEN 3000 level classes (which are highlighted in blue as shown in 2019-2020 MEE
curriculum flowchart).
In order to register for a MEEN class, students need to meet all the prerequisites as well as co-requisites. Once he/she
fulfilled all the conditions for a certain class, that class can be registered successfully. Otherwise the system will object
his request and give that student a reminder why he/she could not register for that class.
arrow_forward
write one command for each case: take data name is 'x' and file name is 'database'
Import data form Excel sheet to MATLAB.
1. Export data form MATLAB to Excel sheet.
2.
Save data as text file.
3. Load data form text file.
4. Open and close file.
arrow_forward
Matlab code:
Read images from a folder with the
directory using the MATLAB code.
Be specific and don't write general
answer.
arrow_forward
pls solve this ques on your own without copying from other platforms I'll give you multiple likes
arrow_forward
Hello, statics please help
tabular method
arrow_forward
AutoSave
STATICS - Protected View• Saved to this PC -
O Search (Alt+Q)
Off
ERIKA JOY DAILEG
EJ
File
Home
Insert
Draw
Design
Layout
References
Mailings
Review
View
Help
Acrobat
O Comments
E Share
PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View.
Enable Editing
Situation 9 - A 6-m long ladder weighing 600 N is shown in the Figure. It is required to determine
the horizontal for P that must be exerted at point C to prevent the ladder from sliding. The
coefficient of friction between the ladder and the surface at A and B is 0.20.
25. Determine the reaction at A.
26. Determine the reaction at B.
27. Determine the required force P.
4.5 m
1.5 m
H=0.2
30°
Page 5 of 5
671 words
D. Focus
100%
C
ЕPIC
GAMES
ENG
7:24 pm
w
US
16/02/2022
IZ
arrow_forward
Home
Insert
Draw
Design
Layout
References
Maili
OLYTECH
Calibri (Bo...
11
v A A
Aa v
m Air. Ma
Paste
в I
U v ab x,
x | A
Name:
ID No.:
rm Air. M
Date:
CRN:
Course Code: JACV 506E
Aircraft Mechanical Mainte
Practice.
ces ( CRI
Page
Originated By
Mark awarded -
Instructor/Assessor:
Assignment: Interpret engineering drawings and diagrams
bus
se Mat
hing Pl
Questions: -
1. Write 2 differences between isometric and oblique projections?
ssment
2. Write 5 details found on the drawing title block?
Feedba
3. Write 4 types of sectional views?
4. Name 3 methods how drawings are stored in?
5. Name 3 types of fits?
arrow_forward
Please make this on MATLAB, make the graph shown on the picture, copy the orange and blue circles and the line please make sure that they are on the exact same spots. Make the exact copy of the graph please. Nothing different, just make the same graph and put the orange and blue circles on the exact spots and make sure the lines are the same and make sure the title of the graph is their as well. They rest of the pictures that has numbers are the data that is believed to be the orange and blue dots . Take your time please. I need help with this.
arrow_forward
Pline command is used to draw a closed models consists of lines only. *
true
false
arrow_forward
(a) Summarize the following G and M code
a. G41, G81, 691, G01, GOO
b. M08, M30, M01, M06, M03
(b) Document three phases of writing a CNC program in the form of a block diagram. You don't have to write the actual CNC program.
arrow_forward
nts) Simplify the following block diagram:
S
H
Hint: redraw as:
S
R
G
H.
arrow_forward
Command: PLOTTERMANAGER (from the autocad file m
TO CONFIGURE A LOCAL, NONSYSTEM PLOTTER
10. PROFILES-Controls the use of profiles. A profile is a configuration you define.
367N
367N
R=1.0m
426N
426N
B.
426N
C.
The two identical sphemes having oqual weights of 367N
is placed on top of the three identic al sphere's w/ 426 N
as their reight . Compute the reaction A,B and C
arrow_forward
Which clause of an SQL query is used to restrict the number of rows returned?
arrow_forward
Only use autocad please and show every step to create it and i will definitely like the answer. Thanks, steps are mandatory pls
arrow_forward
Q4: Create a Visual Basic Project to find the value of the following series:
h? h4 h3
cos(h) = h –
2!
3!
4!
Write the code program so that the value of angle (h) is entered into inputbox.
Estimate the value of series (cos(h)) so that the absolute value of any term is
greater or equal to 10-6. Display the required number of terms (N) which it used in
this series in a text box and display the result of series (cos(h)) in another separate
text box.
arrow_forward
Please! Use only graphical method.
arrow_forward
REC
M Gmail
x4 BIT203 - Google x
Gmail: Free. Pria x
Dashboard
BIT203-Study W x
docs.google.com/document/d/1unVPvr_GhUFhrQuNdGICLqFle1ZB51_BICKagvoXoSU/edite
BIT203-Study WorkShop * D e
a Share
File Edit View insert Format Tools Add-ons Help Lastedit was made minutes ngoby Seri ECT
150 -
Nomal tet
Times Ne
12 • BIU
Discuss the tools and technologies for collaboration and social business that are available and
how they provide value to an organization.
I
arrow_forward
INSTRUCTIONS:
Please write clearly and understandable way.
Write all the corresponding GIVEN with their corresponding symbols and units.
List all the MISSING/REQUIRED, and list all the FORMULA that will be used.
• DRAW/ILLUSTRATE THE DIAGRAM/CIRCUIT OR DRAWINGS that is related to the
problem, IF POSSIBLE, which is HIGHLY REQUIRED.
The CONVERSION calculations with their corresponding symbols and units is
required.
The problem's SOLUTION must be solved in a step-by-step, no shortcut, again, with
their corresponding symbols and units.
• BOXED the Final Answer.
PROBLEM:
The compressor of a large gas turbine power plant receives 12kg/s of surrounding air at
95kPa and 20°C. At the compressor outlet, air exits at 1.52MPa, 430°C, Determine the
flow energy requirements in MW.
a) 1.412
b) 2.42
c) 1.01
d) 1.614
arrow_forward
Hello please include a FBD
arrow_forward
PHYS 14 midterms - Word
Carl John Rivas
File
Home
Insert
Design
Layout
References
Mailings
O Tell me what you want to do
& Share
Review
View
Help
X Cut
P Find -
Arial
10
A A
Aa -
AaBbCcDdE AaBbCcDdE AaBbCc AaBbCcD A aB
自 Copy
ab. Replace
Paste
A . aly v A
1 Normal
1 No Spaci. Heading 1
v abe
Heading 2
Title
A Select
x,
V Format Painter
Clipboard
Font
Paragraph
Styles
Editing
4.
A lightweight drone (1.00 kg) is launched at 800 m high and moves upward at a constant velocity (while
ignoring the effects of gravity only on the drone). The balloon, when measured at a horizontal distance from
you, is about 1600 m away from you. At the moment when the drone moves, you shoot a bullet (weight =180
g) with an initial velocity of 1009 m/s at a fixed angle a, where sin a=3/5 and cos a= 4/5. (g = 9.8 m/s?) (10
pts each)
a. How long does it take for the bullet to collide with the drone?
b.
At what height will the bullet hit it?
C.
What is the upward velocity of the drone?
d. Provided that the…
arrow_forward
Acceleration analysis: Hello, I am stuck on the last part (d) and I'm not sure how to start. I have solved all other parts, Thanks.
arrow_forward
Hartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectors
arrow_forward
Hello please solve showing all the steps in the process thanks
arrow_forward
Please solve the Below problem using 'Design data book'. And while solving problem add some table or figure reference number before taking each reference value. If answer is right then I will give you upvote/like.
arrow_forward
For the air compressor shown in Figure below, the air enters from a large area and
exit from small one, explain why?
Instructions for answering this question: The answer to this questian is required as handwritten where you are
aiso required to add a Handwritten integrity Statement. Pieose follow the below steps:
1 Write on a blank poper your AUM student ID, full name, course code, section and date
2 Write the following integrity statement and sign:
"7 offirm that I have neither given nor received any help on this assessment and that personally compieted it
on my own."
3. Write your onswer to the obove question as required
4. Put your Original Civil ID card or AUM ID card on the poper
5 Toke o picture or scan, and uplood
Important note: if handwritten document is submitted without the integrity stotement including ID (Civil ID or
AUM ID), then the related handwritten question(s) will not be groded.
arrow_forward
7
Create your own 3 unique problems on the First Law of Thermodynamics/Forms of Energy and Equations of State with detailed Solutions. Include diagrams as much as possible
arrow_forward
Important instruction: This question uses the last three-digit value (L3D) of individual student matrix number. For example, if the matrix number is CD180264 then the L3D value is 264 (since the last three digits is 264). Some data require multiplication of the L3D value, for examAdditional instruction: These questions use the last three-digit value (L3D) of individual student matrix number. Example, if the matrix number is CD180264 then the L3D value is 264 (since the last three digits is 264). Some data require multiplication of the L3D value, for example 10(L3D) means 10 x L3D.ple 10(L3D) means 10 x L3D.
subject name is
arrow_forward
David is working on her farming business and faces the challenge of watering her plants daily,which is a tedious and time-consuming task, especially under the scorching sun. The path shefollows for watering the plants is illustrated in figure 1.David's son has taken on the task of designing a prototype to automate the watering process forher. Figure 2 depicts the design, featuring a set of rods. The curved path represents David'stypical watering route, and the straight rod AB AB is confined to move along the path due to the pinsat its ends. Water sprinklers will be positioned at points A and B to efficiently water the plants.At the instant shown in figure 2, point A has the motion shown while its at the edge of the path.Determine the velocity and acceleration of point B at this instant.
arrow_forward
Using either FluidSIM 4 and design the program for the following scenarios:
(You may use either block diagram, ladder diagram or statement list. State method you will be used)
Scenario A
Turn on a lamp/buzzer when an (ON) button is pressed. The lamp/buzzer must stay on until an (OFF) button is pressed.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- Which of the follow statement(s) correctly completes the following sentence fragment? The setup() function in an Arduino sketch ... (There may be more than one correct answer) a) is executed only once after a new sketch is uploaded to the Arduino board, or the Arduino board is reset (user presses "reset" button). b) can be replaced by a user-defined function like "my_setup()" c) must always start by making a serial connection to the host computer with Serial.begin(). d) is executed only once when an Arduino board that has been disconnected from the USB cable is reconnected to that cable. (Assume that the other end of the USB cable is connected to a computer)arrow_forwardWhich clause of an SQL query displays the results in a specific sequence?arrow_forwardMake the MATLAB code work to achieve the following functions: Assume that you are trying to build an operation interface which allows the mechanical engineering students in UNT to register for 9 of the MEEN 3000 level classes (which are highlighted in blue as shown in 2019-2020 MEE curriculum flowchart). In order to register for a MEEN class, students need to meet all the prerequisites as well as co-requisites. Once he/she fulfilled all the conditions for a certain class, that class can be registered successfully. Otherwise the system will object his request and give that student a reminder why he/she could not register for that class.arrow_forward
- write one command for each case: take data name is 'x' and file name is 'database' Import data form Excel sheet to MATLAB. 1. Export data form MATLAB to Excel sheet. 2. Save data as text file. 3. Load data form text file. 4. Open and close file.arrow_forwardMatlab code: Read images from a folder with the directory using the MATLAB code. Be specific and don't write general answer.arrow_forwardpls solve this ques on your own without copying from other platforms I'll give you multiple likesarrow_forward
- Hello, statics please help tabular methodarrow_forwardAutoSave STATICS - Protected View• Saved to this PC - O Search (Alt+Q) Off ERIKA JOY DAILEG EJ File Home Insert Draw Design Layout References Mailings Review View Help Acrobat O Comments E Share PROTECTED VIEW Be careful-files from the Internet can contain viruses. Unless you need to edit, it's safer to stay in Protected View. Enable Editing Situation 9 - A 6-m long ladder weighing 600 N is shown in the Figure. It is required to determine the horizontal for P that must be exerted at point C to prevent the ladder from sliding. The coefficient of friction between the ladder and the surface at A and B is 0.20. 25. Determine the reaction at A. 26. Determine the reaction at B. 27. Determine the required force P. 4.5 m 1.5 m H=0.2 30° Page 5 of 5 671 words D. Focus 100% C ЕPIC GAMES ENG 7:24 pm w US 16/02/2022 IZarrow_forwardHome Insert Draw Design Layout References Maili OLYTECH Calibri (Bo... 11 v A A Aa v m Air. Ma Paste в I U v ab x, x | A Name: ID No.: rm Air. M Date: CRN: Course Code: JACV 506E Aircraft Mechanical Mainte Practice. ces ( CRI Page Originated By Mark awarded - Instructor/Assessor: Assignment: Interpret engineering drawings and diagrams bus se Mat hing Pl Questions: - 1. Write 2 differences between isometric and oblique projections? ssment 2. Write 5 details found on the drawing title block? Feedba 3. Write 4 types of sectional views? 4. Name 3 methods how drawings are stored in? 5. Name 3 types of fits?arrow_forward
- Please make this on MATLAB, make the graph shown on the picture, copy the orange and blue circles and the line please make sure that they are on the exact same spots. Make the exact copy of the graph please. Nothing different, just make the same graph and put the orange and blue circles on the exact spots and make sure the lines are the same and make sure the title of the graph is their as well. They rest of the pictures that has numbers are the data that is believed to be the orange and blue dots . Take your time please. I need help with this.arrow_forwardPline command is used to draw a closed models consists of lines only. * true falsearrow_forward(a) Summarize the following G and M code a. G41, G81, 691, G01, GOO b. M08, M30, M01, M06, M03 (b) Document three phases of writing a CNC program in the form of a block diagram. You don't have to write the actual CNC program.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY