Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is with Assembly on windows Create a procedure called yearlyBalance that uses a given interest rate, balance, and term to output a table of

This is with Assembly on windows
Create a procedure called yearlyBalance that uses a given interest rate, balance, and term to output a table of adjusted balances each year for the number of years specified by the term. For this lab you will use a simplified formula:
interest = balance * rate /100.0;
Pass the initial balance and rate and number of years to the procedure on the floating point stack. Then, using a for loop output the table. Basically you want to add the interest to the balance each year (each time through the loop)
Required:
The yearlyBalance procedure must be in a separate asm file called balances.asm. This means you should have main.asm and balances.asm.
The following shows an example output:
Enter your balance
1000
Enter the interest rate (like 5.0)
5.0
Enter the number of years
10
Year: 1: $1050.00
Year: 2: $1102.50
Year: 3 $1157.63
Year: 4: $1215.51
Year: 5: $1276.28
Year: 6: $1340.10
Year: 7: $1407.10
Year: 8: $1477.46
Year: 9: $1551.33
Year: 10: $1628.89
Press any key to continue ...
NOTE:
You are not to use any .IF .ELSE, .WHILE, or .ENDW instructions. You are to use pure old fashion assembly language to solve this.
please include code from the main file and balance and seperate them

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

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

to encourage a drive for change by developing new ideas;

Answered: 1 week ago

Question

4 What are the alternatives to the competences approach?

Answered: 1 week ago