Question: 1. How to read the arguments Hi, my name is (your name)passed to a shell script from the command line. Also, the script has to

1. How to read the arguments Hi, my name is (your name)passed to a shell script from the command line. Also, the script has to print the script name and the total number of arguments. 2. Write a shell script APP for a college that takes the input of student name, student ID, Five different courses. Finally, it has to print the average score and the grade of the student based on the following conditions: If the average>90: A grade If the average between 80 90: B grade If the average is between 70 80: C grade If the average is between 60 70: D grade If the average is less than 60: Fail 3. Write an APP for an A/V company called Blue Bells. It has to display the list of Music albums or the Artist name. Based on the choice of selection, the main track name (song name) has to be displayed on the screen. Design the menu to store this information. (For example, in my APP if I enter Tobymac (Artist name) it would display Lord, I need you as its a single song NOT an Album). 4. Write the shell script to input the electricity unit charge and calculate the total electricity bill according to the given condition: For first 50 units CAD 0.75/unit For next 100 units CAD 1.20/unit For next 100 units CAD 1.50/unit For unit above 250 CAD 1.75/unit An additional surcharge of 25% is added to the bill. 5. Write a shell script program to display in words the name of week day. Based upon the input number, the name of the day has to be displayed. (For example: if the input is 1 then it has to display Monday and for input 7 it has to display Sunday). Use any construct and your script has to work based on the menu option. 6. In a grocery store, there is a seasonal discount to customers for the case payments. The discount structure is: a) If purchase is less than $100 then Tax = 2% and discount = 10% b) If purchase is greater than $100 then tax = 5% and discount = 20% Write the program to calculate the total amount to be paid. 7. Write a shell script to develop an APP for the XYZ bank which has the proposal to offer loans to the customers, you are assigned the job to execute the following tasks: a) Accept customer_name, city, loan_amount b) If loan_amount exceeds $5000 then the Interest = 10 % and tax = 3%. If the loan_amount is in between $5000 to $4000 then the Interest = 8% and tax = 2%. If the loan_amount is in between $4000 to $3000 then the Interest = 7% and tax = 1% c) The interest and tax should be calculated per year d) Find out, how much interest and tax should be paid after three years by the customer. When a person works for someone else or company, (s) he is then said to hold a job and is called Employee. The person or the company he or she works for is called Employer. Money that is paid is called as Salary or Income or Wage. The salary consists of following part: Basic Salary: As the name suggests, this forms the very basis of salary and many other components may be calculated based on this amount. It usually depends on ones grade within the companys salary structure. It is a fixed part of ones compensation structure. (Allowance: It is the amount received by an individual paid by his/her employer in addition to salary to meet some service requirements such as Dearness Allowance (DA), House Rent Allowance (HRA), Leave Travel Assistance (LTA), Lunch Allowance, Conveyance Allowance, Childrens Education Allowance, and City compensatory Allowance etc.) Allowance can be fully taxable, partly or non-taxable. Provident Fund (PF) Contribution is made for the employee's welfare by the employer. The deduction is based on PF and Income Tax (IT). Try to understand the components of the salary structure and taxation for more details. 8. Write a shell script to develop an APP to calculate the net salary of an employee. The DA, HRA, TA and Other Allowances (OA) are given. Follow the constraints and find out the amount to be deducted using the proper PF and IT calculation. Your APP has to display its contents with the menu option and the input is the Basic salary. DA: 14% of Basic salary HRA: $175 TA: $150 other allowances (OA): $400 Deduction a) PF: 12% of Basic salary and b) IT: 15% of Basic salary Net Salary = Basic Salary + DA + HRA + TA + OA (PF + IT) 9. Write a shell script calculator program to take two inputs to perform the choice of operation on Addition, Subtraction, Multiplication, Division and Modulus. This script is the part of an application, so your script has to look like a menu showing the selection to process 10. Based on your own understanding, give the proper explanation/ examples / syntax / scripts to show the use of the following tools / utilities: a) yum b) rpm c) du d) fstab e) fsck f) Mount/umount g) Hostname

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!