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
Drag each tile to the correct box. (No links please)
Sergio039 [100]

Answer:

For Rachael to pursue a career in business information management. She is expected to follow the following route one after the other.

1. Training in management skills and data storage

2. Certification in MIS

3. Bachelor's degree in business administration

4. Master's degree in business administration

Hope this helped! ;)

5 0
3 years ago
Read 2 more answers
Circular errors are caused by adding the cell name of _______ cell to its own formula.
Sati [7]

Circular errors are caused by adding the cell name of the active cell to its own formula.

8 0
3 years ago
Electricity from has enough energy to stop your what?
Ne4ueva [31]

Can I get some options?


The second one is most likely "Heart", but the first one could be a number of things, unless this just pasted incorrectly.'


5 0
4 years ago
Which of the following defines code?
balu736 [363]

Answer:

A set of instructions, written by a programmer, that is used by computers to perform tasks

3 0
3 years ago
Which year was the Apple 2 released? <br>A) 1979 <br>B). 1973 <br>C). 1980 <br>D). 1977​
sesenic [268]

Answer:

1977

Explanation:

Apple 2 was released in April 19th 1977

6 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program to read as many test scores as the user wants from the keyboard (assuming at most 50 scores). Print the scores i
    13·1 answer
  • What is revision
    13·2 answers
  • We say that a sequence of numbers is a palindrome if it is read the same backward or forward. For example, the sequence: 6, 15,
    11·1 answer
  • The destination ip address is 164.109.27.233 subnet mask of 255.255.192.0 network address is
    12·1 answer
  • Which os the following is NOT true about the proof of work concept?
    8·1 answer
  • People who rely on others for financial support, such as children and the elderly, are referred to as 16 O A. recipients O B. be
    9·1 answer
  • Is this statement true or false?
    5·1 answer
  • You can find synonyms and disciplinary jargon in the ______, _______, and ______ in your search results. You can then use these
    13·1 answer
  • Study the original and changed passages.
    8·2 answers
  • Hi. I'm a beginner in python. Can anyone tell me what I'm missing or doing wrong, because I can't figure out why my messages in
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!