Please read this lab exercise thoroughly, before attempting to write the program.
Write a program that reads two integers from the text file integers.dat. The first integer should be considered the low number and the second integer the high number. The program should loop through all integers between the low and high values. The loop should include the low and high integers.
Displays the number of integers in the file
Displays the number of integers divisible by 5 OR 6, but not both.
Displays the sum of the integers from condition 2 as well as the sum of all the integers
Displays the largest integer and the smallest integer that satisfy condition number 2.
Computes the average of the largest and smallest integer
Assume the contents of integers.dat (the file is being provided for you) are as follows:
100 200
The following is a sample output: User input in red
Welcome to Wake's Integer processing Agency
What is name of the input file? integers.dat
The number of integers between the two numbers is 101
There are 32 integers that are divisible by 5 or 6 but not both
The sum of the integers that are divisible by 5 or 6 but not both is 4800
The sum of all the integers is 15150
The largest integer divisible by 5 or 6 but not both is 200
The smallest integer divisible by 5 or 6 but not both is 100
The average of 200 and 100 is 150
NOTE:
Use two decimal point precision for the average
To check your code, adjust one of the integers in the file, recompile your code and run again (suggest changing the largest and smallest integers)
Assume that the .dat can contain any two integers. The only constraint is that the first number is less than the second. Only use 100 and 200 for testing.