Ask a New Question

Asked by bill

write a program that will calculate the average of the total marks scored by 10 students, if each student has done 4 exams.
6 years ago

Answers

Answered by Steve
int scores[10,4],sum,s,i
real avg
sum=0
for s=1..10
print "Enter the 4 scores for student #",s,": "
read scores[s,i] for i=1..4
for i=1..4 sum += scores[s,i]
next s
avg = sum/40
6 years ago

Related Questions

I have to write program for a dice game and use a boolean variable in the application class of the d... Write an application that calculates the value of e^x by using the following formula:e^x=1+(x/1!)+(x... Write a program that allows the user to display a budget as a pie chart. After the user enters num... Write a top down program to calculate the velocity and the height of a ball of mass m thrown at mars... Write the program that will calculate and display the career statistics for a hockey player. The pro... How do I write a program with three inputs rectangle heights, width, and number of rectangles write a program C++ program and Use a recursive function that finds the n-th term using the followin... 4.Write a program that will predict the size of a population of organisms. The program should ask fo... I have to write a program in java that prompts and reads the size of a table (assume the table is ma... Write down the formula to calculate the distance he runs in n-th week
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use