Question: This assignment aims to assess your skills / knowledge on basics of String creation and various string handling functions. This is a scenario based practical

This assignment aims to assess your skills/knowledge on basics of String creation and various string handling functions. This is a scenario based practical assignment to create a text analysis tool, providing students with a hands-on opportunity to apply their programming skills in a real-world context. The assignment focuses on developing a program that performs various operations on text input, enhancing students' skills in handling strings, data analysis, and user interaction.
Scenario: You have been asked to create a text analysis tool that will perform various operations on a given text input. This tool will help users gain insights into the text data by performing character and word analysis.
Assignment Tasks:
1. User Input: Ask the user to input a paragraph or a lengthy text. Your program should read and store this input.
2. Character Count: Calculate and display the total number of characters in the input text.
3. Word Count: Calculate and display the total number of words in the input text. Assume that words are separated by spaces.
4. Most Common Character: Find and display the most common character in the text. In case of a tie, select any of the tied characters.
5. Character Frequency: Ask the user to input a character. Check and display the frequency of occurrences of this character in the text. Be case-insensitive (e.g.,'a' and 'A' should be considered the same character).
6. Word Frequency: Ask the user to input a word. Check and display the frequency of occurrences of this word in the text. Be case-insensitive.
7. Unique Words: Calculate a
You will be assessed based on the following criteria:
1. Compilation The code runs without any errors.
2. Input Validation This ensures that the user's input meets certain criteria or constraints before it is processed further.
3. Logic and Computation - This handles the core functionality and processing of the questions.
4. Program flow and structure - It encompasses the overall structure and behavior of the program.
5. Submission of code and screenshots of the output.
6. Code style and readability - Refers to the way the code is written, organized, and presented. It focuses on making the code clear, easy to understand, and maintainable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!