Answer:
1. Input array of 100 numbers
mx = 0
for (int i = 0; i < 100; i++)
if (arr[i] > mx)
mx = arr[i]
Output mx
2. Input array of 100 numbers
mx = 0
for (int i = 0; i < 100; i++)
if (arr[i] > mx)
mx = arr[i]
mx = mx * 0.9
3. Input three numbers
if(firstNumber > secondNumber) {
swap(firstNumber, secondNumber)
}
if (firstNumber > thirdNumber) {
swap(firstNumber, thirdNumber)
}
if (secondNumber > thirdNumber) {
swap(secondNumber, thirdNumber)
}
output firstNumber, secondNumber, thirdNumber
Explanation:
Answer:
Following is the loop statement in the Python programming language
salaries=[93.85967,4232.32,13343.3434] #storing the values in salaries
for k in salaries:#iterating the loop
print("%12f"%round(k,2))# print the width of 12 and a precision of 2
Output:
93.860000
4232.320000
13343.340000
Explanation:
Following is the description of the statement
- Declared a dictionary "salaries" and initialized some values into it.
- iterating the for a loop .
- In this for loop print the width 12 and a precision of 2 .The print statement in python will
- print the data with width 12 and a precision of 2 in the console window
Answer:
RAX = 333000h (16 bits with preceding zeros removed)
RDX = 20h (also 16 bits with preceding zeros removed)
Explanation:
The "div" opcode in the assembly language source code is used to divide operands. It accepts a divisor ( the denominator) and divides the content of the AX register. The result is saved in the AX register while the remainder (if any) is saved in the DX register. If the DX register holds any data, the data is replaced with the divisor remnant.
The code above divides the content of the RAX register with the divisor variable and saves the result and remainder in the RAX and RDX respectively.
Answer:
A.
Explanation:
Based on the information provided within the question it can be said that in this scenario, Jupiter's best move would be to adopt the measure of ensuring that customers find its software simpler and more convenient to use than that of Coral. This would create satisfaction among the customers which in term would lead to customer loyalty.