Develop the program, through the use of signatures, definitions and function calls, which reads from the keyboard a line of characters character-by-character ending with '\n' (end-of-line) and writes on the terminal a graphic of horizontal asterisk bars with the occurrences of the read vowels, with the following presentation:
Code:
typedef int Vowel[5];
/**
* Reads a string of characters from the keyboard and fills array v with
* the occurrence of each vowel. Index 0 is A, index 1 is E, ..o
* index 4 is U
*/
void getVowels( Vowel v );
/**
* returns the largest value contained in array v of occurrence of each
* vowel
*/
int majorOcurrence( Vowel v );
/**
* draws the graph with the presentation suggested in the figure.
*/
graphic void( Vowel v );
int main( void ){
Vowel v={0,0,0,0,0};
readVowels( v );
graphic(v); //this function calls the greatestOcurrence(Vowel v):
return 0;
}
I have little to no experience building graphs and my teacher doesn't really gives a intel on what to do. We use the pg/pglib.h to make graphs another think He didnt enter in detail on how to do like how can I write the letters bellow the graph? How to make the graph? my questions are mostly graph related.
Can you please help me?