(4 points) Describe what happens when each of the following statements are executed
ifstream infile;
infile.open("hello.file");
while (infile) {
infile >> astring;
(10 points) Write a program that will read words from a file and perform
the following:
Print the longest word.
Print the average length of all words in the file.
Print the word that is alphabetically first and the
word that is alphabetically last.
(10 points) Write a program that reads a line from standard input (cin)
and prints "The line is a palindrome" if the line is the same backwards and forwards. (For example "123 321" is a palindrome, "abc" is not)
(3 points) Discuss the importance of white space in a C++ program.