Saturday 5 March 2022

Practical No.5: Write a program to compute the total and average of six numbers.

ACTIVITY 5

Practical No.5:
Write a program to compute the total and average of six numbers.





OR

By Sir Sajjad Akber Chandio




VIVA VOCE

ACTIVITY 5

Q.1: What is the object of this program?
Ans: Object of this program is to calculate total and average of given numbers.

Q.2: What is the formula to calculate an average?
Ans: Total of the numbers divided by the total number of values in the set.

Q.3: Which operator is used to calculate total?
Ans: Addition operator is used to calculate total.

Q.4: What are binary operators?
Ans: Those operators that are used to performs operation on two operands are known as binary operators.



1 comment:

  1. i dont like this bcz this is not good bcz i dont like this

    ReplyDelete