编程分配涉及输入和输出到.dat文件

时间:2017-04-08 17:15:36

标签: java file input output createfile

本周在我的编程课程中的作业。我知道我需要进入哪个方向,但有些具体细节让我感到困惑。

My Credit Card Company has a file that called “BeginningBalance.dat” which 
contains the following information:
Customer number->integer
Beginning Balance->double
Purchases->double
Payments->double
The company charges 1% of the beginning balance for finance charges.
Write a Java program that does the following:
Read in the file, calculates the finance charge per customer
Display all information to the monitor including finance charge and 
outstanding balance • Creates an output file called “NewBalance.dat” that 
contains customer number and new balance.

所以我认为我需要创建开始文件,将其读入Java,将数据传递到数组并显示它,计算新数据并将其输出到新文件。我不知道该如何开始。非常感谢,谢谢。

0 个答案:

没有答案