Question: Write a complete bash script to print a receipt for a wholesale business. Assume that the business is selling only Three items always and their

 Write a complete bash script to print a receipt for a

Write a complete bash script to print a receipt for a wholesale business. Assume that the business is selling only Three items always and their prices are fixed. The items business sells are : Shirts/$29.45 each, Pants/$12.89 each and Pairs of Socks/$3.56 each. There are two categories of byers, Taxable and Tax Free buyers. If the buyer is a tax free buyer, no tax is charged but an indications is printed in the receipt (See receipt examples below). Here are the criteria you must have to get full credit: - Per Unit value and Cost must print 2 decimal places. - Number of units purchased must print 1 decimal place. -All number values MUST right-aligned. - $signs must be printed as shown -6.25% Tax is charged only on Taxable buyers - Print **This sale for a tax Free Business at the bottom of the receipt if the buyers is a Tax Free buyer. - Print a greeting to thank the customer and the date at the end of the receipt. - Neatness is Important. Match the given example outputs exactly Here is an example receipt each (Tax Free buyer and Taxable buyer respectively). Global wholesales Inc. Global wholesales Inc. Enter your business name: Orifice Apparel Enter your business name: Progidy Inc. Is your business tax free? (Y/N): Y Is your business tax free? (Y/N): N Enter # of shirts ($29.45 each): 40 Enter # of shirts ($29.45 each): 45 Enter # of pants ($12.89 each): 60 Enter # of pants ($12.89 each): 30 Enter # of Pairs of socks ($3.56 each): 30 Enter # of Pairs of socks ($3.56 each): 60 GLOBAL WHOLESALES INC. GLOBAL WHOLESALES INC. selling for: Orifice Apparel selling for: progidy Inc. Item Name Per Unit($) Units Cost($) shirts 29.45 40 1178.00 Item Name Per Unit($) Units Cost($) shirts Pants 60 773.40 12.89 1325.25 29.45 45 Pairs of socks 3.56 30 106.80 Pants 30 12.89 386.70 Pairs of socks 3.56 60 213.60 Tax $ 0.00 Tax $ 120.35 Total $ 2058.20 Total $ 2045.90 **Tax Free Business Thank you for your business with Global wholesales. Thank you for your business with Global wholesales. Date: Sat Mar 6 10:15:33 CST 2021 Date: Sat Mar 6 10:10:06 CST 2021 Write a complete bash script to print a receipt for a wholesale business. Assume that the business is selling only Three items always and their prices are fixed. The items business sells are : Shirts/$29.45 each, Pants/$12.89 each and Pairs of Socks/$3.56 each. There are two categories of byers, Taxable and Tax Free buyers. If the buyer is a tax free buyer, no tax is charged but an indications is printed in the receipt (See receipt examples below). Here are the criteria you must have to get full credit: - Per Unit value and Cost must print 2 decimal places. - Number of units purchased must print 1 decimal place. -All number values MUST right-aligned. - $signs must be printed as shown -6.25% Tax is charged only on Taxable buyers - Print **This sale for a tax Free Business at the bottom of the receipt if the buyers is a Tax Free buyer. - Print a greeting to thank the customer and the date at the end of the receipt. - Neatness is Important. Match the given example outputs exactly Here is an example receipt each (Tax Free buyer and Taxable buyer respectively). Global wholesales Inc. Global wholesales Inc. Enter your business name: Orifice Apparel Enter your business name: Progidy Inc. Is your business tax free? (Y/N): Y Is your business tax free? (Y/N): N Enter # of shirts ($29.45 each): 40 Enter # of shirts ($29.45 each): 45 Enter # of pants ($12.89 each): 60 Enter # of pants ($12.89 each): 30 Enter # of Pairs of socks ($3.56 each): 30 Enter # of Pairs of socks ($3.56 each): 60 GLOBAL WHOLESALES INC. GLOBAL WHOLESALES INC. selling for: Orifice Apparel selling for: progidy Inc. Item Name Per Unit($) Units Cost($) shirts 29.45 40 1178.00 Item Name Per Unit($) Units Cost($) shirts Pants 60 773.40 12.89 1325.25 29.45 45 Pairs of socks 3.56 30 106.80 Pants 30 12.89 386.70 Pairs of socks 3.56 60 213.60 Tax $ 0.00 Tax $ 120.35 Total $ 2058.20 Total $ 2045.90 **Tax Free Business Thank you for your business with Global wholesales. Thank you for your business with Global wholesales. Date: Sat Mar 6 10:15:33 CST 2021 Date: Sat Mar 6 10:10:06 CST 2021

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!