subject

Write a program that will search a text file of strings representing numbers of type int and will write the largest and the smallest numbers to the screen.

include appropriate error handling in case a line contains more than one int or it contains a string.

wrap all the work you are doing with the file in a try/catch/finally block with appropriate "catch" sections; the finally block will be where you close your file object (if desired, look this up online for more information regarding "finally" and when it is executed, specifically that it is executed in case of success or failure of the entire try block).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
Which software would you use to create a print design? a. illustrator b. audacity c. reaper d. dreamweaver
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
When workers demonstrate patience, are able to manage there emotions, and get along with other employees, which skills are being displayed?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Is the process of organizing data to reduce redundancy. a. normalization b. primary keying c. specifying relationships d. duplication
Answers: 1
You know the right answer?
Write a program that will search a text file of strings representing numbers of type int and will wr...
Questions
question
Mathematics, 13.07.2020 20:01
question
Social Studies, 13.07.2020 20:01
question
Mathematics, 13.07.2020 20:01
question
Mathematics, 13.07.2020 20:01
Questions on the website: 13722362