Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

in assembly ( using kip irvines 7th edition). Let this new program repeat the sa

ID: 3812859 • Letter: I

Question

in assembly ( using kip irvines 7th edition).

Let this new program repeat the same steps three times, using a loop. Clear the screen after each loop iteration.

here is the original program where i need to add loop.thanks

title simple_addtion_1

include Irvine32.inc

.data
input1stintmsg byte "input first interger: ",0
input2nsintmsg byte "input second interger: ",0
outputsummsg byte "sum of 2 intergers is: ",0

num1 dword ?
num2 dword ?
sum dword ?

.code
main proc
call Clrscr

mov dl,20
mov dh,11
call Gotoxy

mov edx,offset input1stintmsg
call WriteString

call ReadInt
mov num1, eax

mov dl,20
mov dh,12
call Gotoxy

mov edx, offset input2nsintmsg
call WriteString

call ReadInt
mov num2,eax

mov eax, num2
add eax, num1
mov sum, eax

mov dl,20
mov dh, 13
call Gotoxy

mov edx, offset outputsummsg
call WriteString

mov eax,sum
call WriteInt

exit
main endp

end main

Explanation / Answer

the default creator to initialize the state of your category. The default
constructor can scan the info from the file “callstats_data.txt” into the
dynamic array call_DB. If call_DB becomes full, the operate ought to decision
the operate “double_size” to double the scale (capacity) of call_DB.
Remember, count and call_DB ar non-public members of your category and do
not ought to be passed to Associate in Nursing member operate of your category.
2. is_empty may be a Boolean public member operate of the category. It has no
formal parameter as a result of count may be a member of the state of the category
(private member) and doesn't ought to be passed thereto as a result of the state of
the class if renowned to any or all member functions of the category. If count == zero then
true is came back; otherwise false is returned.
3. is_full may be a Boolean public member operate of the category. it's no formal
parameters as a result of count and size ar members of the state of the category
(private members) and don't ought to be passed thereto as a result of the state of
the class if renowned to any or all member functions of the category. If count == size
then true is return; otherwise false. the scale is that the capability that is that the
total range of cells allotted to call_DB.
4. search is Associate in Nursing whole number public member operate that has just one formal
parameter, the key. secret's the mobile phone range for the record you're
search for. The array of records, call_DB and count ar members of the
state of the category and don't ought to be passed to a member operate of the
class; The operate can come the situation of key in call_DB if it's there;
otherwise -1 is came back.
5. add may be a void public member operate that inserts info for a decision
record into call_DB. Duplicates cell ranges ar ok; add can prompt the
user for the firstname, lastname, cell number, relays and decision length. You
may decision method record to re-process after you add a replacement record. add has
no formal parameters.
6. take away may be a void public member operate that deletes all records with the
cell range keep in key. If duplicate records exist with identical cell
number they have to all be deleted. “remove” has just one formal
parameter, the key.
7. double_size may be a void public member operate that doubles the capability
of call_DB. “double_size” has no formal parameters as a result of size, count
and call_DB ar all members of the state of the category, call_class. First,
size is multipled by two; second, memory is allotted victimisation “call_record
*temp=new call_record[size]; third the records in call_DB ar derived into
temp with the statement “temp[i]=call_DB[i]” employing a for loop. Forth, the
old memory for call_DB is de-allocated victimisation “delete [ ] call_DB”;
Finally, call_DB is about to purpose to the new memory pointed to by temporary worker
using “call_DB = temp”.
8. process
is a void public member operate the has no formal parameter as a result of call_DB and count ar members of the state of the category.. The operate method can calculate world wide web price of a decision (net_cost), the tax on a decision (call_tax) and therefore the total price of {the decision|the decision} (total_cost) victimisation the amount of boosters (relays) and therefore the length in minutes of the decision (call_length) for all call records keep in call_DB. Please take into account the following:
The rate on a decision (call_tax) is solely supported the amount of boosters (relays) accustomed build the decision (0<= relays <=5 then call_tax = 1%; 6<= relays <=11 then call_tax = 3%; 12<= relays<=20 then call_tax = 5%; 21<= relays <=50 then call_tax = 8%; relays >50 then call_tax =12%) .
The net price of a decision is calculated by the subsequent
formula: net_cost = ( relays / fifty x zero.40 x call_length).
c. The tax on a decision is adequate to net_cost x call_tax / one hundred.
d. the entire price of a decision (rounded to the closest hundredth) is calculated by the subsequent formula: total_cost = net_cost + call_tax . All tax and price calculations ought to be rounded to the closest hundredths.
9.
print may be a void public member operate that has no formal parameters
because count and call_DB ar members of the state of the category. The
function can print each field of each call_record in call_DB to the
screen.
10.the destructor to de-allocate all memory allotted to call_DB. This operate has no formal parameters as a result of call_DB may be a member of the state of the category. it'll be known as mechanically by the compiler.
Use the driving force “call_stats6.cpp” to assist you implement this program. Output Format for the operate "print":
Consider the subsequent sample output table once coming up with and implementing the operate "print". See section “Format of Output below.
(The output is within the following order: firstname, lastname, mobile phone range, relays, minutes, net cost, tax rate, call tax, total decision cost)
print may be a void public member operate that has no formal parameters
because count and call_DB ar members of the state of the category. The
function can print each field of each call_record in call_DB to the
screen.
Jean Hayward Marlon Brando John Kennedy
Input Stream:
9546321555
5612971340
3051234567
0 zero five fifty eight twenty five
0 0.01 0 0
2 0.01 0.02 2.02 1.6 0.03 0.05 1.65
In the assignment you may declare one ifstream to bind your input to the file "callstats_data.txt" Whenever a program performs file i/o you want to embrace the "fstream" library.
Format of the computer file file(input name is "callstats_data.txt"): don't embrace column titles
(The order of the columns ar as follows: firstname, lastname, mobile phone range, relays, minutes)
Jean Hayward Marlon Brando John Kennedy Sir Edmund Hillary Clinton martyr Bush Barack Obama Donald Trump Bernie Sanders Harry Ford Michelle Obama Ann Dunham national leader Harriet Tubman Oprah Winfrey Charlotte Ray
Tina Turner
Shirley Chisholm Maritza Correla Margaret Hilda Thatcher
9546321555
5612971340
3051234567
7542346622
3054432762
9544321011
8776219988
9042224556
7877176590
5617278899
9546321555
5612971340
3051234567
5611234444
3054432762
8776219988
9042224556
7877176590
5617278899
0 zero five fifty eight twenty five
24 seventeen fifteen thirty fifty one hundred eighty seven eighty two
4 five eleven one twenty four5
4 three seventy nine eighty six eight twenty five twenty four 118 a hundred and fifteen twenty five two65 twenty two 2 five eighty nine sixty seven four0 fifty six
Format of Output to screen:
(the order of the columns is as follows: firstname, lastname, mobile phone range, relays, minutes, net cost, tax rate, call tax, total decision cost)
Jean Hayward Marlon Brando John Kennedy Sir Edmund Hillary Clinton martyr Bush Barack Obama Donald Trump Bernie Sanders Harry Ford Michelle Obama Ann Dunham national leader
9546321555
5612971340
3051234567
7542346622
3054432762
9544321011
8776219988
9042224556
7877176590
5617278899
9546321555
5612971340
0 zero five fifty eight twenty five
24 seventeen fifteen thirty fifty one hundred eighty seven eighty two
4 five eleven one twenty four5
4 3 79 86
0 0.01
2 0.01 1.6 0.03 3.26 0.08 3.6 0.05 40 0.08 57.07 0.12 0.16 0.01 0.09 0.03 7.2 0.05 0.1 0.01 54.35 0.12
0 0 0.02 2.02 0.05 1.65 0.26 3.53 0.18 3.78
3.2 43.2 6.85 63.92 0 0.16 0 0.09 0.36 7.56 0 0.1 6.52 60.87
Harriet Tubman Oprah Winfrey Charlotte Ray Madonna Carter
Tina Turner
Shirley Chisholm Maritza Correla Margaret Hilda Thatcher
3051234567
5611234444
3054432762
9544321011
8776219988
9042224556
7877176590
5617278899
8 25 1.6 0.03 0.05 twenty four 118 twenty two.66 0.08 1.81 a hundred and fifteen twenty five twenty three zero.12 2.76 43 10 3.44 0.08 0.28 265 twenty two forty six.64 0.12 5.6 2 5 0.08 0.01 zero eighty nine sixty seven forty seven.7 0.12 5.72 forty fifty six seventeen.92 0.08 1.43
1.65 24.47 25.76
3.72 52.24 0.08 53.43 19.35