Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hey! just need some help, this is written in Java... its mainly how do i change a text file that comes off as... John and

hey! just need some help, this is written in Java...

its mainly how do i change a text file that comes off as...

John and Jane Doe 500 St Laurent Blvd Ottawa, ON K1K 416

into...

John,Doe,Jane,Doe,500,StLaurent,Blvd,,Ottawa,ON

I remember we are suppose to use arrays and Split a String by space etc...

image text in transcribed

Input: A text based file containing complete valid addresses in GOA area, along with name/s of persons living at each address. You need to create this and it will consist part of the marking Expected location of file is C:\CST8284input - Filename: InputAddresses.txt Output: A text based file with each line containing the following list of info, separated by commas Expected location of file is C:\CST8284 output - Filename: OutputAddresses.csv ,cLast name>*,*,,,, *: optional fields Sample Input File content John and Jane Doe 500 St Laurent Blvd Ottawa, ON K1K 4T6 David Smith 6537 Laurier Street West Ottawa, ON Andrew Lukas, Angela Lincoln 3-175 Woodroffe Ave Nepean, ON K2J 4Y7 As you can see, addresses can come in different format a bit and with additional data not needed. All addresses are separated by a blank new line Sample Output File content John,Doe,Jane,Doe,500,St Laurent,Blvd,,Ottawa,ON David,Smith,,,6537,Laurier,Street,W,Ottawa,ON Andrew,Lukas,Angela, Lincoln,175,Woodroffe,Ave,,Nepean,ON

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions