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.
<br> or <br/>
The forward slash can be omitted and still function perfectly fine, unless you are working with XHTML (XML), then do include the forward slash.
It's your personal preference on which one you use, but be consistent! I personally prefer the latter.
Some programs that we have used that have condition-controlled loops and count-controlled loops due to the following reasons.
Explanation:
Condition-controlled loops
A program could be made more intelligent by programming it to avoid hazards. For example, if the robot vehicle is 3 cm from the edge of the table and you tell it to move forwards 5 cm, it will drive off the edge of the table. To stop this from happening, you might write a condition-controlled loop like this:
move forward
repeat until (touching table edge)
Condition-controlled loops can be used to add a high degree of intelligence to a computer system.
Count Controlled Loops
A count controlled loop is a repetition structure that iterates a specific number of times
You can write a count controlled loop using a
while() loop.
For example:
counter = 0
while counter < 5:
print (“This will print 5
times”)
counter += 1
Answer:
On a spreadsheet application including MS Excel;
He can select the image and hold down the <em>rotation</em> handle above it while sliding the mouse
Explanation:
Manual rotation of a picture or a text box can be performed by selecting the image or text box in MS Word or a spreadsheet application such as MS Excel. With the mouse select the rotation handle of the picture and drag in the direction desired, left or right.
So as to limit the rotation to 15 degrees hold down the shift button while dragging the rotation handle by clicking on it with a mouse and dragging in the desired direction