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 19:10
Select the correct answer. emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. to which type of testing is emma referring? a. usability testing b. data comparison c. validation testing d. stress testing e. destruction testing
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
question
Computers and Technology, 24.06.2019 00:00
Visualizing a game of “tag” to remember the meaning of contagious
Answers: 3
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
Biology, 23.06.2019 06:00
question
Mathematics, 23.06.2019 06:00
question
Mathematics, 23.06.2019 06:00
question
Social Studies, 23.06.2019 06:00
Questions on the website: 13722367