Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C S C 2 2 2 File I / O and Exception Handling Create a program reading in grades from the provided text file: After

CSC222
File I/O and Exception Handling
Create a program reading in grades from the provided text file:
After reading in the data, display the following information to the user:
Grade Count
Invalld Grade Count
Average grade
Implement exception handiling for the following scen arlos:
Grade is not between 0-100 Qutput "Out of range. ?N
Grade is not an integer. Qutput "Invalid Grade"
Sample Output:
Trom1 id fr"mes
Errate out of renge
|rrabe abl at mande
Trwa1 id freanes
Invalid Brace
Inval1d braget
Crace out of parge
Erace out ol renge
Create an output file called report.txt and display the sample output In the text file as well.
Sample Output:
******* GRAUE RESULIS * w *****
Grade Count:
2 C.
InvaLid Grades:
15
Grade Average: 77
Submit your .java file or program with the input/output text files. concaterat_on
34
9999
56
101
encmp=u1=ton
ab=taction
ga
56
Exank
90
4
ag
110
polymorph ism
55
100
96
ingtantiation
74
82
\epsilonmp@\pi\t\n
Bs
3E
6=
98
123
s5
1
61
93
inter{ace
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

Describe three functions stereotypes might serve.

Answered: 1 week ago