Question: Write a program in (pseudocode or flowchart) that calculates a customers available credit. The program asks the user for the following: The customers name; The
Write a program in (pseudocode or flowchart) that calculates a customers available credit. The program asks the user for the following: The customers name; The customers maximum amount of credit; The amount of credit used by the customer. Once those items have been entered, the program calculates the available credit. The program should display the customers name and his/her available credit. The available credit is calculated by subtracting the amount of credit used from the maximum amount of credit.
Change the program above to call, from the main method, a method to calculate the available credit. The method should receive the maximum amount of credit and the amount used; and the method should return the amount available. (The code to calculate the available credit should appear only in the method.)
Change the program to calculate the available credit for more than one customer, asking the user if (s)he wants to calculate the credit for another customer. (Hint: you will use loop)
Change the program to store each customers name in a String array, and each customers available credit in another array (use parallel arrays.)
PS: You can provide only one program including all items or separate codes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
