Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

File I / O Program Create a program that will create a file named example.txt . This file path will be stored in the project

File I/O Program
Create a program that will create a file named example.txt. This file path will be stored in the project file (set your directory). Make sure that you avoid an IO Exception by protecting from creating the file every time the program runs. Add 5 people names to the text file. Read from the file and print the names to the console. Remember to close and open files as necessary.
Submission:
Submit a PDF document that contains the screenshots of the output, and the code (neatly formatted).
Rubric
FIle IO Assignment Rubric
FIle IO Assignment Rubric
Criteria Ratings Pts
This criterion is linked to a Learning OutcomeSubmission
On-time submission
6 pts
Full Marks
Submitted on-time
0 pts
No Marks
6 pts
This criterion is linked to a Learning OutcomeFile IO
The program created a file "example.txt".
8 pts
Full Marks
File was created.
0 pts
No Marks
8 pts
This criterion is linked to a Learning OutcomeRead and Write
The program is able to read and write to the file as expected by the instructions.
8 pts
Full Marks
Error free. Program can write and read from the file.
4 pts
Partial Credit
Errors exist in either writing or reading to file.
0 pts
No Marks
8 pts
This criterion is linked to a Learning OutcomeException handling
Exceptions were used to handle any I/O errors.
8 pts
Full Marks
Handles the I/O exception. Ability to create the file when it doesn't exist, but does not overwrite or crash when file does exist.
0 pts
No Marks
8 pts
Total Points: 30

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

Students also viewed these Databases questions

Question

What does ROI measure?

Answered: 1 week ago