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

  Security policy document project

Analyze security requirements and develop a security policy

  Risk assessment of ict system

Risk Assessment of ICT System and Developing Computer Incident Response System on WAMP platform

  How will you explain how arrays are used

If you were explaining an array ti a friend who is learning Java. how will you do so?

  What multimedia elements to use

Some multimedia can be difficult to view on a mobile device due to screen size or bandwidth limitations. Find out two articles that discuss considerations and new developments that will enable multimedia on a site to be viewed effectively on a mob..

  Classify the use and location of firewalls

Classify the use and location of Firewalls Categorize the use and location of IPS or IDS where necessary.

  Discuss and describe the potential security threats

Discuss and describe the potential security threats

  Make an html page with a form for client

make a form using JavaScript that collects client body statistics and customer contact information for record keeping and marketing purposes.

  Explain the risks and benefits of virtualization

How would you recommend that your IT department prepare for disaster.

  How to name the associative entities

How to name the associative entities

  How to identify areas for improvement

plan a form that you would disseminate to your end user community that will aid in the assessment of a current system to identify areas for improvement.

  Key elements of an entry strategy

Write down the key elements of an entry strategy, especially for the high-tech environment? The answer requires to be of at least 300 words. Also include any references

  The main reasons for it project failures

Why do you believe some projects do not meet their objective or scope.

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