Question: Hi, in this programming assignment, I need to display the persons first name, middle name, and last name in display 5 (Line 17). How would

Hi, in this programming assignment, I need to display the persons first name, middle name, and last name in display 5 (Line 17). How would I go about copying multiple strings to a single line? Right now it only displays the first name.

INCLUDE Irvine32.inc .data promptStr1 BYTE 0Dh, 0Ah, "Enter the first name: ", 0 promptStr2 BYTE 0Dh, 0Ah, "Enter the middle name: ", 0 promptStr3 BYTE 0Dh, 0Ah, "Enter the last name: ", 0 promptDec BYTE 0Dh, 0Ah, "number of dependants: ", 0

standardDeduction DWORD 6200 dependantDeduction DWORD 3950

display00 BYTE 0Dh, 0Ah, "Tax Program", 0Dh, 0Ah, 0 display01 BYTE 0Dh, 0Ah, "First name: ",0 display02 BYTE 0Dh, 0Ah, " Middle: ",0 display03 BYTE 0Dh, 0Ah, " Last name: ",0 display04 BYTE 0Dh, 0Ah, " Dependants: ",0 display05 BYTE 0Dh, 0Ah, " name: ",0 display07 BYTE 0Dh, 0Ah, "=Deductions= ",0 display08 BYTE 0Dh, 0Ah, " Standard $ 6200 ",0 display09 BYTE 0Dh, 0Ah, " Dependant $ ",0 display10 BYTE 0Dh, 0Ah, " Total $ ",0

holdStr1 BYTE 81 DUP(0) holdStr2 BYTE 81 DUP(0) holdStr3 BYTE 81 DUP(0)

holdDec DWORD 0 DUP(0) .code main PROC mov edx, OFFSET promptStr1 call WriteString mov edx, OFFSET holdStr1 mov ecx,SIZEOF holdStr1 call ReadString

mov edx, OFFSET promptStr2 call WriteString mov edx, OFFSET holdStr2 mov ecx,SIZEOF holdStr2 call ReadString mov edx, OFFSET promptStr3 call WriteString mov edx, OFFSET holdStr3 mov ecx,SIZEOF holdStr3 call ReadString mov edx, OFFSET promptDec call WriteString call ReadDec mov holdDec, eax

mov edx, OFFSET display00 call WriteString call Crlf mov edx, OFFSET display01 call WriteString mov edx, OFFSET holdStr1 call WriteString call Crlf mov edx, OFFSET display02 call WriteString mov edx, OFFSET holdStr2 call WriteString call Crlf mov edx, OFFSET display03 call WriteString mov edx, OFFSET holdStr3 call WriteString call Crlf mov edx, OFFSET display04 call WriteString mov eax, holdDec call WriteDec call Crlf mov edx, OFFSET display05 call WriteString mov edx, OFFSET holdStr1 call WriteString call Crlf mov edx, OFFSET display07 call WriteString call Crlf mov edx, OFFSET display08 call WriteString call Crlf mov edx, OFFSET display09 call WriteString mov eax, holdDec mov edx, dependantDeduction mul edx call WriteDec call Crlf mov edx, OFFSET display10 call WriteString mov ebx, dependantDeduction mov eax, holdDec mul ebx add eax, 6200 call WriteDec call Crlf call Crlf call Crlf call WaitMsg INVOKE ExitProcess, 0

main ENDP END main

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!