Page 1 of 1

Section D: Design and Coding [31 marks) 10. Write a function Frequencyofvowels that takes a string as input and displays

Posted: Fri Apr 29, 2022 6:37 am
by answerhappygod
Section D Design And Coding 31 Marks 10 Write A Function Frequencyofvowels That Takes A String As Input And Displays 1
Section D Design And Coding 31 Marks 10 Write A Function Frequencyofvowels That Takes A String As Input And Displays 1 (98.93 KiB) Viewed 35 times
Section D: Design and Coding [31 marks) 10. Write a function Frequencyofvowels that takes a string as input and displays the frequency of each vowel ('a','e','1','0','u'). For example, FrequencyOfVowels("Together we will get there") should display There are: • 5-e • 1-i • 1-0 in the string "Together we will get there" [12] 11. A firm employs a group of fifty (50) salesmen [with ID numbers represented with 5 characters, ages (integer), and sales] who are paid commission on that portion of their sales in Rand value) which exceeds the four-fifths of the average sales of the group. (a) Give the data structure to represent the sales of all members of the group. [5] (b) Write a function that reads the sales value of each salesman and prints on the screen the ID number and the sales of those who qualify for commission. [14]