Purchase Solution

Bash scripts for payslip and grade display

Not what you're looking for?

Ask Custom Question

I want to answer the following questions
Q1)Write a shell script to to print the payslip of an Employee.

Q2)Write a shell script to display grade of student according to his marks.

Purchase this Solution

Solution Summary

Solution provides commented Bash shell scripts, and sample output produced by running these scripts.
Since specific details are not provided in question, this solution computes gross salary by adding 20% dearness allowance and 10% house rent allowance to basic salary, and converts marks to grade using these ranges - A : [80,100], B : [60,80), C : [40,60), D : [30,40), F : [0,30).

Solution Preview

Since no information is provided, this solution makes following assumptions for the scripts.

1. In payslip generation, gross salary is computed adding 20% dearness allowance and 10% house rent allowance to basic salary.

2. Marks are converted to grade using following scheme:
A : [80,100], B : [60,80), C : [40,60), D : [30,40), F : [0,30)

Here [] indicates closed interval, and [) indicates semi-closed interval open on the right side. So [a,b] indicates the range a <= x <= b, and [a,b) indicates the range a <= x < b.

Attached 614488.zip contains two files: ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.

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.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.