#include<iostream>int main () {
int age, female=0, male=0, fcount=0, mcount=0;
char sex;
for (int voter=0; voter<10; ++voter) {
std::cout << "Enter the voter's age and gender: ";
std::cin >> age >> sex;
switch (sex) {
case 'm':
case 'M': ++mcount; male += age; break;
case 'f':
case 'F': ++fcount; female += age; break;
}
}
std::cout << "Average male age: " << male / mcount << std::endl; std::cout << "Average female age: " << female / fcount << std::endl;
}
#include <iostream>
using namespace std;
int main()
{
int age[10], total;
cout << "Enter the age of 10 students: " << endl;
for(int i = 0; i < 10; i++)
{
cin >> age[i];
total += age[i];
}
cout << "The average age is: " << total / 10 << endl;
char wait;
cin >> wait;
return 0;
}
0.3456
no
400
400
Average voters.
Population
The question needs more detail.
to try out you have to be ages 16-28
President Warren Harding was the first American president to be elected with the support of female voters. The election was in 1920. Harding was the Republican representative in the presidential election for that term.
They tend to be more liberal than average on economic and cultural issues.
The smallest voting district in the US is called a precinct. Kansas had the smallest average precinct size with 437 voters per precinct. The District of Columbia had the largest average size at 2,704 voters per precinct.
the structure of grass roots is that it come from the soil and is born from the grass