C(4)
Write a function that takes two parameters (a string of no more than 50 characters and a letter the user inputs), then returns the count of how many times user input character is in the string. If the letter is not found, the function returns -1. Example "Hello",' f' returns -1.
Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character.
7 years ago 5
Answer(1)
Purchase the answer to view it
- CharacterCount.zip
other Questions(10)
- FIN 100 Writing Assignment
- article
- NO PLAGIARISM PLEASE, DUE TUESDAY 12/13 BY 10:00pm, PAYING $15.00
- Void assignment Post new one
- Java
- BPM and Global Competitiveness - Discussion
- Field Experience D: Major Health Impairments or Infectious Diseases Interview
- Economics-Saving Social Security
- Assignment Help II
- Macroeconomics