CS-341: Lab 1                 Sudharsan Iyengar           Fall    8/27/2024

 

Part A:

Write a Java application to request an integer value N, from the user. Generate and output N random numbers in the range 1 – 1000, to an output file “random.dat”, 5 numbers per line, neatly formatted (right adjusted).

 

Part B:

Read from an input file – the loan amount (integer), the interest rate (double), and the payment per month (double). Using these values – write the neat readable amortization table to an output file “amort.dat”.