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
LAB: Winning team (classes)
andrey2020 [161]

Answer:

The function is as follows:

def get_win_percentage(self):

       return self.team_wins / (self.team_wins + self.team_losses)

Explanation:

This defines the function

def get_win_percentage(self):

This calculates the win percentage and returns it to main

       return self.team_wins / (self.team_wins + self.team_losses)

<em>See attachment for complete (and modified) program.</em>

Download txt
6 0
3 years ago
Question #2
stiks02 [169]

Answer:

Step 1: define task

Step 2: process

Step 3: input

Step 4: output

Step 5: check accuracy

Explanation:

Took the test.

4 0
3 years ago
this is a question about this app. Is the plus a scam or something. please tell me the truth. cause ive paid for it and it worke
mylen [45]
I didn’t get the plus and it let me review answers without an ad so idk so like you really don’t need plus I wouldn’t get it
7 0
3 years ago
Read 2 more answers
PLEASE HELP ASAP!
BlackZzzverrR [31]
A- software requirement specifications
3 0
2 years ago
Read 2 more answers
The minimum recommended standards for the operating system, processor, primary memory (RAM), and storage capacity for certain so
timurjin [86]

Answer:

They are called System Requirements.

Explanation:

3 0
2 years ago
Other questions:
  • When you use a mouse to select a row or column in a table, word displays a(n) ____?
    5·1 answer
  • Renting provides _________ flexibility but can lead to _________ costs in the long-term.
    14·2 answers
  • In this lab, 172.30.0.0 represents the __________ network and 10.20.1.0 represents the _________ network.
    11·1 answer
  • Which key you should you press to leave the cell as it orginally was
    14·2 answers
  • Select the correct answer.
    15·1 answer
  • Indicates how fast the engine is moving in rpms.
    9·1 answer
  • A derived class is a class that inherits data members and functions from a ____ class.
    6·1 answer
  • PLEASE HELP I FAILED TWICE AND HAVE ONLY ONE MORE TRY BEFORE MY GRADE ARE SET I AM CRYINGGGGG PLEASEEE IM BEGGINGGGGG
    10·1 answer
  • BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLIEST BRAINLI
    6·2 answers
  • 3. Which property provided the labels in the list below?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!