Question
Create a shell script for calculating the amount a student owes for tuition and fees. Save the script in your home directory with the name
Create a shell script for calculating the amount a student owes for tuition and fees. Save the script in your home directory with the name tuition.sh. The tuition cost will be $125 per credit, while the fees are a flat $150 per quarter. The script must do the following: - Clear the screen
- Print a box that holds the title of the program and your name. For example:
+------------------------------------------------------------------------------+ | Tuition Calculator By: L. Inux | +------------------------------------------------------------------------------+
- Prompt and read the students name - Prompt and read the number of credits for the quarter - Calculate the total tuition - Calculate the total amount owed - Print a report/receipt showing the students name, date, number of credits, total tuition, fees, and total amount owed. Tabs must be used to make the dollar amounts line up. For example: Tuition Receipt Mon April 1 08:45:33 PST 2020 Joe Student Number of Credits: 10 Tuition: $1250 Fees: $150 Total Owed: $1400
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started