CISS110 credit card information

0 comments

Customers 1 – Input Program

Develop a program that will input information about a customer’s credit card information. You do not know these values in advance so the user will input all the following information: account number (whole number), beginning balance for the month (what customer owed prior to this month), total of all new charges for the month, total of all credits (payments) for the month. It will then calculate and print the ending balance of what they owe you.

The user will input all the data, save into variables (use meaningful names), and then calculate the ending balance (new amount customer now owes). Print out the information about the account – account number (just what they inputted to label the customer’s account) and ending balance (what you calculated). Use separate prompts and inputs, a separate assignment statement for ending balance, and separate print statements where you label what you are printing. When you print the output for the customer’s ending balance, be sure to print 2 decimal places for the money ending balance.

Run your program with the following accounts in three separate runs.:

INPUT:

Account Number: 100

Beginning Balance: 2517.52

Charges: 1523.35

Credits: 500.00

Account Number: 200

Beginning Balance: 1478.85

Charges: 729.71

Credits: 600.00

Account Number: 300

Beginning Balance: 1726.48

Charges: 1173.52

Credits: 400.00

Label the following output for each customer:

OUTPUT:

(for all customers)

Account Number:

Ending Balance:

Document your program with at least name, exercise number, and at least 5 lines explaining what the program does. Execute your program with the above input.

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}