Write a program that reads a string from the console and


1. Write a program that reads a string from the console and prints in alphabetical order all words from the input string and how many times each one of them occurs in the string.

2. Write a program that reads a string from the console and replaces every sequence of identical letters in it with a single letter (the repeating letter). Example: "aaaaabbbbbcdddeeeedssaa" à "abcdedsa".

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that reads a string from the console and
Reference No:- TGS02140672

Expected delivery within 24 Hours