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
kramer
3 years ago
11

Write a program which capitalize every character after full stopin a given sentence

Computers and Technology
1 answer:
8090 [49]3 years ago
4 0

Answer:

#include <bits/stdc++.h>//header file which includes most of the libraries..

using namespace std;

int main() {

   char st[500];//character array of length 500..

   cin.getline(st,499);//taking input of the text.

   for(int i=0;st[i];i++)

   {

       if((st[i]=='.')&& (i!=strlen(st)-1))//condition

       {

          st[i+1]= toupper(st[i+1]);//converting to upper case.

       }

   }

   cout<<st<<endl;//printing the string..

return 0;

}

Input:

i am .the .great .gambler.i am going gamble everything

Output:

i am .The .Great .Gambler.I am going gamble everything

Explanation:

I have taken a character array of size 500.

Taking input as a line.

If full stop encounters then converting the character to uppercase if it exists.

Printing the output.

You might be interested in
What are three ways to protect yourself from identity theft when using your smartphone or computer?.
raketka [301]

Answer:

1. Always download the latest updates .

2. Don’t click on rogue links .

3.Secure your devices (long, complex password on your computer and phone, using Anti-virus/Anti-Malware program) .

5 0
3 years ago
How to type in color on clash royale
Brut [27]
In order to chat your text in color in the famous game Clash Royale of Supercell, you have to use a template below: 
<c + “hexadecimal value of the color of your choice.”> text here </c>.
For example, to make your text in red (ff0000) : <cff0000> text here </c>
8 0
3 years ago
Read 2 more answers
Order the steps for creating an automatic reply in Outlook.
RSB [31]

Answer:

Select File > Automatic Replies.

Select Send automatic replies.

If you don't want the messages to go out right away, select Only send during this time range.

Choose the dates and times you'd like to set your automatic reply for.

Type in a message.

Select OK.

Explanation:

3 0
2 years ago
Read 2 more answers
c++ Write a for loop that computes the following sum: 5+10+15+20+...+485+490+495+500. The sum should be placed in a variable sum
ElenaW [278]

Answer:

#include <iostream>

#include <cstdlib>

 

using namespace std;

 

int main(){

 

 

   int sum=0, num=5;   //variables declaration and inicialization

 

   while (sum<500){   //conditioning to do the sum up to 500

   sum=sum+num;     //actually sum process

   cout << "The value is: "<<sum;   //show the result in screen

   };

   return 0;

}

5 0
4 years ago
QUESTION 2 Fruit is an enumerated type with values apple, banana, grape, and orange, in that order. Which of the following state
Llana [10]

Answer:

Option A i.e., snack = Fruit.orange;

Explanation:

It is the user-defined data type which is mainly used to initialize the names or titles to integral constants so in the following statement 'Fruit' is the enumerate data type function and its values are the followings given in the statement, 'snack' is the variable of the function 'fruit' that is an enum type, so the initialization is done by the following type in the Java Programming Language.

6 0
3 years ago
Other questions:
  • Explain the design and development proccess?
    15·1 answer
  • Create an application that writes a series of random numbers to a file. Each random number should be in the range of 1 through 1
    9·1 answer
  • Why do hard drives tend to slow down over time?
    11·2 answers
  • _______ Originally , the art of maganing engines; in its modern and extended sense
    7·1 answer
  • The ability to send and receive transmissions at the same time on an ethernet cable is referred to by what term?
    7·1 answer
  • What can a scientist do if he repeats and experiment and gets diffrent results?
    5·1 answer
  • __ allow(s) users with mobility issues to control the computer with their voice.
    6·2 answers
  • IF YOU LOVE GOD HELP ME......What should be covered in the conclusion of a presentation?
    11·2 answers
  • Write a program that keeps asking the user for new values to be added to a list until the user enters 'exit' ('exit' should NOT
    10·1 answer
  • What is the half of 3/18
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!