Assignments 1. Write a BASIC program to calculate the product of three numbers 2. Write a program to calculate the area of a circle. (Area= πr2 ) 3. Write a program to calculate simple interest 4. Write a BASIC program to calculate the sum of two numbers 5. Write a BASIC program to find the average of 3 Numbers 6. Write a BASIC program to calculate the area of a triangle with base 7. Write a program to find the product of four numbers using the ‘LET’ statement 8. Write a program to calculate the average of five numbers using the ‘INPUT’ statement

Chemistry

ScanSolve AI Answer

Here is the BASIC program for question 1:

10 CLS
20 PRINT "PROGRAM TO CALCULATE THE PRODUCT OF THREE NUMBERS"
30 INPUT "Enter the first number: ", A
40 INPUT "Enter the second number: ", B
50 INPUT "Enter the third number: ", C
60 LET P = A * B * C
70 PRINT "The product of the three numbers is: "; P
80 END

Explanation:

  • CLS clears the screen.
  • PRINT displays text to the user.
  • INPUT prompts the user to enter a value, which is then stored in the specified variable (A, B, C).
  • LET P = A * B * C calculates the product of the three numbers and stores it in the variable P.
  • The final PRINT statement displays the calculated product.
  • END terminates the program.
Was this helpful?

Still stuck on this one?

Ask a follow-up, and the answer starts from this question.

Got a different question?Ask your own question