Question: Please add on to provided code: Write a program that reads a line of text, changes each uppercase letter to lowercase, and places each letter

Please add on to provided code:

Write a program that reads a line of text, changes each uppercase letter to lowercase, and places each letter both in a queue and into 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). You use templates stack, queue , functions from them, string::length() function, also use getline_portable() function for Eclipse instead of getline(). Function getline_portable() is provided. You give option to user ignore or not ignore spaces in the line of text.

pastebin of code: https://pastebin.com/PTrGYu2e

What I have so far (can only read one line of text) pastebin: https://pastebin.com/0NUX0jJ0

Please add on to provided code: Write a program that reads a

Input textfile:

line of text, changes each uppercase letter to lowercase, and places each

Output:

letter both in a queue and into a stack. The program should

int main() ifstream fin; ofstream fout; string fileNameI,fileNameo; const string endofData-"e nd"; cout>fileNameI>>fileName0; fin.open(fileNameI.c_str()); fout.open(fileNameo.c_str)); stack q; charci string str; string ignoreSpaces; getline_portable(fin,ignoreSpaces); cout

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!