answersLogoWhite

0


Best Answer

#include <stdio.h>

#include<iostream.h>

#include<conio.h>

#include<windows.h>

int main()

{

int q1, q2, q3, ave;

printf ("Enter 1st quiz: ");

scanf ("%d", &q1);

printf ("Enter 2nd quiz: ");

scanf ("%d", &q2);

printf ("Enter 3rd quiz: ");

scanf ("%d", &q3);

ave=(q1+q2+q3/3);

printf ("Average quiz is %d", ave);

getch() ;

}

User Avatar

Wiki User

10y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Given the three numbers you would need to:

Count the frequency of the numbers so that you can then give the mode average;

Followed by sorting them into order so that you can give the median average;

And adding them and dividing by 3 to give the mean average - for this last one I would recommend that you use float (or double) to store and process your numbers and print to a reasonable number of decimal places, unless you are intending to display the results using rationals, in which case structures using ints may be useful.

As you can see, from this last average calculation, you will need to define your input range for the numbers as there is limited storage in an int.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

The specific code will depends upon the inputs from the quizzes. Also, are you to calculate the score of each quiz, or averages of other factors?

Once you have that decided, calculating the average of any number of input values is basic arithmetic. Add all of the values together, and divide by the number of values.

So if you had three quizzes and had to calculate the average score of all three quizzes, the expression would be:

(score1+score2+score3)/3

Keep in mind that if you want floating point precision (i.e. decimal points), a float or (unlikely) a double would be your best choice in type. Otherwise, a regular integer type would do nicely: if your scores are 100% or lower, for instance, a char type (signed or unsigned doesn't matter) would do nicely.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program to compute the average of 3 input quizzes then display the result?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

If you have a c in a class but got an A on a quiz then what's your final grade?

Your final grade would depend on how the teacher grades. For example, how many points is the quiz? How many points are possible for the semester? What are the weights for homework, quizzes, essays, and projects? The information you provide is not sufficient enough to answer the question. Your best bet would be to ask the teacher him/herself.


What is meant by E learning?

Creating and commercialism online courses may be a moneymaking business. However, success typically depends on the LMS software package (Learning Management System) that you use. A top-quality LMS resolution can change you to style fascinating and varied courses that will interact with your students and keep them returning for many. Ease of Use – a top-quality LMS software package ought to incorporate an associate degree intuitive interface for users and directors and an easy course creation method. Luckily, most tools provide some free trial or money-back guarantee. Therefore you'll take a look at our however you wish the interface before committing. Course options – you wish your courses to be partaking and charm to all or any forms of learners. Therefore, the LMS software package ought to embody a large assortment of fact and lesson sorts, together with quizzes and tests, the choice of adding multimedia system, discussion forums, certificates, and more. A top-class LMS platform ought to provide varied monetization choices to change you to grow your business and revenue. Seek options like multiple payment gateways, sales pages, occurrence payments and subscription choices, coupons, and more.


How do you make quiz master in c plus plus programm?

Assuming the quiz is a simple question/answer style quiz, use a map to associate question strings with answer strings. In order to prevent people from simply examining the program resources to get the answers, you should also consider encrypting the map. For multiple choice quizzes, use a structure containing the question string, a vector of strings for the possible answers and an unsigned integer to identify the correct answer (as an index into the vector).


Related questions

Quizes or quizzes?

Quizzes.


What is the purpose of quizzes?

some quizzes are for fun and most quizzes are to find out other things about urself..personality quizzes,ect.


After taking 6 quizzes you average 72 out of 100 What must your average be on the next 5 quizzes to increase your average to 77?

Target over 11 is 11 x 77 ie 847; you have already scored 6 x 72 , ie 432 so you need 415 over the next 5, which is an average of 83.


Are there free samples of scholastic reading counts quizzes?

Scholastic Reading Counts quizzes are typically only available through a school or library subscription. You can check with your school or local library to see if they offer access to the program. Unfortunately, free samples of the quizzes may not be readily available online.


Brandon scores four 92's three 88's and a 96 on his eight quizzes what is his average?

91. The sum of all scores is 728, and then dividing by 8, the total number of quizzes, the quotient is the answer.


Does this site have any quizzes?

yes it does have quizzes.


How do you edit quizzes on fun140?

You click on quizzes. Then go to the right and you should see "Trending Top. Recent. My Quizzes". Click on My Quizzes and then you can look next to your quiz(zes) and click disable or edit.


Where are the quizzes to answer Tired of advertisements.?

There are no quizzes on this website. WikiAnswers is a question and answer site.


How do you use quizzes in a sentence?

A police inspector quizzes suspects as part of his duties.


Why is doing quizzes good for your brain?

It is because doing quizzes will train your brain.


The correct way to say Shanda made a perfect score on her quizzes?

Quizzes


If someones average for their first four quizzes is 88 and he wants to have an average of 90 what score can he receive on his fifth quiz?

You would need at least a 96 on the 5th quiz to have a 90