Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

;;;;; Q1: Don't forget to document your program ; Name: ; Date: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;; ;;;;; Answer each question below by writing code at the APPROPRIATE

;;;;; Q1: Don't forget to document your program ; Name: ; Date: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;; ;;;;; Answer each question below by writing code at the APPROPRIATE places in the file ;;;;; Putting your answer immediately after the question is not necessarily the correct place ;;;;; Q7. Define a prompt that asks the user for a negative number ;;;;; Q8. Write code to print to screen the value of eax after SECS_PER_DAY is stored in eax (first line of code below) ;;;;; Use the string you defined in Q6 as the text explanation for your output ;;;;; Q9. Write code to prompt the user for a negative number, using the prompt string that you defined in Q7 ;;;;; Q10. Write code to read in the user input, which is guaranteed to be a negative number ;;;;; Q11. Write code to print "Output is " and then echo to screen the user input number ;;;;; Q12. Write code to print "Output is " and then print the first element of the array defined in Q5 ;;;;; The output should not contain a + or - sign ;;;;; Q13. Build, run, and debug your code ;;;;; Your output should be similar to this (without the commented explanation) ;;;;; Output is 86400 ; printing SECS_PER_DAY ;;;;; Enter a negative number: -2 ;;;;; Output is -2 ; echo user input number ;;;;; Output is 10 ; print first element of array ;;;;; Press any key to continue . . .

;;;;; Q14. At the end of the source file, without using semicolons (;), add a comment block ;;;;; to show how bigData appears in memory (should be the same 8 hexadecimal values as in lab 2), ;;;;; and explain why the data in memory looks different than the initialized value ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;; .data bigData QWORD 1234567890abcdefh; same bigData value as lab 2 .code main PROC mov eax, SECS_PER_DAY ; eax = HRS_PER_YEAR value exit main ENDP END main

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 Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

What is IUPAC system? Name organic compounds using IUPAC system.

Answered: 1 week ago

Question

What happens when carbonate and hydrogen react with carbonate?

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago