Show a letter grade based upon the average

Assignment Help Computer Engineering
Reference no: EM1334905

In this script, convert pseudocode 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 pseudocode 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.

 

Reference no: EM1334905

Questions Cloud

Explain what are types of intellectual property : Explain What are types of intellectual property and What real and personal property would you recommend that your client lease
Leader anticipation of human behavioral response : Human behavior is a complex phenomenon, and understanding it well is probably beyond the grasp of most of us who are not practicing psychologists; understanding how and why people choose particular behaviors is especially difficult.
Define edge in human resources : How do you define edge and how would you rate your ability to make the tough decisions to follow your values?
The limitations of traditional strategic choice models : Explain and discuss the limitations of traditional strategic choice models.
Show a letter grade based upon the average : In this script, convert pseudocode 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 statem..
Compensation strategy conveys to employees : Check the alternative by which the HR functions can be administered. Describe the message that a compensation strategy conveys to employees.
Explain international marketing of ipod : Explain International Marketing of Ipod and Identify the product and the international country where it is sold
Explain how does your organization go about estimating : Explain how does your organization go about estimating its sales. How does it estimate the demand for new products so that it can prepare a production run.
What led to the legal infraction for the company : What led to the legal infraction for the company - Find a case of a business that has violated some of the legal considerations. Then, answer the following questions.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Determining the compliment of a number

Express 64 as the 2’s compliment number. Specify the number of bits you require? With this number of bits, state the largest positive number you may represent?

  Create and extened class named suite

make a class named HotelRoom that includes an interger field for the room number and a double field for the nightly rental rate. Include get methods for these fields and constructor that requires an interger argument representing the room number.

  Describe disparity between vulnerability, threat and control

Describe disparity between vulnerability, threat and control

  Designing a web page

In designing a web page, depending upon the information you are trying to convey, use of the tables may add the great deal of the organization on help clear any possible confusion on what you are trying to communicate.

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

  Assuring the snmp security

Create an argument for modifying to the other version or staying with v1 and forming the essential modifications to assure the SNMP security the v1 requires.

  Determining the i/o access speed

Determine the I/O access speed utilizing the CPU 3 and each of the hour disk drives as they evaluate the following track requests: 0, 31, 20, 15, 20, 31, 15.

  Write down c function that includes the following sequences

Run program and explain the results. Rewrite same code in C++ and Java.

  Explain protocol and architecture

define Connection Oriented Protocol and Connectionless Protocol.

  How can state the units for each metric

express the units for each metric, such as dollars per hour, rejects per day, schedule slippage per task in days, budgeted versus actual cost expenditure per task,etc. One character in a group I once had expressed the progress of laying a cable in..

  Challenges for enterprise system integration

State and discuss the challenges legacy systems pose for the enterprise system integration. Give specific examples in order to support your response.

  Program that creates basic user interface code

Program that creates basic user interface code

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd