write c++ program that read a positive integer number x from keyboard and read a number of alphabet characters equals to (x) from keyboard . after that check an count the number of vowels alphabet and the number of non-vowel alphabet characters?
Wouldn't you think he would learn a tiny bit more when he writes the progarm himself?
A) He can't use this, because it would be rather clear to whomever is grading it that he didn't generate it.
B) It doesn't actually work.
C) He doesn't have the technical savvy to debug it.
So as I see it, if he tries to debug it, he exposes himself to language elements he hasn't encountered yet which I'll take as a win, and if he doesn't - nothing lost.
If he actually turns it in as-is I suppose he'll probably get what he deserves. ;)
write c++ program that read a positive integer number x from keyboard
1 2 3
int counter = 0;
cout << "Enter number of characters: ";
cin >> counter;
Once you know how many characters the program will get you can use a loop for the input.
read a number of alphabet characters equals to (x) from keyboard
1 2 3 4 5 6 7 8
char ch;
for (int i=0; i < counter; i++)
{
cout << " \nEnter character #" << i << " ";
cin >> ch;
class="quote">
class="qd"> count the number of vowels alphabet and the number of non-vowel alphabet characters
// process your character
}
and read a number of alphabet characters equals to (x) from keyboard . after that check an count the number of vowels alphabet and the number of non-vowel alphabet characters?