subject

Write a program that prompts the user to input a string and outputs the string in uppercase letters. (Use dynamic arrays to store the string.)/*Your code from Chapter 8, exercise 5 is below. Rewrite the following code to using dynamic arrays.*/#include #include #include using namespace std;int main(){char str[81];int len;int i;cout << "Enter a string: ";cin. get(str, 80);cout << endl;cout << "String in upper case letters is:" << endl;len = strlen(str);for (i = 0; i < len; i++)cout << static_cast(toupper(str[i]));cout << endl;return 0;}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:30
What important technology has done the most to allow a businesses a chance to compete with larger international companies
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
You know the right answer?
Write a program that prompts the user to input a string and outputs the string in uppercase letters....
Questions
question
Mathematics, 22.02.2021 03:50
question
Biology, 22.02.2021 04:00
question
History, 22.02.2021 04:00
question
Social Studies, 22.02.2021 04:00
question
Mathematics, 22.02.2021 04:00
question
Mathematics, 22.02.2021 04:00
question
Mathematics, 22.02.2021 04:00
Questions on the website: 13722362