Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a pragram in C++ that does the following 1] Ask the user to enter the name of a book and the authar af the
Create a pragram in C++ that does the following 1] Ask the user to enter the name of a book and the authar af the boak. He stores it in two arancement of characters. Define arrays large enough to fit long titles and names of long authors Note that you have to explore the use of cin.g place cin.ignore 0; before reading with cin getline 2) Print the name of the book and the name of the author. Using as an example the name of the book getine to be able to read the blanks be sure that The house of the spirits ", it would look like this: Name of the book: The House of the Spirits Author: Isabel Allende 3) Go through the arrangement that contains the name of the convert them book to identity the lowercase letters and in capital letters.(See information on the ASCI Table at the end of the exercise "). Prepare this in a functiorn used to convert the contents of an array of characters to upper case. 4) Print the arrangement when all the letters are already uppercase. For the example of "The house of the spirits ", it would look like this: Name of the book in capital letters: THE HOUSE OF THE SPIRITS 5) In a third arrangement, you will place the name of the book in inverted order. Ex: If the arrangement has THE HOUSE OF THE SPIRITS the second arrangement must contain SUTIRIPSE SOL ED ASAC. Develop a function for this end 6) Print both arrangements, as follows (using the HOUSE OF SPIRITS as an example): Neus et tbe beab: LA CASA DE LOS ESPIRITUS Name in inverted order: SUTIRIPSE SOL ED ASAC 7) Count the number of letters in the title of the book, including the blanks. For example, THE HOUSE OF THE SPIRITS has 24 letters (although it needs 25 spaces to be stored) for the 10'). Create this in a function that calculates the number of letters the last one contains
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started