SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a C program to enter a first name, middle name and last name in separate variables.
After entering each name at the keyboard, call a function named convert that will capitalize the
first letter of the name and set the rest of the name to lowercase (for example, jOhN
becomesJohn). The convert function will be called three times-- once for the first name, once for
the middle name, and once for the last name.
Combine the properly capitalized names into one string and output the string (make sure you
have a space between each part of the name). Count the number of characters in the total name
(including spaces between names) and output that total also.
Include descriptive comments in your source code.
Solution
#include
#include
#include
void Convert(char string[])
{
int i;
int len = strlen(string); //compute length of string
string[0] = toupper(string[0]); // capitalize first character of the string
for (i=1;i

More Related Content

Similar to Write a C program to enter a first name, middle name and last name i.pdf

Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsRai University
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and stringsRai University
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsRai University
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageRai University
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageRai University
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageRai University
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c languageRai University
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c languageRai University
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...manikamr074
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniquesvalarpink
 
PROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptxPROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptxNithya K
 
Programming in C (part 2)
Programming in C (part 2)Programming in C (part 2)
Programming in C (part 2)SURBHI SAROHA
 
9 character string & string library
9  character string & string library9  character string & string library
9 character string & string libraryMomenMostafa
 
C presentation book
C presentation bookC presentation book
C presentation bookkrunal1210
 

Similar to Write a C program to enter a first name, middle name and last name i.pdf (20)

Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and strings
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
Getting started with C++
Getting started with C++Getting started with C++
Getting started with C++
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and strings
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and strings
 
Btech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c languageBtech i pic u-2 datatypes and variables in c language
Btech i pic u-2 datatypes and variables in c language
 
Bsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c languageBsc cs i pic u-2 datatypes and variables in c language
Bsc cs i pic u-2 datatypes and variables in c language
 
Mca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c languageMca i pic u-2 datatypes and variables in c language
Mca i pic u-2 datatypes and variables in c language
 
datatypes and variables in c language
 datatypes and variables in c language datatypes and variables in c language
datatypes and variables in c language
 
Diploma ii cfpc u-2 datatypes and variables in c language
Diploma ii  cfpc u-2 datatypes and variables in c languageDiploma ii  cfpc u-2 datatypes and variables in c language
Diploma ii cfpc u-2 datatypes and variables in c language
 
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...PART - 1  Python Introduction- Variables- Data types - Numeric- String- Boole...
PART - 1 Python Introduction- Variables- Data types - Numeric- String- Boole...
 
Problem Solving Techniques
Problem Solving TechniquesProblem Solving Techniques
Problem Solving Techniques
 
PROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptxPROGRAMMING IN C - Inroduction.pptx
PROGRAMMING IN C - Inroduction.pptx
 
Programming in C (part 2)
Programming in C (part 2)Programming in C (part 2)
Programming in C (part 2)
 
9 character string & string library
9  character string & string library9  character string & string library
9 character string & string library
 
Lexical1
Lexical1Lexical1
Lexical1
 
PHP Web Programming
PHP Web ProgrammingPHP Web Programming
PHP Web Programming
 
Python basics
Python basicsPython basics
Python basics
 
Python slide.1
Python slide.1Python slide.1
Python slide.1
 
C presentation book
C presentation bookC presentation book
C presentation book
 

More from deepaarora22

How did the tail of the swordtail fish evolveSolutionThe swor.pdf
How did the tail of the swordtail fish evolveSolutionThe swor.pdfHow did the tail of the swordtail fish evolveSolutionThe swor.pdf
How did the tail of the swordtail fish evolveSolutionThe swor.pdfdeepaarora22
 
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdf
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdfHelen Bowers was stumped. Sitting in her office at the plant, she po.pdf
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdfdeepaarora22
 
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdf
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdfDr. A. conducts a study on the effect of distraction on learning. Dr.pdf
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdfdeepaarora22
 
Discuss the function and importance of conceptual modeling.Solut.pdf
Discuss the function and importance of conceptual modeling.Solut.pdfDiscuss the function and importance of conceptual modeling.Solut.pdf
Discuss the function and importance of conceptual modeling.Solut.pdfdeepaarora22
 
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdf
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdfDave threw a ball into the air while standing on a 10 foot tall tabl.pdf
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdfdeepaarora22
 
Darwin was not the first to consider evolution as a processes but.pdf
Darwin was not the first to consider evolution as a processes but.pdfDarwin was not the first to consider evolution as a processes but.pdf
Darwin was not the first to consider evolution as a processes but.pdfdeepaarora22
 
Consider the following pedigree, which traces the inheritance of a si.pdf
Consider the following pedigree, which traces the inheritance of a si.pdfConsider the following pedigree, which traces the inheritance of a si.pdf
Consider the following pedigree, which traces the inheritance of a si.pdfdeepaarora22
 
Can heat flow through an object whilst it remains at a steady temper.pdf
Can heat flow through an object whilst it remains at a steady temper.pdfCan heat flow through an object whilst it remains at a steady temper.pdf
Can heat flow through an object whilst it remains at a steady temper.pdfdeepaarora22
 
A mutant strain of E. coli is found that produces both beta-galactos.pdf
A mutant strain of E. coli is found that produces both beta-galactos.pdfA mutant strain of E. coli is found that produces both beta-galactos.pdf
A mutant strain of E. coli is found that produces both beta-galactos.pdfdeepaarora22
 
An unknown individual launches a series of attacks against the Web s.pdf
An unknown individual launches a series of attacks against the Web s.pdfAn unknown individual launches a series of attacks against the Web s.pdf
An unknown individual launches a series of attacks against the Web s.pdfdeepaarora22
 
Youve completed an interrupted mating experiment in E. coli, the l.pdf
Youve completed an interrupted mating experiment in E. coli, the  l.pdfYouve completed an interrupted mating experiment in E. coli, the  l.pdf
Youve completed an interrupted mating experiment in E. coli, the l.pdfdeepaarora22
 
Write the following Scheme functions in JavaSolutionimport ja.pdf
Write the following Scheme functions in JavaSolutionimport ja.pdfWrite the following Scheme functions in JavaSolutionimport ja.pdf
Write the following Scheme functions in JavaSolutionimport ja.pdfdeepaarora22
 
Why do the soft technologies open more opportunities for women To w.pdf
Why do the soft technologies open more opportunities for women To w.pdfWhy do the soft technologies open more opportunities for women To w.pdf
Why do the soft technologies open more opportunities for women To w.pdfdeepaarora22
 
What are the difference between the testes of a frog and a rat in te.pdf
What are the difference between the testes of a frog and a rat in te.pdfWhat are the difference between the testes of a frog and a rat in te.pdf
What are the difference between the testes of a frog and a rat in te.pdfdeepaarora22
 
Which of the following occurs with disruptive selectiona. Natural .pdf
Which of the following occurs with disruptive selectiona. Natural .pdfWhich of the following occurs with disruptive selectiona. Natural .pdf
Which of the following occurs with disruptive selectiona. Natural .pdfdeepaarora22
 
When comparing replicate populations of plants that are grown in the .pdf
When comparing replicate populations of plants that are grown in the .pdfWhen comparing replicate populations of plants that are grown in the .pdf
When comparing replicate populations of plants that are grown in the .pdfdeepaarora22
 
What is wrong with the following definition of headInsertstruct N.pdf
What is wrong with the following definition of headInsertstruct N.pdfWhat is wrong with the following definition of headInsertstruct N.pdf
What is wrong with the following definition of headInsertstruct N.pdfdeepaarora22
 
What is the BEST way to determine if there are any gaps in your thes.pdf
What is the BEST way to determine if there are any gaps in your thes.pdfWhat is the BEST way to determine if there are any gaps in your thes.pdf
What is the BEST way to determine if there are any gaps in your thes.pdfdeepaarora22
 
What are two specialized epidermal cells and what do they do for the.pdf
What are two specialized epidermal cells and what do they do for the.pdfWhat are two specialized epidermal cells and what do they do for the.pdf
What are two specialized epidermal cells and what do they do for the.pdfdeepaarora22
 
What are the basic differences and commonalties between Structured An.pdf
What are the basic differences and commonalties between Structured An.pdfWhat are the basic differences and commonalties between Structured An.pdf
What are the basic differences and commonalties between Structured An.pdfdeepaarora22
 

More from deepaarora22 (20)

How did the tail of the swordtail fish evolveSolutionThe swor.pdf
How did the tail of the swordtail fish evolveSolutionThe swor.pdfHow did the tail of the swordtail fish evolveSolutionThe swor.pdf
How did the tail of the swordtail fish evolveSolutionThe swor.pdf
 
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdf
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdfHelen Bowers was stumped. Sitting in her office at the plant, she po.pdf
Helen Bowers was stumped. Sitting in her office at the plant, she po.pdf
 
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdf
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdfDr. A. conducts a study on the effect of distraction on learning. Dr.pdf
Dr. A. conducts a study on the effect of distraction on learning. Dr.pdf
 
Discuss the function and importance of conceptual modeling.Solut.pdf
Discuss the function and importance of conceptual modeling.Solut.pdfDiscuss the function and importance of conceptual modeling.Solut.pdf
Discuss the function and importance of conceptual modeling.Solut.pdf
 
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdf
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdfDave threw a ball into the air while standing on a 10 foot tall tabl.pdf
Dave threw a ball into the air while standing on a 10 foot tall tabl.pdf
 
Darwin was not the first to consider evolution as a processes but.pdf
Darwin was not the first to consider evolution as a processes but.pdfDarwin was not the first to consider evolution as a processes but.pdf
Darwin was not the first to consider evolution as a processes but.pdf
 
Consider the following pedigree, which traces the inheritance of a si.pdf
Consider the following pedigree, which traces the inheritance of a si.pdfConsider the following pedigree, which traces the inheritance of a si.pdf
Consider the following pedigree, which traces the inheritance of a si.pdf
 
Can heat flow through an object whilst it remains at a steady temper.pdf
Can heat flow through an object whilst it remains at a steady temper.pdfCan heat flow through an object whilst it remains at a steady temper.pdf
Can heat flow through an object whilst it remains at a steady temper.pdf
 
A mutant strain of E. coli is found that produces both beta-galactos.pdf
A mutant strain of E. coli is found that produces both beta-galactos.pdfA mutant strain of E. coli is found that produces both beta-galactos.pdf
A mutant strain of E. coli is found that produces both beta-galactos.pdf
 
An unknown individual launches a series of attacks against the Web s.pdf
An unknown individual launches a series of attacks against the Web s.pdfAn unknown individual launches a series of attacks against the Web s.pdf
An unknown individual launches a series of attacks against the Web s.pdf
 
Youve completed an interrupted mating experiment in E. coli, the l.pdf
Youve completed an interrupted mating experiment in E. coli, the  l.pdfYouve completed an interrupted mating experiment in E. coli, the  l.pdf
Youve completed an interrupted mating experiment in E. coli, the l.pdf
 
Write the following Scheme functions in JavaSolutionimport ja.pdf
Write the following Scheme functions in JavaSolutionimport ja.pdfWrite the following Scheme functions in JavaSolutionimport ja.pdf
Write the following Scheme functions in JavaSolutionimport ja.pdf
 
Why do the soft technologies open more opportunities for women To w.pdf
Why do the soft technologies open more opportunities for women To w.pdfWhy do the soft technologies open more opportunities for women To w.pdf
Why do the soft technologies open more opportunities for women To w.pdf
 
What are the difference between the testes of a frog and a rat in te.pdf
What are the difference between the testes of a frog and a rat in te.pdfWhat are the difference between the testes of a frog and a rat in te.pdf
What are the difference between the testes of a frog and a rat in te.pdf
 
Which of the following occurs with disruptive selectiona. Natural .pdf
Which of the following occurs with disruptive selectiona. Natural .pdfWhich of the following occurs with disruptive selectiona. Natural .pdf
Which of the following occurs with disruptive selectiona. Natural .pdf
 
When comparing replicate populations of plants that are grown in the .pdf
When comparing replicate populations of plants that are grown in the .pdfWhen comparing replicate populations of plants that are grown in the .pdf
When comparing replicate populations of plants that are grown in the .pdf
 
What is wrong with the following definition of headInsertstruct N.pdf
What is wrong with the following definition of headInsertstruct N.pdfWhat is wrong with the following definition of headInsertstruct N.pdf
What is wrong with the following definition of headInsertstruct N.pdf
 
What is the BEST way to determine if there are any gaps in your thes.pdf
What is the BEST way to determine if there are any gaps in your thes.pdfWhat is the BEST way to determine if there are any gaps in your thes.pdf
What is the BEST way to determine if there are any gaps in your thes.pdf
 
What are two specialized epidermal cells and what do they do for the.pdf
What are two specialized epidermal cells and what do they do for the.pdfWhat are two specialized epidermal cells and what do they do for the.pdf
What are two specialized epidermal cells and what do they do for the.pdf
 
What are the basic differences and commonalties between Structured An.pdf
What are the basic differences and commonalties between Structured An.pdfWhat are the basic differences and commonalties between Structured An.pdf
What are the basic differences and commonalties between Structured An.pdf
 

Recently uploaded

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 

Recently uploaded (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Write a C program to enter a first name, middle name and last name i.pdf

  • 1. Write a C program to enter a first name, middle name and last name in separate variables. After entering each name at the keyboard, call a function named convert that will capitalize the first letter of the name and set the rest of the name to lowercase (for example, jOhN becomesJohn). The convert function will be called three times-- once for the first name, once for the middle name, and once for the last name. Combine the properly capitalized names into one string and output the string (make sure you have a space between each part of the name). Count the number of characters in the total name (including spaces between names) and output that total also. Include descriptive comments in your source code. Solution #include #include #include void Convert(char string[]) { int i; int len = strlen(string); //compute length of string string[0] = toupper(string[0]); // capitalize first character of the string for (i=1;i