Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
