Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project 01: This project is for you to practices on a simple file I/O in Java. ************************************** Language: Java ************************************** Project points: 2 pts Due

Project 01: This project is for you to practices on a simple file I/O in Java. ************************************** Language: Java ************************************** Project points: 2 pts Due Date: -0 (2/2 pts): on time, 1/31/2023 Tuesday before midnight -1 (1/2 pts): 1 day late: 2/1/2023 Wednesday before midnight (-2/2 pts): non-submission, 2/2/2023, Wednesday after midnight *** Name your soft copy and hard copy files using the naming convention (include in the email). *** All on-line submission MUST include Soft copy (*.zip) and hard copy (*.pdf) in the same email attachments with correct email subject as stated in the project submission requirement; otherwise, your will be rejected. submission *********************************** I. Inputs: a) inFile1(use args [0]): a text file contains a list of positive integers in free format (see data1 in the email). ****************** ************** II. Outputs: ******************************** a) outFile1(use args [1]): a text file contains all the integers in inFile1, but 5 integers per text line. ******************************** III. Data structures ******************************** - javaIOclass - (string) data - (int) total - (int) count Methods: - void processInt (inFile1, outFile1) // see algoritm below. ******************************** IV. main () ******************************** Step 0: inFile1 open from args[0] outFile1 open from args[1] Step 1: processInt (inFile1, outFile1) // see below Step 2: close all files. ******************************** V. processInt (inFile1, outFile1) ******************************** Step 0: outFile1 write in processInt method to outFile1 total 0 count 0 step 1: data read one integer from inFile1 step 2: outFile1 data // write data to outFile1 total ++ count++ step3: if count >= 5 outFile1 end of textLine count 0 step 4: repeat step 1 to step 3 until end of inFile1 step 5: outFile1 write the total string count is and count to outFile1

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

Guidelines for Informative Speeches?

Answered: 1 week ago