Summer 1998
Programming in PERL
Assignment for Class 4 - 7/2/98
Read the material in chapters 7 and 8 and answer the questions at the end of the chapters. (The answers are in the back of the book.)
Modify program5_2 to ask for the number of random numbers to be generated and then generate that many random numbers and prints out the result as before.
Write a PERL program to generate a simulation of throwing 2 six sided dice and prints out how many times each of the numbers between 2 and 12 were generated. Have your program ask how many throws of the dice the user wants and play the game that many times. Use an array similar to that program5_2.
Modify the program5_11 it sorts in reverse alphabetical order.
Modify program 6.13 in the text so it will look for a particular character and not a word. Use command line arguments for the file and the character.