Display the appropriate letter grade for the number grade

Assignment Help C/C++ Programming
Reference no: EM13945625

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

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.

Reference no: EM13945625

Questions Cloud

Good or bad move for the company : Research a company that has been in the news for a significant business decision within the last eighteen months. Summarize the decision that was made, and state your opinion on whether it was a good or bad move for the company.
The financial detective : 2 papers due on 2 different case studies.  The first case study is called: The financial Detective, 2005.  The Second one is called: The Body Shop international PLC 2001: An introduction to Financial Modeling.  There are three things that the paper m..
Investigator or police officer lies during testimony court : What is/are a person's Constitutional Right(s) in any criminal case investigation? What if a person's Constitutional Rights are violated? How could have law enforcement avoid violating a person's rights? If an investigator or police officer lies d..
Systems of simultaneous equations using excel : Solve each of the following systems of simultaneous equations using Excel
Display the appropriate letter grade for the number grade : Execute the script and then input 100, 90, and 100 when prompted for each grade.
Find the maximum height and range : Problem 1: ForΔdy = 0 and for any given vo find θ so that the range (Δdx) is maximum. Problem 2: Find the maximum height (h) and range for vo = 10 m/s, θ = 30°, and Δdy = -10 m. What is the flight time? Problem 3: Find the maximum height and range fo..
Understanding of the unit materials : Assignments are designed for you to show your understanding of the unit materials. Make references to lesson materials, researched material, and Seminars as needed, using APA format.
What is the probability that the customer can drive : A particular customer lives 25 minutes from Collina's Italian Caf. If the customer places a telephone order at 6:00 P.M., what is the probability that the customer can drive to the caf, pick up the order, and return home by 7:00 P.M.?
The impact of migration on rates of tb infection : Significance The purpose of this research study is to investigate the correlation between the high incidence and prevalence trends in tuberculosis TB infections in Monrovia and rural-urban migration drift in Liberia.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that declares an array of 10 integers

Write a program that declares an array of 10 integers. Write a loop that accepts 10 values from the keyboard, and write another loop that displays the 10 values. Do not use any subscripts within the two loops; use pointers only.

  Write a set of nested loops that display 10 rows

Write a set of nested loops that display 10 rows of # characters. There should be 15 # characters in each row.

  Prints out a multiplication table up to a specification

Create a program using C++ that prints out a multiplcation table up to a specfic limit. The code should prompt the user for the limit and then print out the table.

  Use object oriented design to create a program to shuffle

Use object oriented design to create a program to shuffle and deal a deck of cards. Deal two, five card hands.

  The project is to design and write a c11fltk game program

the project is to design and write a c11fltk game program with a graphical user interface. the game is based on

  Create a loops that reads from memory an array

Create a loops that reads from memory an array containing an arbitrary number of characters - The program should make a second character array which is identical to the first, except that the case of every alphabetical letter has been reversed

  Write a program to perform statistics calculation

The results should add the sums, the lengths and determine which of the two are the largest and the smallest of the new statisticians form the two inputs. ex statistician3 largest is the

  C++ program to calculate the temperature

Randomly generates the daily temperature (in F) of two cities A and B the month of July. The temperatures are integers in the range [60.. 90] and they are stored in two arrays tA and tB.

  Prepare a temperature converter

Have to write a small program that prompts the user to enter a temperature in degrees Fahrenheit and then prints a massage as to whether the alarm will sound at that temperature.

  Write the select query

Assume the table "books" contains books that the company stocks. Assume the table order_lines only contains books that have actually been ordered.

  Write a program that requires the number of bits

Write a program that requires the number of bits for the exponent and significant of a floating point representation, then requires two decimal real numbers and an operation, sum, subtraction or multiplication.

  Program to enter number of values to be processed

Write c++ statements to permit the user to enter n, the number of values to be processed; then assign the anonymous array of n double values, storing its address in doublPtr.

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