Answer:
It allows the designer to focus on main logic without being distracted by programming languages syntax.
* Since it is language independent, it can be translated to any computer language code.
* It allows designer to express logic in plain natural language.
* It is easier to write actual code using pseudocode.
* Unlike algorithms, pseudocodes are concise so pseudocodes are more readable and easier to modify.
Explanation:
Answer:
Description: Write a MASM 32bit program with a loop and indexed addressing that calculates the sum of all thegaps between successive array elements. The array elements are doublewords, sequenced in nondecreasing order.
;Include Irvine32.inc file used with link library for 32 bit applications
.386
.model flat,stdcall
.stack 4096
ExitProcess proto,dwExitCode:dword
INCLUDE Irvine32.inc
.data
myArray DWORD 0,2,5,9,10
arrSize = ($-myArray)/TYPE myArray
gapArr DWORD arrSize-1 DUP(?)
sum DWORD ?
.code
main PROC
;Call the procedure
call Clrscr
;Initialize ESI pointer
mov esi, 0
mov ecx, arrSize
dec ecx
L1:
mov eax, myArray[esi+4]
sub eax, myArray[esi]
mov gapArr[esi], eax
inc esi
loop L1
;Calculate the sum of gaps between array elements
mov sum, 0
mov esi, 0
mov ecx, arrSize
dec ecx
; move gapArr[esi] to a temporary register and then add that register value to sum
L2:
mov edx, gapArr[esi]
add sum, edx
inc esi
loop L2
INVOKE ExitProcess,0
main ENDP
END main
Explanation:
Answer:
$2.40
Explanation:
the unit electricity bill is kilo watt hour.
The 60-watt light bulb has a 400 hour life expectency means it will consume
60×400/1000 = 24 KWh units of electricity. Let us suppose each unit of electricity costs is 10 cents.
Then 24×10 = 240 cents = $2.40
have you tried www.khanacademy.org
Answer:
1. C) Embedded Style
2. C) User Agent Style
Explanation:
1. Alex will use Embedded style to create styles that apply only to the HTML document that the style was created. With Embedded styling; the rules can be embedded into the HTML document using the <style> element.
2. Since Alex has forgotten to give any style for all of his pages, the style that will be applied to his pages is User Agent Style. User Agent Style is the default style of a browser. The browser has a basic style sheet that gives a default style to any document and this style is called User Agent.