Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using c++ In this assignment, you are supposed to process series of input strings and categorize the elements in them using all knowledge and skills

Using c++ image text in transcribed
image text in transcribed
In this assignment, you are supposed to process series of input strings and categorize the elements in them using all knowledge and skills you have learned already. The input strings have several elements (words, phrases and sentences) separated by e.g. "Hi,Nice 2 meet comma u, Nox in Nixon, to go" The elements in strings have four categories: 1. Single word: Like "algorithm' "lab" etc. No digit, no symbol or spaces. 2. Palindrome: A word, phrase or sentence that reads the same backward or forward, e.g. "No x in Nixon 3. Words/phrases/sentences with digits: Like Assignment4", Nice 2 meet u 4. Others: Phrases or sentences with no digit or are not palindrome. Use enumerated types to represent the four categories above, the four categories in enumerated types are: SINGLEWORD, PALINDROME, WITHDIGITS and OTHERS Define a class Strings (note it is not the string in C++) in individual and .cpp files (All variables should be private) l An enumerated type variable indicating the element's category 2. A string content storing the word or phrase 3. String content's size in terms of number of characters (spaces not included) 4. Necessary functions to set or get the variables Your program is supposed to accomplish the following

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transact SQL Cookbook Help For Database Programmers

Authors: Ales Spetic, Jonathan Gennick

1st Edition

1565927567, 978-1565927568

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago