Write a console program to read in a text file of first and


1. Loops: The greatest and the least- Write a program with a loop that lets the user to enter a series of integers. The use should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.

2. File I/O: Read in inputs from a text file and copy them to an output file.

Write a console program to read in a text file of first and last names, print them on the screen, and write them (one first / last name per line) to another file. On the screen, the first name should be written to the file in a column 10 chars wide, and the 2nd should be written in a column next to it 10 chars wide. The users should be prompted for both filenames, and the program should verify that the files can be opened, printing an error message if not. Both files should be closed at the end of the program

Output from your program should look like the following, on the screen and in the file your program creates (assuming the file "names.txt" contains Trey Anastasio Maynard Keenan Candy Cane Davey Jones)

Enter the name of the input file: names.txt

Enter the name of the output file:out.txt

Names:

Trey                Anastasio

Maynard           Keenan

Candy              Cane

Davey              Jones.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a console program to read in a text file of first and
Reference No:- TGS01589188

Expected delivery within 24 Hours