Answer:
1.
DIM myArray(10) as INTEGER
LET A = 0
FOR I = 1 TO 10 STEP 2
INPUT “INPUT NUMBER”; myArray(i)
LET A = A + myArray(i)
NEXT
PRINT A
END
2.
REM PROGRAM FOR CALCULATING THE SIMPLE INTEREST
CLS
INPUT “INPUT THE PRINCIPAL”; P
INPUT “INPUT THE TIME”; T
INPUT “INPUT THE RATE”;R
SI = P* T * R / 100
PRINT “SIMPLE INTEREST =”; SI
END
Explanation:
Please find the respective programs in the answer section.
Answer:
D. Change the def to def area (width, height = 12)
Explanation:
Required
Update the function to set height to 12 when height is not passed
To do this, we simply update the def function to:
def area (width, height = 12)
So:
In boxlarea = area (5,2), the area will be calculated as:
In box2area = area (6), where height is not passed, the area will be calculated as:
Depends
such as if the molecule in the water is hot then the molecules of the sugar would dissolve faster since the hot water speeds the process.
Cold water molecules would be slower since of course its slows down the reaction when sugar is applied.
Answer:
22.5
Explanation:
My weight = 100 pounds
Sister's weight = 150
Distance from fulcrum = 15 ft
Distance has an inverse proportion with weight
Distance = k/w
Where k is a constant
K = distance x weight
K = 100 x distance
150 x 15 = 100 distance
2250 = 100 distance
Divide through by 100 to get distance
2250/100 = distance
Distance = 22.5