Q1

A Data file consists of a list of positive random integers. The numbers are separated by space. Design pseudo code to perform the following tasks:

(a) Print all the numbers with 10 numbers in a line.

(b) Calculate the total value of the even numbers in the file.

(for example: totalValue=2+12+20+36+…and so on)

(c) Print the largest and smallest even numbers in the file.

Q2

Write a java program to implement your design in Q1