Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment2: Stacks and Quenes Problem Description: You are asked to develop a Title Display Label program to print a given label to the screen in

image text in transcribed
Assignment2: Stacks and Quenes Problem Description: You are asked to develop a Title Display Label program to print a given label to the screen in different shapes according the following requirements . Your program will read a text from the user and print this lubel in different shapes for a display screen. The program can print the text character by character informed way cg if the text is JUST UNIVERSITY then the following set will be printed out J*U*ST U*N*T*V*E*R*S*I*T*Y The program can print the text character by character in backward way .gif the text is JUST UNIVERSITY then the following text will be printed out: Y'T*I*S*R*E*V*T*N*U T'S*U*) The program can print the text after shifting the first word to the cod of the text . c.g. if the text is JUST UNIVERSITY then the following text will be printed out UNIVERSITY JUST The program can print the text by keeping the odd characters in the place and reverse the place of even characters . eg if the text is JUST UNIVERSITY then the following text will be printed out J*T**s E*N*T*V*U*R*T*T*U*Y Programing Specifications: 1. Your are asked to develop a class named titelabel with the members described in the following UML diagram class titlelabel -title: string titleLabel(): read Title void printForward() const void printShifted const:void printRevered) const void Assignment2 A class constructor to initialize the title member to empty string The ad Title function to input a text from the wind set it tottle member The printForward function that will print the characters in forward onder The printBackward function that will print the characters in backward order The pointShifted function to print the title member after shifting the first and to the end of the text The printReverse function to print the title memher after reversing the even character Important Notes: You are asked to implement the all the print functions using stack and quae objects only, any other structures are not allowed String operations are not allowed You will read characters from the title string into stack or queue objects and do the required operation (Hint: Declare stack and queue structures defined in C++ STL)

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

Students also viewed these Databases questions