Question: 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:

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 label in different shapes for a display screen. o The program can print the text character by character in forward way. e.g. if the text is JUST UNIVERSITY then the following text will be printed out: J *U*S*T U*N*I*V*E*R*S*I*T*Y o The program can print the text character by character in backward way. e.g. if the text is JUST UNIVERSITY then the following text will be printed out: Y*T*I*S*R*E*V*I*N*U T*S*U*J o The program can print the text after shifting the first word to the end of the text. e.g. if the text is JUST UNIVERSITY then the following text will be printed out: UNIVERSITY JUST o The program can print the text by keeping the odd characters in their place and reverse the place of even characters: e.g. if the text is JUST UNIVERSITY then the following text will be printed out: J*T*S*S E*N*I*V*U*R*T*I*U*Y Programing Specifications: 1. Your are asked to develop a class named titleLabel with the members described in the following UML diagram: class titleLabel - title: string + titleLabel ( ) : + readTitle ( ): void + printForward ( ) const: void + printShifted ( ) const : void + printRevered ( ) const: void Assignment#2 A class constructor to initialize the title member to empty string. The readTitle function to input a text from the user and set it to title member. The printForward function that will print the characters in forward order. The printBackward function that will print the characters in backward order. The printShifted function to print the title member after shifting the first word to the end of the text. The printReverse function to print the title member after reversing the even characters. Important Notes: You are asked to implement the all the print functions using stack and queue 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

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!