Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code by c++,don't use function string,just class,stack and queue CS211 Data Structures and Algorithms First Semester 2020-2021 Assignment#2: Stacks and Queues Problem Description: You are

image text in transcribedcode by c++,don't use function string,just class,stack and queue
image text in transcribed
image text in transcribed
CS211 Data Structures and Algorithms First Semester 2020-2021 Assignment#2: Stacks and Queues 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 label in different shapes for a display screen. The program can print the text character by character in forward way. eg. if the text is JUST UNIVERSITY then the following text will be printed out: J*U*S*T U*N*T*V*E*R*S*I*T*Y The program can print the text character by character in backward way. . c.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* 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 The program can print the text by keeping the odd characters in their 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'S E*N*I*V*U*R*T*T*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 Assignment2 Assignment 2: Stacks and Queues Problem Description: You are asked to develop a Tile Teplay Label program na preinta given label to the terms in different per according the following You program will roads to the cand prints labelle different shapes for display screen The program can print the next character by character infowe way. . epiftic leat JUST UNIVERSITY then the following test will be printed out 1 U'ST UNIVERSITY The pratican printed chancer by charact in backward way, . eg if the rest is JUST UNIVERSITY then the following trut will be printed ca YT0" The program can print the after shifting the firward to the mother .ex. the Best JUST UNIVERSITY then the following test will be printed out UNIVERSITY JUST The program can print the typing the chances in the place the place of even curaten Sif the Best JUST UNIVERSITY then the following seat will be printed out J'T""S EN TV*U*R*T*T*U*Y Programing Specifications 1. Your are asked to develop a class named itelabel with the memben described in the following UML diagram clans titelabel titleLabel(); rodide void wwwcost od pribed cost void prevered) Aclan constance to the title member to empley ring The road Title function to input from the war and set it to titleme The primoranduct that will print the characters in forward order The pritiska function that will print the character is backward ceder The printShifted function to print the title member after shifting the flestward the end of the The printReverse function to print the titlementer after revening the oven chancen Important Notes: You are asked to implement the all the perfunctioning stack and queenly, the ructus antalled String operations towel . You will real characters from the littering into ack or que en and helpen . (Hint: Declare stack and quuenectures defined in C Sm.) Submission Notes Latements will NOT be praded Once finished.compress your code and upload it into your dating account Your awet must compile in under he graded The CPP file should use your name, ID. Section and a hot description about the project Commerd be written all over the program Cheating in metallowed will be graded to Due Due to be done using sem 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 print Reverse 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) Submission Notes: Late assignments will NOT be graded. Once finished, compress your code and upload it into your elearning account. Your assignment must compile in order to be graded. The CPP file should have your name, ID, Section, and a short description about the project Comment should be written all over the program. Cheating is not allowed (will be graded to 0). Due Date: to be announced on e-learning system

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

Which form of proof do you find least persuasive? Why?

Answered: 1 week ago