Question: Develop a Java application that determines whether any of several department-store customers has exceeded the credit limit on a charge account. For each customer, the
Develop a Java application that determines whether any of several department-store customers has exceeded the credit limit on a charge account. For each customer, the following facts are available:
a) Account number
b) Balance at the beginning of the month
c) Total of all items charged by the customer this month
d) Total of all credits applied to the customer’s account this month
e) Allowed credit limit.
The program should input all these facts as integers, calculate the new balance (= beginning balance + charges – credits), display the new balance and determine whether the new balance exceeds the customer’s credit limit. For those customers whose credit limit is exceeded, the program should display the message "Credit limit exceeded".
Perform each of the following steps:
a) Read the problem statement.
b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.
c) Write a Java program.
d) Test, debug and execute the Java program.
e) Process three complete sets of data.
Step by Step Solution
3.32 Rating (155 Votes )
There are 3 Steps involved in it
This is a very interesting programming task Lets break it down step by step b Pseudocode and topdown stepwise refinement This entails breaking down a ... View full answer
Get step-by-step solutions from verified subject matter experts
