Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with bash Thanks A Small investment company pays interest Investment interest rate as follows $10000 -$5000 $2500 $1000 8.0e 5.0% 2.5 1.08 0.5

Please help with bash

Thanks

image text in transcribed

A Small investment company pays interest Investment interest rate as follows $10000 -$5000 $2500 $1000 8.0e 5.0% 2.5 1.08 0.5 You are given a text file named investment.dat containing a investors name and the investment amount as shown below. Joseph Vass,1500.0 Michael Brozore, 13900.34 avie Potranco, 313.7 Michael Smith, 34.81 Robert Valdes, 9269.34 Petr Garcia, 3292.78 Maria Rodrigues, 3050.70 Sandy Watmore, 289. 50 Ma Hernande , 7836.56 Julia Mandez2, 6150.53 James Johnson, 24.56 Write a bash script to produce the following output. Each person's investment is used to calculate the interest using the above interest table. Total balance is the sum of investment and the calculated interest Following criteria MUST be met properly for full credit 1. Ask the user to enter an investment co. name 2. Columns must be neatly aligned using formatted output - Full Name (left aligned), Investment, Interest and Total Balance (Right Aligned with 2 precision places) 3. Use properly column titles as shown in the example output below A Small investment company pays interest Investment interest rate as follows $10000 -$5000 $2500 $1000 8.0e 5.0% 2.5 1.08 0.5 You are given a text file named investment.dat containing a investors name and the investment amount as shown below. Joseph Vass,1500.0 Michael Brozore, 13900.34 avie Potranco, 313.7 Michael Smith, 34.81 Robert Valdes, 9269.34 Petr Garcia, 3292.78 Maria Rodrigues, 3050.70 Sandy Watmore, 289. 50 Ma Hernande , 7836.56 Julia Mandez2, 6150.53 James Johnson, 24.56 Write a bash script to produce the following output. Each person's investment is used to calculate the interest using the above interest table. Total balance is the sum of investment and the calculated interest Following criteria MUST be met properly for full credit 1. Ask the user to enter an investment co. name 2. Columns must be neatly aligned using formatted output - Full Name (left aligned), Investment, Interest and Total Balance (Right Aligned with 2 precision places) 3. Use properly column titles as shown in the example output below

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

Students also viewed these Databases questions

Question

LO3 Discuss the steps of a typical selection process.

Answered: 1 week ago