Question: Programming Assignment # 4 Write a Java modular program that determines whether a credit card customer has exceeded his / her credit limit on a
Programming Assignment #
Write a Java modular program that determines whether a credit card customer has exceeded hisher credit limit on a Visa credit card. For each customer, the following data is given as input:
Account number a positive integer
Beginning monthly balance a double nonnegative
Each of all charges for the month a double nonnegative; return the total amount of charges.
Total payments for the month a double nonnegative
Customer's credit limit a double nonnegative
There should be valuereturning methods to read in validate the input, and return valid input to the main method. NOTE: Your method must continue to read in each charge until a negative one is read and total up the charges and return total charges by using a loop.
A valuereturning method to calculate and return the new balance to the main method.
A void method to display the following data as output for each customer:
New balance:
Account number:
Message stating "Credit Limit Exceeded" if new balance is greater than the credit limit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
