Answer to Question #336129 in UNIX/Linux Programming for bish

Question #336129

 Boyce earns P35.00 per hour at his job. What would be his annual income be if he works 8 hours per day, 5 days per week, and 50 weeks per year? Write a script to support you answer, the script should prompt a user to enter his\her hourly rate, number of hours per day, number of days per week and number of weeks per year. Then the system computes the annual income [10 marks] 


1
Expert's answer
2022-05-01T19:05:44-0400

#!/bin/bash

read -p "Rate: " rate

read -p "Hours per day: " hours

read -p "Days per week: " days

read -p "Weeks per year: " weeks

let res=$rate*$hours*$days*$weeks

echo $res


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS