answersLogoWhite

0

You can't find the average of two totally different values, but this is as close as I got to your request. Average is the same as the mean. Add them all together and divide them by how many there are.

Example:

Students using c: 25

students not using c: 30

(students using c)÷(Students using + Students not using) = average

25÷55= 0.45

See how it doesn't work?

*Note, the following language is in c++ because it was categorized under c++*

--------------------------------------

#include <iostream>

using namespace std;

int main()

{

double n, x, t, a; // n= using x= not using t= total a= Average

cout << "Students using C Programming: ";

cin >> n;

cout << "Students not using C programming: ";

cin >> x;

t = n + x;

a= n / t;

cout << a;

return 0;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Can program development be done by a program?

Yes and no, program development works in programming codes which are specifically made for humans to be entered, a program can write these programming codes too. The thing is, you would need to write the programming codes yourself before the program can use it in program development. If a program could invent the wheel, then you still need to invent that wheel before the program can. Or atleast until the thinking of the human brain can be translated into mere programming code.


Write a program to find the grade obtained by the students of a class using structure?

Write a program to find the grade obtained by the students of a class


What is the program that allows the user to write applications software?

programming language paradigm


Programming process of c language?

Write the source program. Compile. Link executable. Run it.


What are the individual instructions that you use to write a program in a high-level programming language called?

Statements.


First step you should take when creating a program?

The first step you should take when creating a program is to write an algorithm for it. An algorithm is a programming tool that offers a step by step solution to a programming problem.


How do you write a program in visual foxpro?

Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.


Can you write a program in DBMS like C?

DBMS means Data Base Management System, it is not a programming language.


How do you write a C Program to fill up an Integer Array?

Reference:cprogramming-bd.com/c_page1.aspx# array programming


In 89S51 what s means 89c51 what c means?

c in 89c51 stands for cmos.. s in 89s51 stands for system programming system programming is way of burning your program into microcontroller chip... just like we write a program in c language and then burn it into microcontroller.this in system programming is another way of burning your program into microcontroller....


Which language is used to write a source program in computer?

There are so many programming languages that it is impossible to tell without actually seeing the source program in question.


Could you Write a program for 8086 microprocessor that displays on the monitor the average of 2 numbers from an array?

How to write a program for mouse in microprocessor?