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

  Description of the situation, intended users

Write down a paper demonstrating the application of your chosen DSS.

  Which loop arrangement be best for accessing an array

Which loop arrangement be best for accessing an array.

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  Explaining the role of cio

Assess the role of CIO within any health care organization and explain the key characteristics a CIO would require to possess to be effective in that position.

  Define the types of the expressions

Using no other objects besides those already declared, how may you alter ptrPtr so that is points to a pointer to b without directly touching ptr?

  How the estimated budget is as close to reality as possible

How important is it to be accurate with respect to the estimated budget and actual budget of a project.

  Give appropriate accessor methods to set and get the data

create an address book application to keep track of the names, addresses, phone numbers, and birthdays of family, friends, and colleagues. You may implement your own linked list library, but it is recommended that you make use of the linked list A..

  Assume that we compare the insertion sort method

assume that we compare the insertion sort method. while classification with merge requires 64n*lg(n) steps. For which values of n, does insertion sort method outclass the merge sort process.

  Write down a driver program to test your library

create a library containing functions to compute the surface area and volume of a sphere. For a sphere of radius r, these values can be calculated using.

  Implementing the wilkerson-irwin algorithm

Write down a program in order to implement the Wilkerson-Irwin algorithm to minimize mean tardiness.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Computing the total tax

In following example, second line of the table signifies that tax due on a salary of $2,000.00 is $225.00 plus 16% of excess salary over $1,500.00 (that is, 16% of $500.00). Compute the total tax.

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