Frequency

Write a program that asks the user to input a string, and then asks the user to input a character. The program should count and display the number of times that the specified character appears in the string.The program should then ask the user if they want to run the program one more time. As long as the user answers with either ‘y’ or ‘Y’, your program will go back to the beginning and prompt the user for integer numbers.

Sorting

Second part : sorting : Write a program that prompts the user to enter three integer numbers into variables a, b, and c. After that, the program sorts entered numbers so that the smallest number is in variable a, the middle number is in variable b, and the largest number is in variable c. After that, the program asks the user if he or she would like to start another round of sorting. As long as the user answers ‘Y’ or ‘y’, the program will continue to ask for the three numbers and to sort the numbers in ascending order.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.