These are assignment questions 7. Print the string in example 6 in reverse. Hint: print the array in reverse.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Need help with example 7 please and thank you
10:57 M
令ll 34%
M9- Strings - Saved
空
Example 6
• Write the string
alpha="ABCDEFGHIJKLM
NOPQRSTUVWXYZ" as if it
is a character array alpha[26]
1 / Example 6
// Print string treated as an array
3 include <iostream>
4 tinclude <string
5 using namespace std;
2
7 int main()
9
//array for 26 uppercase alphabets
string alpha-"ABCDEFGHIJKLMNOPORSTUVKYZ";
//alpha[e] is A,...alpha[25] 1is z
for(int 1-0; 1<26; 1++){
cout<calpha[1]<<";
10
11
12-
13
14
15 }
OUTPUT
ARCOFFGHIJKLHNOPRRSTUVHX V
15
E Notes
Comments
Srings in C++
Eumpla 6
Exmpla 7.5
Sa t y od ly
Sag ad dla qa
AKTE LM
T. hh de
anpf
adund ytu
E tg due fa te
r cl The ste pt
ftedun ta te +
As I ed
14
15
16
Transcribed Image Text:10:57 M 令ll 34% M9- Strings - Saved 空 Example 6 • Write the string alpha="ABCDEFGHIJKLM NOPQRSTUVWXYZ" as if it is a character array alpha[26] 1 / Example 6 // Print string treated as an array 3 include <iostream> 4 tinclude <string 5 using namespace std; 2 7 int main() 9 //array for 26 uppercase alphabets string alpha-"ABCDEFGHIJKLMNOPORSTUVKYZ"; //alpha[e] is A,...alpha[25] 1is z for(int 1-0; 1<26; 1++){ cout<calpha[1]<<"; 10 11 12- 13 14 15 } OUTPUT ARCOFFGHIJKLHNOPRRSTUVHX V 15 E Notes Comments Srings in C++ Eumpla 6 Exmpla 7.5 Sa t y od ly Sag ad dla qa AKTE LM T. hh de anpf adund ytu E tg due fa te r cl The ste pt ftedun ta te + As I ed 14 15 16
10:56 A
令ll 34%
M9- Strings - Saved
Example 7, 8
These are assignment questions
7. Print the string in example 6 in reverse. Hint: print the array in
reverse.
8. Using character function(s) print the array in Example 6 as
lower case letters. That is, use the appropriate character
function to change the case of each alphabet in the array to a
lower case, store it in a string variable, and print it.
Notes
Comments
Srings in C++
Eumpla 6
Exmpla 7.5
Sag ad dla qa
AKTEaLM
T. h gade
adund yt
t dew fe p te
krcl Tha i te pt
edun the cafachatte
k ca l
w
14
15
16
A
Transcribed Image Text:10:56 A 令ll 34% M9- Strings - Saved Example 7, 8 These are assignment questions 7. Print the string in example 6 in reverse. Hint: print the array in reverse. 8. Using character function(s) print the array in Example 6 as lower case letters. That is, use the appropriate character function to change the case of each alphabet in the array to a lower case, store it in a string variable, and print it. Notes Comments Srings in C++ Eumpla 6 Exmpla 7.5 Sag ad dla qa AKTEaLM T. h gade adund yt t dew fe p te krcl Tha i te pt edun the cafachatte k ca l w 14 15 16 A
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Keywords
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education