Cellular phones have had a major impact on our lives and the way that we perform every day tasks. Many of these changes are apparent, while others we may not even be aware of.
Cell phones have brought a whole new meaning to the term multitasking. Twenty years ago, it was not possible to talk to the office while you were at the grocery store picking up some necessary items. You could never have had a three-way business conference while you were fixing dinner or been able to deal with a business client from home while caring for a sick child.
try:
num = int(input("Enter a number: "))
print(12*num)
except ValueError:
print("Please enter a number!")
I wrote my code in python 3.8
Answer:
The BASIC program is as follows:
SUM = 0
FOR I = 1 TO 20
INPUT SCORES
SUM = SUM + SCORES
NEXT I
AVERAGE = SUM/20
PRINT AVERAGE
Explanation:
This initializes sum to 0
SUM = 0
This iterates through 20
FOR I = 1 TO 20
This reads each score
INPUT SCORES
This calculates the total scores
SUM = SUM + SCORES
NEXT I
This calculates the average
AVERAGE = SUM/20
This prints the calculated average
PRINT AVERAGE