how to get the arithmetic average on pascal
to find the average (a.k.a mean) of any set of numbers you add all of the numbers up, then divide by however many numbers there are. for ex: 2,7,5,9,4 1st step: 2+7+5+9+2= 25 2nd step: 25 divided by 5= 5 average equals=5
1. write a 'c' program to read 4(four)numbers from a file 'BANK' and calculate the average of the numbers.Now print the calculated average in another output file 'AVERAGE' 2. write a 'c' program that finds the sum and average of inputted five integer numbers of the array using dynamic memory allocation function malloc(). 3. write a 'c' program to create simple elements 1,2,3,4 in the link list of 4(four)nodes and display the list's elements. 4. write a 'c' program to convert the expression (A+B)/(C+D) into postfix expression into stack.and then evaluate it for A=10,B=20,C=15,D=5 and display the stack status after each operation. 5. write a 'c' programto create a linked list implemented on an array containing the following numbers:1,2,3,3,3,4,4,9 and pack it to remove the duplicate numbers.so that only the following data are contained by the nodes:1,2,3,4,9
N = x If y < N then N = Y If z < N then N = z Print N
/*mycfiles.wordpress.com To Calculate Sum & Average of 4 no.*/ #include<stdio.h> #include<conio.h> void main() { float a,b,c,d,sum,avg; clrscr(); printf("Enter the 4 nos.\n\n"); scanf("%f%f%f%f",&a,&b,&c,&d); sum=a+b+c+d; avg=(a+b+c+d)/4; printf("\nSum is= %f\nAverage is= %f",sum,avg); getch(); }
Algorithm to find the sum of first n natural numbers:1. Read n.2. Initialize N=1.3. Initialize sum S=0.4. Calculate S=S+N.5. Calculate N=N+1.6. If N>n, then goto step 7 else goto step 4.7. Write the sum S.8. Stop.
how to get the arithmetic average on pascal
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
How to write a program for mouse in microprocessor?
c is programming laungage
cn = c0 *( 1 + i ) pow n
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
You really don't want to do this in a shell script - scripting languages in Unix typically do not handle or work with floating values, only integers. A better way would be to write a program to do this that works under Unix, such as a 'C" program. See the related link for an example
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
to find the average (a.k.a mean) of any set of numbers you add all of the numbers up, then divide by however many numbers there are. for ex: 2,7,5,9,4 1st step: 2+7+5+9+2= 25 2nd step: 25 divided by 5= 5 average equals=5
A computer program can use a pre-programmed Algorith to calculate what you want it to calculate.
Write your program and if you are having a problem post it here with a description of the problem you are having. What you are asking is for someone to do your homework for you. no i am asking to verify my answer