Engineering, 28.01.2020 01:31 codycollier
Select the pseudo-code that most closely corresponds to the following assembly code. assume that the variables a, b, c, and d are initialized elsewhere in the program.
.data
; general purpose variables
a dword ?
b dword ?
c byte ?
d byte ?
upperlevel dword 18
lowerlevel dword 3
; strings
yes byte "yes",0
no byte "no",0
maybe byte "maybe",0
.code
main proc
mov eax, 0
mov ebx, a
startloop:
cmp eax, ebx
jge endofprogram
mov edx, offset no
call writestring
inc eax
jmp startloop
mov edx, offset maybe
call writestring
endofprogram:
exit
main endp
end main
while (a < 18)
print (no);
else
print (maybe);
if (a < b)
print (no);
else
print (maybe);
for (k = 0; k < a; k++)
print (no);
while (a > 0)
print (no);
Answers: 3
Engineering, 03.07.2019 15:10
Two flowing streams of argon gas are adiabatically mixed to form a single flow/stream. one stream is 1.5 kg/s at 400 kpa and 200 c while the second stream is 2kg/s at 500 kpa and 100 ? . it is stated that the exit state of the mixed single flow of argon gas is 150 c and 300 kpa. assuming there is no work output or input during the mixing process, does this process violate either the first or the second law or both? explain and state all your assumptions.
Answers: 1
Engineering, 04.07.2019 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
Engineering, 04.07.2019 18:10
Which of the following controllers anticipates the future from the slope of errors over time? a)-proportional b)-on/off c)-integral d)-derivative.
Answers: 2
Engineering, 04.07.2019 18:20
Air is compressed isentropically from an initial state of 300 k and 101 kpa to a final temperature of 1000 k. determine the final pressure using the following approaches: (a) approximate analysis (using properties at the average temperature) (b) exact analysis
Answers: 1
Select the pseudo-code that most closely corresponds to the following assembly code. assume that the...
Biology, 23.02.2021 07:40
English, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
Physics, 23.02.2021 07:40
Computers and Technology, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
Biology, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
French, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
World Languages, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
Mathematics, 23.02.2021 07:40
Computers and Technology, 23.02.2021 07:40