Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Provide C + + main.cpp Instuctions: Write a program that reads a line of text, changes each uppercase letter to lowercase, and places each letter
Provide C main.cpp
Instuctions: Write a program that reads a line of text, changes each uppercase letter to lowercase, and places each letter both in a queue and onto a stack.
The program should then verify whether the line of text is a palindrome a set of letters or numbers that is the same whether read forward or backward
If the input text is a palindrome, the program should print The line of text you entered is a palindrome.
If the input text is not a palindrome, the program should print The line of text you entered is not a palindrome.
I have four files myStack.h queueADT.h queueAsArray.h and stackADT.h I dont think they are necessary but I will add queueADT.h and stackADT.h for better information.
queueADT.h:
#ifndef HqueueADT
#define HqueueADT
template
class queueADT
public:
virtual bool isEmptyQueue const ;
virtual bool isFullQueue const ;
virtual void initializeQueue;
virtual Type front const ;
virtual Type back const ;
virtual void addQueueconst Type& queueElement;
virtual void deleteQueue;
;
#endif
stackADT.h
#ifndef HStackADT
#define HStackADT
template
class stackADT
public:
virtual void initializeStack;
virtual bool isEmptyStack const ;
virtual bool isFullStack const ;
virtual void pushconst Type& newItem;
virtual Type top const ;
virtual void pop;
;
#endif
I need help making a main.cpp for the four files. Take your time and make sure its runnable.
I am missing types stacktype and queuetype and methods addqueue and deletequeue in my original main.cpp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started