There not in an easy format to understand I am retyping them below:
P11.1 Write a program that asks a user for a file name and prints the number of characters,words, and lines in that file.
P11.3 Write a program CopyFile that copies one file to another. The file names are XXXXX XXXXX the
command line. For example,
java CopyFile report.txt report.sav
P11.5 Write a program Find that searches all files specified on the command line and prints out all lines containing a reserved word. For example, if you call
java Find ring report.txt address.txt Homework.java
then the program might print report.txt: has broken up an international ring of DVD bootleggers that address.txt: Kris Kringle, North Pole address.txt: Homer Simpson, Springfield Homework.java: String filename;
The reserved word is always the first command line argument.
P11.8 Get the data for names in prior decades from the Social Security Administration. Paste the table data in files named babynames80s.txt, etc. Modify the BabyNames.java program so that it prompts the user for a file name. The numbers in the files have comma separators, so modify the program to handle them. Can you spot a trend in
P12.4 Write a program that teaches arithmetic to a young child. The program tests addition and subtraction. In level 1 it tests only addition of numbers less than 10 whose sum is less than 10. In level 2 it tests
addition of arbitrary one-digit numbers. In level 3 it tests subtraction of one-digit numbers with a nonnegative difference.Generate random problems and get the player input. he player gets up to two tries
per problem. Advance from one level to the next when the player has achieved a score of five points.
P12.8 Airline seating. Write a program that assigns seats on an airplane. Assume the airplane has 20 seats in first class (5 rows of 4
seats each, separated by an aisle) and 90 seats in economy class (15 rows of 6 seats each, separated by an aisle). Your program
should take three commands: add passengers, show seating, and quit. When passengers are added, ask for the class (first or economy), the number of passengers traveling together (1 or 2 in first class; 1 to 3 in
economy), and the seating preference (aisle or window in first class; aisle, center, or window in economy). Then try to find a match and assign the seats. If no match exists, print a message. Your solution
should include a class Airplane that is not coupled with the Scanner or PrintStream classes. Follow the design process that was described in this chapter.