Question: Write a program with a function adder (number1, number2) that takes two integers as parameters. The function must sum the numbers and return the
Write a program with a function adder (number1, number2) that takes two integers as parameters. The function must sum the numbers and return the result. Call the function twice with arguments of your choice and print the results with an appropriate text. 2. Then ask the user to enter a text string, and then a letter. The program should then, using a loop, print out how many times the given letter occurs in the given text string. You should not consider uppercase and lowercase letters to be the same (for example, it would mean that there are 0 occurrences of "E" in the word "hey"). 3. Write a function countOccurrence (minText, minLetter). The function should count how many times a letter minLetter occurs in the text minText, and return this number. Then rewrite the lines of code from point 2 to use this function, but make sure that the program appears exactly the same to the user when it is run. Deliver the program as it looks after you have made this change (so you do not need to deliver two versions of the program).
Step by Step Solution
3.54 Rating (151 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
