Checkout
checkout
view
Your Cart Your Cart: item(s)
Subjects -> Computer Science -> Operating Systems -> Posting #159849
Add to Shopping Cart
$2.19 Instant Download
Computer Science, Operating Systems
Year 3

Convert pseudo code that uses a decision structure into a shell script


Also I am trying to append my newly created PS1 Command Prompt to a file how do I do that?

Please also Provide the step by step instructions so that I too can try and do these excercises.

Project 6-4
In this project, you will convert pseudo code that uses a decision structure into a shell script. The script then will accept three grades, calculate an average, and then display a letter grade based upon the average. You will need to use either the (if) statement or the  (case) statement to implement this script.

1. Log in to the Linux system as a user, and then open a Terminal emulation window.
2. Create a shell script named Project6-4 in your $HOME/bin directory.
3. Convert the following pseudo code into code for the script:
Read in three grades from the keyboard
Average the grades

Display the appropriate letter grade for the number grade using this scale:
90 to 100: Display a letter grade of “A”
80 to 89: Display a letter grade of “B”
70 to 79: Display a letter grade of “C”
65 to 69: Display a letter grade of “D”
0 to 64: Display a letter grade of “F”
Insert appropriate comments

4. Save the script, quit the editor, and then make the script executable.
5. Execute the script and then input 100, 90, and 100 when prompted for each grade.
6. Record the output.
7. Execute the script again. This time input 99, 68, and 70 when prompted for each grade.
8. Record the output.
9. Execute the script one last time. Input 80, 96, and 72 when prompted for each grade.
10. Record the output.
11. Close your window, and then log out.

Attachments
Project 6-4.doc  View File

By OTA:  Abdun Mahmood, PhD

OTA Rating:  4.9/5

Your Price:  $2.19  (original value ~$39.90)

What's included:

  • Plain text response
  • Attachment(s):
    • Project6-4.sh
$2.19 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Perform exponentiation in interactive scripts using the read command to accept two variables and then raise one to the power of the other - Hello OTAs, I am using KNOPPIX. Please also provide the step by step instructions so that I too can try and do these excercises. Project 5-5 In this project, you will perform exponentiation in interactive scripts using the read command to accept two va...
Create the keys and relationships between tables for the Huffman Trucking Driver Log - Using Microsoft Access, create the keys and relationships between tables for the Huffman Trucking Driver Log.
Create an ERD - Create a detailed and normalized ERD using the attached log file. Using Microsoft Access, create the preliminary (no keys and no relationships) database tables for log attached log file. An Access MDB should contain the tables. The ERD may be part of the Access MDB.
Mollett.3-7 Script in KNOPPIX 4.0 - I need to create the script below and name it Mollett.3-7 It is also attatched in a word file too. This set of directions in Project 3-7 script produces some kind of expected output by creating this script called Mollett.3-7 Setƒaƒvariableƒnamedƒ"x"ƒtoƒ10 Setƒaƒvariableƒnamedƒ"y"ƒtoƒ100 Displayƒtheƒresultƒofƒdividingƒ"y"ƒbyƒ"x"ƒandƒplaceƒtheƒ resultƒint...
Develop a Design for a Fleet Truck Maintenance Database change requests 2 & 3 - Please reflect the tittle in the database to read something to the effect of: Week 2 Service Change Request SR-ht-003 #2 and #3 Background of Request: Smith Systems Consulting developed entities and attributes for Fleet Truck Maintenance but did not develop the database. In an effort to better document our appli...

Page generated in 0.0162 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy

©2008 SolutionLibrary.com

Search for Solutions About Us Samples