Course Solutions Uncategorized (Solved) : Calculating Sales Create Perl Script Named Calcsales Reads Input File Specifying Sales Fig Q27545791 . . . .

(Solved) : Calculating Sales Create Perl Script Named Calcsales Reads Input File Specifying Sales Fig Q27545791 . . . .

 

Calculating Sales
Create a perl script named calcSales that reads an input filespecifying sales figures and
outputs a tabulation of these figures.
Each line of the input file will be a string of the form name+ orname+sales. The name will not
contain any ‘+’ characters. The sales, if present, will be aninteger or floating point number (i.e.,
there may or may not be a decimal point). The name of the inputfile will be specified on the
command line. So, execution of this program might look likethis:
perl calcSales.pl salesFigures.txt
The output will consist of a list of names and sales figures,sorted alphabetically by name, that
remain after the following

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post