Purchase Solution

Linux shell script to compute student grades

Not what you're looking for?

Ask Custom Question

Create a shell script to run on Knoppix/Linux, that will compute and display the letter grades for the students based on the average of 4 test scores.

Letter grade is computed from average score using following scale:

90 to 100 : grade "A"
80 to 89 : grade "B"
70 to 79 : grade "C"
65 to 69 : grade "D"
0 to 64 : grade "F"

Purchase this Solution

Solution Summary

The solution is provided as a Bash script, that allows the flexibility to compute grades for different number of students during each invocation without needing to modify the script file.

Solution Preview

Attached (bash) shell script (145279.sh) first prints a welcome message ...

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.