Answer:
second_int = "Enter the second integer: "
usernum = int(input("Enter the first integer: "))
x = int(input(second_int))
usernum = usernum // x
print(usernum, end= ' ')
usernum = usernum // x
print(usernum, end= ' ')
usernum = usernum // x
print(usernum, end= ' ')
usernum = usernum // x
print(usernum)
Explanation:
im good
Its 10, value always has to be positive.
Answer:
oid changeCase (char char_array[], int array_size ) {
__asm{
mov eax, char_array;
mov edi, 0;
readArray:
cmp edi, array_size;
jge exit;
mov ebx, edi;
shl ebx, 2;
mov cl, [eax + ebx];
check:
//working on it
cmp cl, 0x41;
jl next_indx;
cmp cl, 0x7A;
jg next_indx;
cmp cl, 'a';
jl convert_down;
jge convert_up;
convert_down:
or cl, 0x20; //make it lowercase
jmp write;
convert_up:
and cl, 0x20;
jmp write;
write:
mov byte ptr [eax + ebx], cl
next_indx:
inc edi;
exit:
cmp edi, array_size;
jl readArray;
mov char_array, eax;
}
}
Explanation:
- Move char_array to eax as it is base image
.
- Use ebx as offset
.
- Use ecx as the storage register
.
- check if cl is <= than ASCII value 65 (A)
.
Answer:
1010 0111 1101 1111
Explanation:
A = 10 in decimal = 1010 in binary
7 = 7 in decimal = 0111 in binary
D = 13 in decimal = 1101 in binary
F = 15 in decimal = 1111 in binary
Therefore 0xA7DF = 1010 0111 1101 1111 in binary
Explanation:
Hardware is useless without software because the machinery will not and cannot do anything without programming to tell it what to do. Without an operating system, the computer can't do anything. Without other software, like Microsoft Office, you can't type anything or listen to music or watch video or anything