Write a program that prompts the user to input a string and outputs the string in uppercase letters using dynamic arrays. Given code: #include  #include  #include  using namespace std; int main() {...


Write a program that prompts the user to input a string and outputs the string in uppercase letters using dynamic arrays.


Given code:



#include 

#include 

#include 


using namespace std;



int main()

{

    char str[81];



    int len;



    int i;



    cout <>

    cin.get(str, 80);

    cout <>

    cout <><>



    len = strlen(str);

    for (i = 0; i <>

        cout <>(toupper(str[i]));

    cout <>



    return 0;

}



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here