need help with 2 file problems
| mrpockets (3) | |||||
| hello, i am fairly new to the programming language and i need help with the following problems dealing with files. here is the first The data in the file that you will write will have a number that represents the number of data items and it will be followed by that number of data items – all are type int. You want to write to a file the values that exceed the average value. You may want to read in the first value and then define an array with that value., then read all of the values into an array. You will need to create a file for output. Then, you can print the values that meet the criteria into the file. When you are finished, print the program with the contents of the original file displayed as part of the program. Print the contents of the other file on a separate sheet and submit it attached to the original sheet for grading. here is the info that goes into the actual data file:
heres the second problem Bank Account Problem You will find a file that represents the transactions in a bank account for a month. The file will be laid out as follows: Account Number – Multiple digits with dashes <<a string>> Name of Person <<String>> Address of Person <String>> City, State, Zip <<String>> Closing Date of Statement <<String>> Opening Balance in Account <<Double>> Multiple Lines laid out as follows: Date D or W Amount (Where D = deposit and W = withdrawal) Your task is to create a Bank Statement for the person that looks as follows: Bank of Maryland STATEMENT Closing Date : (Closing Date from File) Account Number : ( Account Number from File) Name Addresss City, State, Zip Opening Balance: (Display the opening balance) Date Deposit Withdraw Current Balance XXXXXX XXXX.XX XXXXX.XX XXXXXX XXX.XX XXXX.XX All deposits in the column for deposits and all withdrawals in the withdrawals. You will need to keep the current balance and print it for each transaction. In all cases, the decimals must be aligned and only 2 decimal places should be printed. Here is the data file for this problem:
if anyone has the answer to either of these problems id be very happy and appreciative! thanks alot! | |||||
This topic is archived - New replies not allowed.
