Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN JAVA Using Java I/O streams, write a program that opens the file read.txt. Reads the data from the file into a class object. You

IN JAVA

Using Java I/O streams, write a program that opens the file "read.txt.

Reads the data from the file into a class object. You will need to create a class object , and then, an array to store the information.

Calculates the followings, and write the entire information back into a file called output.txt

NetIncome = Price Sold Total Cost

Taxes = 30% of NetIncome

P&L= NetIncome Taxes

% Gain/Loss = Price Sold/Total Cost

read.txt file data and output should look like

image text in transcribed

There should be total in output file. Picture above shows read.txt file and output file after calculations

if you need data of read.txt file

Purchased Rehab Cost ($) TotalCost ($) Price Sold($)

Price ($)

1024 BROWN STREET $33,000 $0 $33,000 $18,300

112 Alvil Road $80,000 $50,419 $130,419 $133,061

113 CYPRESS DRIVE $109,600 $30,266 $139,866 $149,269

124 Bradley Circle $133,302 $75,693 $208,995 $196,807

135 WHITBURN PLACE $69,700 $32,394 $102,094 $117,581

138 BROOKSIDE BLVD $100,000 $48,462 $148,462 $162,171

141 Cross Avenue $90,000 $5,247 $95,247 $117,004

1529 seton $157,000 $36,671 $193,671 $155,743

16 MALVERN ROAD $108,000 $53,589 $161,589 $184,082

1642 COLEMAN STREET $49,000 $30,398 $79,398 $119,040

19 Mavista Circle $19,106 $59,702 $78,808 $46,062

200 BEAU TREE DRIVE $300,000 $83,457 $383,457 $362,000

21 CREEK LANE $106,000 $0 $106,000 $120,600

21 MAPLEWOOD LANE $172,000 $71,665 $243,665 $294,846

Total Houses Sold: 14 $1,526,708 $577,961 $2,104,669 $2,176,567

Purchased Rehab Cost ( TotalCost () Price Sold($) 1924 BROWN STREET 112 Alvil Road 113 CYPRESS DRIVE 124 Bradley Circle 135 WHITBURN PLACE 138 BROOKSIDE BLVD 141 Cross Avenue 1529 seton 7 9 1642 COLEMAN STREET 19 Mavista Circle 200 BEAU TREE DRIVE 21 CREEK LANE 6 Total Houses Sold: 14 $1,526,708 $2,104,669 $2,176, 567 Purchased Rehab Cost ($) TotalCost () Price Sold() NetIncome$) Taxes ($) $(P&L) 5 1024 BROWN STREET 112 Alvil Road 113 CYPRESS DRIVE 124 Bradley Circle 135 WHITBURN PLACE 138 BROOKSIDE BLVD 141 Cross Avenue $196,807 $4,113 $9,596 $6,527 $15, 230 ($37,928) 2 $6,748 $15,746 $11,893 $27,758 16 MALVERN ROAD 1642 COLEMAN STREET 19 Mavista Circle 200 BEAU TREE DRIVE 21 CREEK LANE ($21,457) $4,380 $10,220

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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

Distinguish between a sales and a purchase return.

Answered: 1 week ago

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago