Question: Can anyone help me write this program? Write a program that prompts the user to enter the name of a text file and then displays

Can anyone help me write this program?

Write a program that prompts the user to enter the name of a text file and then displays the sum of all the integers contained in that text file. The file may contain integers as well as non-integers. Your program must skip over the non-integer tokens to accomplish its objective.

Use the sample text file inputP5.txt as an input to your program.

You should create a project, named Project5 and the project should contain a class named Program5 containing the main method for this application.

Your program should be well documented with all relevent information

inputP5.txt:

3 1.1 a1 2 1 7n

1 2 9.3 vv 6

7.2 abc 5 :+ -4

5

xx yy zz

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!