Question
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
Sample Data
read.txt
Property Name | Purchased Price ($) | Rehab Cost ($) | TotalCost ($) | Price Sold($) | |
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 |
Sample Output.txt
|
Don't worry about tables. Output should be in basic text file and have same attributes as shown in read and output file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started