Question 1: Ramesh's
basic salary is input through the keyboard. His dearness allowance is 40% of
basic salary and hra is 20% of the basic salary. WAP to calculate his gross
salary?
Question 2: WAP which
will receive the filename during execution. This shell script should obtain
information about this file as given by "ls -l" and display the same
in proper format mentioning the details like:
► File access
permissions
► Number of links
► Owner of the file
► Group to which he
belongs
► Size of the file
► File Modification
date
► File modification
time
Question 3: WAP which
gets executed the moment the user logs in. It should display the message
"Good Morning"/"Good Afternoon"/"Good Evening"
depending upon the time at which the user logs in.
Question 4: If the
cost price and selling price of an item is input through the keyboard, WAP to
determine whether the seller has made profit or incurred loss. Also determine
how much profit was made or loss incurred.
Question 5: WAP to
generate all the combinations of 1, 2 and 3 using the for loops?
Question 6: WAP to
calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs
12.00 per hour for every hour worked above 40 hours. Assume that employees do
not work for fractional part of an hour.
Please post your answers in the comments below.