Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

AsSEMBLY LANGUAGE Develop a program that will determine a customer=s new ending balance and their available credit on a charge account. For the customer you

AsSEMBLY LANGUAGE

Develop a program that will determine a customer=s new ending balance and their available credit on a charge account. For the customer you will input: account number (letters and numbers), then whole numbers for 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, and the allowed credit limit.

The program will prompt and the user will input all the data separately, then calculate the ending balance (new amount customer now owes) and available credit (the part of the limit they still have left) and store the results. Print out the information about the account with labels on separate lines - account number, ending balance, and available credit. Put a blank line between the input and output.

Run your program two separate times with the following accounts:

INPUT:

Account Number: HVCC100

Beginning Balance: 2517

Charges: 1524

Credits: 500

Credit Limit: 4000

Account Number: HVCC200

Beginning Balance: 1479

Charges: 729

Credits: 600

Credit Limit: 2000

Label the following output for each customer in the two runs:

OUTPUT:

Account Number:

Ending Balance:

Available Credit:

Type your program into a text editor like TextPad. Make sure you follow all directions and use commands and concepts from this chapter. Document your .mas program with at least name, exercise number, and at least 4-5 lines explaining what the program does. You will also add comments to at least 5 individual lines in the program (comment lines not totally obvious to a novice programmer). Assemble and run your program with sim without the debugger twice with each of the two sets of input data above. Copy and paste the results from the Console to a separate plain output .txt text file. Submit your .mas Assembly source code and .txt output text file.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions