1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alla [95]
3 years ago
9

Write a C++ code that will read a line of text and echo the line with all uppercase letters deleted. Assume the maximum length o

f the text is 80 characters. Example input/output is shown below.
Input:

Today is a great day!

Output:

oday is a great day!
Computers and Technology
1 answer:
andriy [413]3 years ago
6 0

Answer:

#include<bits/stdc++.h>

using namespace std;

int main()

{

   string st;

   getline(cin,st);

   int i=0;

   while(i<st.length())

   {

       if(isupper(st[i]))

       {

           st.erase(st.begin()+i);

           continue;

       }

       i++;

   }

   cout<<st<<endl;

   return 0;

}

Explanation:

I have included the file bits/stdc++.h which include almost most of the header files necessary.

For taking the input as a string line getline is used.

For checking the upper case isupper() function is used. cctype header file contains this function.

For deleting the character erase function is used.

You might be interested in
Create a python program that display this
aleksley [76]

Answer:

vxxgxfufjdfhgffghgfghgffh

4 0
2 years ago
The​ ________ is a​ c-shaped structure that curves around the pancreas and stomach
Sever21 [200]
The duodenum is the c-shaped structure that curves around the pancreas and stomach , it is actually the smallest part of the small intestine and joins the stomach to the jejunum <span />
6 0
3 years ago
In cell B12, enter a formula to calculate the amount budgeted for Mileage to/from Airport. The amount is based on the Mileage Ra
sashaice [31]

Answer:

X=mileage+y

Explanation:

7 0
3 years ago
Part 3 (The stunner)
Drupady [299]

Answer:

nice :)

Explanation:

7 0
2 years ago
Read 2 more answers
What is the difference between packaged and tailored software ​
Charra [1.4K]

Answer:

Hope it helps you .............

5 0
2 years ago
Other questions:
  • Where should you look to find contact information about a company? I. on the company website II. at your local library III. in t
    11·2 answers
  • In project integration management, project ______ and _______ are intertwined and inseparable activities
    14·1 answer
  • There is no way to track your smartphone once you lost it, true or false?
    15·2 answers
  • What are parts of the prewriting process
    8·2 answers
  • Which tool can you use in spreadsheet software to display only specific data values?
    9·1 answer
  • What is the output of the following function call? //function body int factorial(int n) { int product=0; while(n &gt; 0) { produ
    12·1 answer
  • When you use a rest area, you should:
    7·2 answers
  • Submit your 400-word essay that analyzes and evaluates three different examples of digital media. need some help
    14·1 answer
  • If Scheme were a pure functional language, could it include DISPLAY ? Why or why not?​
    11·1 answer
  • Is this even possible
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!