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.
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.
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
Related questions
Question
Need help with example 8 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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F83f8fd0e-20e0-4045-b7e0-eac2c26a0bae%2F17876ed8-48b5-4516-9d83-35dc194120e4%2Fballpyq_processed.jpeg&w=3840&q=75)
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

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images

Knowledge Booster
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.Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education