Question: COSC 211 Programming assignment: 5 Write a program that prompts the user to enter the name of a text file, reads in all the integers
COSC 211 Programming assignment: 5 Write a program that prompts the user to enter the name of a text file, reads in all the integers from the file and then displays their sum on the screen. The file may contain integers as well as non-integers. Your program must skip over all the non-integers to accomplish its objective. Use the sample text file inputP5.txt as an input to your program. You should create a project, named Projects and the project should contain a class named Program5 containing the main method for this application. Your program should be well documented and in particular, begin with a series of comments specifying: your name, course I, section, semester and other relevant information. a brief description of what the program does. Submit your assignment on Canvas by uploading a zipped folder (with your name on it) which contains the Java file for the Program class. . 7n inputP5.txt: 3.1.1 al 2 1 1 2 9.3 vs 6 7.2 abc 5 :+ 5 xxyy 22
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
