Question: *java programming 2. Your second task deals with a simple task requiring user input: Create class SumAndProduct which does the following from its main method:
*java programming
2. Your second task deals with a simple task requiring user input: Create class SumAndProduct which does the following from its main method: i. Prompts for and reads as user input three integers. ii. Computes and prints out both the sum and product of the three integers. iii. Repeat parts i. and ii. using the included file numericdata.txt.
note: numericdata.txt has 3 integers(10, 5, 7)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
