Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user to type in a sequence of at most 200 characters, then push the Enter key This sequence can

image text in transcribed

Write a program that asks the user to type in a sequence of at most 200 characters, then push the Enter key This sequence can include blank space as well as tabs Your main program will read the sequence of characters from the keyboard into an array, and then call three different subroutines to remove all of the letter 'e's, blank spaces and tabs, reverse the order of the remaining characters and print the resulting sequence out to the screen. If the user enters e.g. the phrase " Seize the day " your program would print "yadhtziS" to the screen. Your printout to the screen must include quotations immediately before/after the characters from the input 1) Your main function will prompt the user, read the input from the keyboard into a 1-D character array, and call a subroutine 1 using the name of the input string as the argument 2) Subroutine 1 will modify the characters in the string to remove all of the letter 'e's, remove all of the blank spaces and tabs Subroutine will place a string termination character \0' at the end of this new sequence 3) The main program will then call a subroutine 2 to reverse the order of the character sequence in the 1-D character array. If the user entered 20 characters from the keyboard, for example, and subroutine 1 removed 2 blank spaces, the result from subroutine 2 should place the reversed-order sequence of 18 characters in the 1st 18 elements of the 1-D character array 4) Your main program will then call a subroutine 3 to print the string out backwards to the screen

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_2

Step: 3

blur-text-image_3

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

List out some inventory management techniques.

Answered: 1 week ago