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
Olegator [25]
3 years ago
7

Write a c++ program that prints the intial letter of any name​

Chemistry
2 answers:
Masteriza [31]3 years ago
6 0

Answer:

please mark as brainliest!!

Explanation:

// C++ program to print initials of a name  

#include <bits/stdc++.h>  

using namespace std;  

 

void printInitials(const string& name)  

{  

   if (name.length() == 0)  

       return;  

 

   // Since touuper() returns int, we do typecasting  

   cout << (char)toupper(name[0]);  

 

   // Traverse rest of the string and print the  

   // characters after spaces.  

   for (int i = 1; i < name.length() - 1; i++)  

       if (name[i] == ' ')  

           cout << " " << (char)toupper(name[i + 1]);  

}  

 

// Driver code  

int main()  

{  

   string name = "prabhat kumar singh";  

   printInitials(name);  

   return 0;  

}

VARVARA [1.3K]3 years ago
6 0

Answer:

#include<iostream>

using namespace std;

int main(){

char str[20];

int i=0;

std::cout<<"Enter a name:" ;

cin>>str;

cout<<*str;

while(str[i]!='\0'){

if(str[i]==' '){

i++;

cin>>*(str+i);

}

i++;

}

return 0;

}

You might be interested in
7th grade Science//POINTS AND BRAINLIEST...AND plz hurry... Function of Organelles- Give the functions of the listed organelles:
vova2212 [387]

Answer: Chloroplast - The organelles are only found in plant cells and some protists such as algae. ... Chloroplasts work to convert light energy of the Sun into sugars that can be used by cells. The entire process is called photosynthesis and it all depends on the little green chlorophyll molecules in each chloroplast.

Mitochondria - are known as the powerhouses of the cell. They are organelles that act like a digestive system which takes in nutrients, breaks them down, and creates energy rich molecules for the cell. The biochemical processes of the cell are known as cellular respiration.

The cell membrane- controls the movement of substances in and out of cells and organelles. In this way, it is selectively permeable to ions and organic molecules.

Cytoplasm - is present within the cell membrane of all cell types and contains all organelles and cell parts. Cytoplasm has various functions in the cell. ... Cytoplasm is responsible for giving a cell its shape. It helps to fill out the cell and keeps organelles in their place.

Nucleus - This organelle has two major functions: it stores the cell's hereditary material, or DNA, and it coordinates the cell's activities, which include growth, intermediary metabolism, protein synthesis, and reproduction (cell division). Only the cells of advanced organisms, known as eukaryotes, have a nucleus.

Ribosomes - are a cell structure that makes protein. Protein is needed for many cell functions such as repairing damage or directing chemical processes. Ribosomes can be found floating within the cytoplasm or attached to the endoplasmic reticulum. ... Proteins are an essential part of all cells.

Endoplasmic reticulum (ER) - in biology, a continuous membrane system that forms a series of flattened sacs within the cytoplasm of eukaryotic cells and serves multiple functions, being important particularly in the synthesis, folding, modification, and transport of proteins .

Vacuoles - are membrane-bound sacs within the cytoplasm of a cell that function in several different ways. In mature plant cells, vacuoles tend to be very large and are extremely important in providing structural support, as well as serving functions such as storage, waste disposal, protection, and growth.

Lysosome - Inside a cell, numerous organelles function to remove wastes. One of the key organelles involved in digestion and waste removal is the lysosome. Lysosomes are organelles that contain digestive enzymes. They digest excess or worn out organelles, food particles, and engulfed viruses or bacteria.

Chromosomes - are the thread-like structure found in the nuclei of both animal and plant cells. They are made of protein and one molecule of deoxyribonucleic acid (DNA) Chromosomes are important to this process to ensure the DNA is accurately replicated.

The nucleolus - makes ribosomal subunits from proteins and ribosomal RNA, also known as rRNA. It then sends the subunits out to the rest of the cell where they combine into complete ribosomes. Ribosomes make proteins; therefore, the nucleolus plays a vital role in making proteins in the cell.

Vesicles - are small cellular containers that perform a variety of functions. They can be used to move molecules, secrete substances, digest materials, or regulate the pressure in the cell.

The cell wall - is the protective, semi-permeable outer layer of a plant cell. A major function of the cell wall is to give the cell strength and structure, and to filter molecules that pass in and out of the cell.

Took some time hope it helped !!! <3

Explanation:

6 0
3 years ago
The predominant greenhouse gas produced by human use of fossil fuels is __________. View Available Hint(s) The predominant green
mario62 [17]

Answer:

carbon dioxide

Explanation:

Carbon dioxide -

The gas carbon dioxide has a molecular formula of CO₂ ,

During the burning process of the fossil fuels , carbon dioxide is resealed in numerous amount , which act as a greenhouse gas .

Greenhouse gas - Are the gases which absorbs and release radiation , and are responsible for the greenhouse effect .

The greenhouse gases are - carbon dioxide , water vapor , methane , ozone , nitrous oxide .

6 0
3 years ago
What is the number of molecule(s)?
Gemiola [76]

1. 4NHCO3

2. 3CaCO3

3. 5NaC2H3O

4. 6NH3

5. 2CaCl2O2

ans ( a). NHCO3

5 0
3 years ago
Read 2 more answers
Calculate the [OH-] if the pOH = 2.55.
Fynjy0 [20]

Answer: d

Explanation:it’s physics no so hard

6 0
3 years ago
What type of testing can reveal the precense of blood?
lorasvet [3.4K]

Answer: precipitin test

Explanation:

3 0
2 years ago
Other questions:
  • Please help I need to know this information in paragraph form I'll give brainiest and 99 points
    6·2 answers
  • How many grams of calcium phosphate can be produced when 78.5 grams of calcium hydroxide reacts with excess phosphoric acid?
    8·2 answers
  • Explain the differences among nonpolar covalent bonds, polar covalent bonds, and ionic bonds.
    7·1 answer
  • Which of the following is a synthesis reaction?
    9·2 answers
  • Consider the balanced chemical reaction below and determine the percent yield for iron if 11.2 moles of Iron(III) oxide yielded
    10·1 answer
  • How many moles of mercury(Hg) are in 1.30 *10.7 atoms or mercury
    6·1 answer
  • ¿Cual es la sustancia que puede causar la muerte? (Estoy poniendo cualquier cosa para registrarme) 3
    6·1 answer
  • Use the graph to answer these questions. The total energy of the reactants is –3,811.92 kJ. –1,273.02 kJ. –2,538.90 kJ.
    12·2 answers
  • What is sublimation ​
    10·2 answers
  • What is the modern modification of atomic theory​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!