In-Class Assignment #1
Write a program to open a particular file (/home/36/lallip/public/ica1.txt). This file contains a number of lines consisting of a number of cents. One cent amount is on each line. Read all the cent amounts from the file
Print to standard output the number of values in the file, and what those values are.
Take the first value from the file, convert it to dollars (ie, divide it by 100), and print out the number of dollars this figure represents - including the dollar sign
Sample Input
The file /home/36/lallip/public/ica1.txt might contain the following data:
543 981 97 13301 8743
Sample Output
Using the data above, your program should print two lines:
There are 5 values in the file: 543, 981, 97, 13301, 8743
The first dollar value is: $5.43
Submission
Your program must run on rcs-sun4.rpi.edu using Perl 5.8. When you
are ready to submit, execute the program
~lallip/public/ic_submit.pl and follow the prompts.
This program must be submitted by 6:00pm today, Wednesday September 7
