Answer:
The program in QBasic is as follows;
PRINT "Number: "
INPUT N
LET FACT = 1
FOR I = 1 TO N
FACT = FACT * I
NEXT I
PRINT FACT
END
Explanation:
This prompts user for number
PRINT "Number: "
This accepts input from the user
INPUT N
This initializes the factorial to 1
LET FACT = 1
This iterates through the number the user inputs and calculates its factorial
<em>FOR I = 1 TO N
</em>
<em> FACT = FACT * I
</em>
<em>NEXT I
</em>
This prints the factorial
PRINT FACT
The program ends here
END
The answer is FPS (frames per second)
Hope this helps!
- Juju
More gravitational force is exerted on object B since it has higher mass. Force and mass are directly proportional so when mass is higher then the force is larger. However, when the mass is small, then the force is well small. From the statement above, object A has a mass of 25 grams which is smaller with object B with a mass of 50 grams.