Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question requires that you create a shell script or modify an existing shell script. You can find hundreds of sample shell scripts in /

This question requires that you create a shell script or modify an existing shell script. You can find hundreds of sample shell scripts in /home/shellScripts on the CBC Linux server to use if you wish. You do NOT need to upload anything to Canvas for this question. However, you must save the script in your home directory on the CBC Linux server with the name tuition.sh. I also suggest that you test your script to ensure that it executes correctly.
You must create a shell script for calculating the amount a student owes for tuition and fees. 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 108: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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions