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

  How to illustrate decision table to represent treatment

How to illustrate decision table to represent treatment? Create a structured English version based on the following dialogue obtained by the Systems Analyst from the client interview below.

  Make the get/set methods for each of your variables

select a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software).

  The dice in a craps round is called the "come out roll"

In the game of Craps, a "Pass Line" bet proceeds as follows. Using two six-sided dice, the first roll of the dice in a craps round is called the "Come Out Roll". The bet immediately wins as the come out roll is 7 or 11, and loses when the come out..

  Pros and cons of application software in business

Operating system software for your personal PC: define What are the differences among Windows OSs

  Explain data link layer characteristics

Why is the Data Link layer considered to be the most unique layer amongst all the layers of the OSI Model.

  An approximation to a zero of a continuous function

provide a pseudocode for the bisection method algorithm Bise(f(x),a,b,error) for finding an approximation to a zero of a continuous function f(x) in the interval [a, b] accurate to within error.

  Implement needham-schroeder protocol using python

Implement Needham-Schroeder protocol using python

  What steps and tools are available for you to protect

What steps and tools are available for you to protect your family (especially your children) from these internet dangers?

  Drawing the uml state diagram

In the chess game white and black make alternate moves. White takes first move. Both Black and White may finish the game: by winning, by giving up, by draw.

  Define which delimiters are used on both end

various contemporary languages allow two kinds of comments, one in which delimiters are used on both ends(for multiple-line comments), and one in which delimiter marks only the beginning of the comment ( for one-line comments), Discuss the advanta..

  What types of relationships that exist between tables

What are the differences between relational database models and object-oriented database models? express at least 2 differences at length.

  How to generate a hub-and-spoke network

How to generate a hub-and-spoke network

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