Toan Lam IrvineLiBrary assignment
docx
keyboard_arrow_up
School
Collin County Community College District *
*We aren’t endorsed by this school
Course
2325
Subject
Statistics
Date
Apr 3, 2024
Type
docx
Pages
3
Uploaded by SargentLapwing320
Name Toan Lam Date 03/03/2024
Course and Section: COSC-2325.902
Irvine Library Assignment
Question 1: Starting on Page 184: Complete Tutorial: Library Test #1 In this hands-on tutorial, you will write a program that demonstrates integer input–output with screen colors.
Take a screenshot of the output.
Program code:
INCLUDE C:\Irvine\Irvine32.inc
.data
COUNT = 4
BlueTextOnGray = blue + (lightGray * 16)
DefaultColor = lightGray + (black * 16)
arrayD SDWORD 12345678h,1A4B2000h,3434h,7AB9h
prompt BYTE "Enter a 32-bit signed integer: ",0
.code
main PROC
; Select blue text on a light gray background
mov eax,BlueTextOnGray
call SetTextColor
call Clrscr ; clear the screen
; Display an array using DumpMem.
mov esi,OFFSET arrayD ; starting OFFSET
mov ebx,TYPE arrayD ; doubleword = 4 bytes
mov ecx,LENGTHOF arrayD ; number of units in arrayD
call DumpMem ; display memory
; Ask the user to input a sequence of signed integers
call Crlf ; new line
mov ecx,COUNT
L1: mov edx,OFFSET prompt
call WriteString
call ReadInt ; input integer into EAX
call Crlf ; new line
; Display the integer in decimal, hexadecimal, and binary
call WriteInt ; display in signed decimal
call Crlf
call WriteHex ; display in hexadecimal
call Crlf
call WriteBin ; display in binary
call Crlf
call Crlf
Loop L1 ; repeat the loop
; Return the console window to default colors
Name Toan Lam Date 03/03/2024
Course and Section: COSC-2325.902
call WaitMsg ; "Press any key..."
mov eax,DefaultColor
call SetTextColor
call Clrscr
exit
main ENDP
END main
Screenshot of output screen
2. Starting on Page 188: Complete Tutorial: Library Test #2 Random Integers. This program demonstrates random-number-generation capabilities of the link library and introduces the CALL instruction.
Take a screenshot of the output.
Program code:
INCLUDE C:\Irvine\Irvine32.inc
TAB = 9 ; ASCII code for Tab
.code
main PROC
call Randomize ; init random generator
call Rand1
call Rand2
exit
main ENDP
Name Toan Lam Date 03/03/2024
Course and Section: COSC-2325.902
Rand1 PROC
; Generate ten pseudo-random integers.
mov ecx,10 ; loop 10 times
L1: call Random32 ; generate random int
call WriteDec ; write in unsigned decimal
mov al,TAB ; horizontal tab
call WriteChar ; write the tab
loop L1
call Crlf
ret
Rand1 ENDP
Rand2 PROC
; Generate ten pseudo-random integers from -50 to +49
mov ecx,10 ; loop 10 times
L1: mov eax,100 ; values 0-99
call RandomRange ; generate random int
sub eax,50 ; values -50 to +49
call WriteInt ; write signed decimal
mov al,TAB ; horizontal tab
call WriteChar ; write the tab
loop L1
call Crlf
ret
Rand2 ENDP
END main
Program 2 screenshot of output:
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Documents
Related Questions
Need ASAP
arrow_forward
You've heard of "Florida Man;" now meet "Florida Bear." This problem involves data from a
subspecies of black bear found in Florida, Ursus americanus floridanus. The data were collected by T. D.
Bartareau as part of a study published in the Journal of Fish and Wildlife Management (2017, vol 8, pp 234-
239). Before you begin consult the info sheet included at the end
(a) Do you predict an allometric or isometric scaling relationship between body weight and body length?
Explain.
(b) Based on your answer to part a, what would a plot of log body weight (vertical axis) versus log body length
(horizontal axis) look like?
(c) Using the data provided, create a plot of log body weight versus log body length. Make sure to label the
axes. Why might someone think your plot fails to provide clear support for your claim in part b?
(d) Using the tools described on the info sheet to isolate portions of the dataset, refine your use of data in part
c to strengthen support for your claim in b. Why does…
arrow_forward
alculate d for each patient by subtracting the number of hours of sleep with the drug from the number without the drug.
arrow_forward
Show calculation.
arrow_forward
Evaluate
arrow_forward
Firefox File Edit View History Bookmarks Tools Window Help
Inbox (5,792) - letrisse@gmail.coX
DeVry Student Portal
X
ALEKS - McGraw-Hill MATH114 X A ALEKS - Letrisse Willie - Learn X
b My Questions | bartleby
X
+
←
C
https://www-awu.aleks.com/alekscgi/x/lsl.exe/1o_u-IgNsIkasNW8D8A9PVVRJtL9rlRAKCL9pTenN5_beuku50p0AtmJfqFtHNh-OuPM5FuR-f0-iace
US Airport Codes ck Log in - Free Credit ...
translation
Blood Pressure Cha...
DeVry Student Portal
Inbox (5,375) - letri...
Ally
Home | UNIFY Finan...
YouTube
Home
US Airport Codes
RADICALS AND QUADRATIC EQUATIONS
=
Finding the vertex, intercepts, and axis of symmetry from the...
Use the n of the parabola to fill in the table.
-10 -8. -6 -4
2 4
·6
8 10
Explanation
www.
13
Y
Check
86
(a) Does the parabola open upward or downward?
Oupward
downward
(b) Find the intercept(s).
For both the x- and y-intercept(s), make sure
to do the following.
• If there is more than one, separate them
with commas.
• If there are none, select "None".
x-intercept(s):…
arrow_forward
Need help asap
arrow_forward
is there a place to put this in the calculator
arrow_forward
Simplify without a Calculator
logs
512
arrow_forward
wtor MathB
R Melissa Quizhpi - Zhagui - 4.142 X
aweb.kamihq.com/web/viewer.html?state %78'ids"%3A%58'1qYygnXY3DIMNQSYBww.JeAp0Cgpgl.rCZE"%5D%20'suthuser'xGA
Isonesd.org bookmarks
FAST- Student Test
A Classroom
K Play Kahootf-Ente.
Prodigy
G Culek Draw
OStudent Portel (Ho
O Students Hordon
Student Edum
Math 8 Melissa Quizhpi - Zhagui · 4 14.21 U2 Práctice.pdf
Parallel linesr and s are crossed by transversal line t and
create an angle that measures 117° as shown. Fill in the other
seven angles created with their measures.
117°
SAMSUN
5
6.
7
e
arrow_forward
Complement of 5pi/6
arrow_forward
domain
arrow_forward
#50
answer is A
arrow_forward
List the restrictions
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,
Related Questions
- Need ASAParrow_forwardYou've heard of "Florida Man;" now meet "Florida Bear." This problem involves data from a subspecies of black bear found in Florida, Ursus americanus floridanus. The data were collected by T. D. Bartareau as part of a study published in the Journal of Fish and Wildlife Management (2017, vol 8, pp 234- 239). Before you begin consult the info sheet included at the end (a) Do you predict an allometric or isometric scaling relationship between body weight and body length? Explain. (b) Based on your answer to part a, what would a plot of log body weight (vertical axis) versus log body length (horizontal axis) look like? (c) Using the data provided, create a plot of log body weight versus log body length. Make sure to label the axes. Why might someone think your plot fails to provide clear support for your claim in part b? (d) Using the tools described on the info sheet to isolate portions of the dataset, refine your use of data in part c to strengthen support for your claim in b. Why does…arrow_forwardalculate d for each patient by subtracting the number of hours of sleep with the drug from the number without the drug.arrow_forward
- Show calculation.arrow_forwardEvaluatearrow_forwardFirefox File Edit View History Bookmarks Tools Window Help Inbox (5,792) - letrisse@gmail.coX DeVry Student Portal X ALEKS - McGraw-Hill MATH114 X A ALEKS - Letrisse Willie - Learn X b My Questions | bartleby X + ← C https://www-awu.aleks.com/alekscgi/x/lsl.exe/1o_u-IgNsIkasNW8D8A9PVVRJtL9rlRAKCL9pTenN5_beuku50p0AtmJfqFtHNh-OuPM5FuR-f0-iace US Airport Codes ck Log in - Free Credit ... translation Blood Pressure Cha... DeVry Student Portal Inbox (5,375) - letri... Ally Home | UNIFY Finan... YouTube Home US Airport Codes RADICALS AND QUADRATIC EQUATIONS = Finding the vertex, intercepts, and axis of symmetry from the... Use the n of the parabola to fill in the table. -10 -8. -6 -4 2 4 ·6 8 10 Explanation www. 13 Y Check 86 (a) Does the parabola open upward or downward? Oupward downward (b) Find the intercept(s). For both the x- and y-intercept(s), make sure to do the following. • If there is more than one, separate them with commas. • If there are none, select "None". x-intercept(s):…arrow_forward
- wtor MathB R Melissa Quizhpi - Zhagui - 4.142 X aweb.kamihq.com/web/viewer.html?state %78'ids"%3A%58'1qYygnXY3DIMNQSYBww.JeAp0Cgpgl.rCZE"%5D%20'suthuser'xGA Isonesd.org bookmarks FAST- Student Test A Classroom K Play Kahootf-Ente. Prodigy G Culek Draw OStudent Portel (Ho O Students Hordon Student Edum Math 8 Melissa Quizhpi - Zhagui · 4 14.21 U2 Práctice.pdf Parallel linesr and s are crossed by transversal line t and create an angle that measures 117° as shown. Fill in the other seven angles created with their measures. 117° SAMSUN 5 6. 7 earrow_forwardComplement of 5pi/6arrow_forwarddomainarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Mathematics For Machine TechnologyAdvanced MathISBN:9781337798310Author:Peterson, John.Publisher:Cengage Learning,

Mathematics For Machine Technology
Advanced Math
ISBN:9781337798310
Author:Peterson, John.
Publisher:Cengage Learning,