SlideShare a Scribd company logo
1 of 1
Download to read offline
Write a C program that reads input as a stream of characters until encountering EOF (hint: use
redirection). Have the program report the number of uppercase characters, the number of
lowercase characters, and the number of other characters read. (You can use the functions in
ctype.h for this assignment.) Use the attached file infile.txt as input when you submit your
assignment.
Solution

More Related Content

More from rbjain2007

What are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
What are 3 of the main functions of the HL7 StandardDiscuss the i.pdfWhat are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
What are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
rbjain2007
 
Using your own words, describe the path of sperm from the beginning .pdf
Using your own words, describe the path of sperm from the beginning .pdfUsing your own words, describe the path of sperm from the beginning .pdf
Using your own words, describe the path of sperm from the beginning .pdf
rbjain2007
 
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdfMasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
rbjain2007
 
Let A be the event that a person is elderly. Let B be the event that.pdf
Let A be the event that a person is elderly. Let B be the event that.pdfLet A be the event that a person is elderly. Let B be the event that.pdf
Let A be the event that a person is elderly. Let B be the event that.pdf
rbjain2007
 
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdfLeeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
rbjain2007
 
Java TV Controller Everyone is familiar with a television. You are g.pdf
Java TV Controller Everyone is familiar with a television. You are g.pdfJava TV Controller Everyone is familiar with a television. You are g.pdf
Java TV Controller Everyone is familiar with a television. You are g.pdf
rbjain2007
 
How did Malinowski revolutionize anthropogical methods and fiel.pdf
How did Malinowski revolutionize anthropogical methods and fiel.pdfHow did Malinowski revolutionize anthropogical methods and fiel.pdf
How did Malinowski revolutionize anthropogical methods and fiel.pdf
rbjain2007
 

More from rbjain2007 (20)

What are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
What are 3 of the main functions of the HL7 StandardDiscuss the i.pdfWhat are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
What are 3 of the main functions of the HL7 StandardDiscuss the i.pdf
 
Using your own words, describe the path of sperm from the beginning .pdf
Using your own words, describe the path of sperm from the beginning .pdfUsing your own words, describe the path of sperm from the beginning .pdf
Using your own words, describe the path of sperm from the beginning .pdf
 
The tetany that occurs in death vs tetanus infections occur for diff.pdf
The tetany that occurs in death vs tetanus infections occur for diff.pdfThe tetany that occurs in death vs tetanus infections occur for diff.pdf
The tetany that occurs in death vs tetanus infections occur for diff.pdf
 
The part of the onion you eat (and the part that carries out pho.pdf
The part of the onion you eat (and the part that  carries out pho.pdfThe part of the onion you eat (and the part that  carries out pho.pdf
The part of the onion you eat (and the part that carries out pho.pdf
 
The nonlinear differential equation x”+x=1+x2 arises in the analysis.pdf
The nonlinear differential equation x”+x=1+x2 arises in the analysis.pdfThe nonlinear differential equation x”+x=1+x2 arises in the analysis.pdf
The nonlinear differential equation x”+x=1+x2 arises in the analysis.pdf
 
Prove or disprove If a group G is such that every proper subgroup is.pdf
Prove or disprove If a group G is such that every proper subgroup is.pdfProve or disprove If a group G is such that every proper subgroup is.pdf
Prove or disprove If a group G is such that every proper subgroup is.pdf
 
PART C Assessments Terms Articular cartilage Compact bone Epiphyseal.pdf
PART C Assessments Terms Articular cartilage Compact bone Epiphyseal.pdfPART C Assessments Terms Articular cartilage Compact bone Epiphyseal.pdf
PART C Assessments Terms Articular cartilage Compact bone Epiphyseal.pdf
 
Modern orangutans most likely evolved froma. Dryopithecus.b. Siv.pdf
Modern orangutans most likely evolved froma. Dryopithecus.b. Siv.pdfModern orangutans most likely evolved froma. Dryopithecus.b. Siv.pdf
Modern orangutans most likely evolved froma. Dryopithecus.b. Siv.pdf
 
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdfMasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
MasteringBiology Ch. Google Chrome Secure https session masteringbi.pdf
 
male fireflies are recognized by females of their species by the pat.pdf
male fireflies are recognized by females of their species by the pat.pdfmale fireflies are recognized by females of their species by the pat.pdf
male fireflies are recognized by females of their species by the pat.pdf
 
Let k be the number of ON-state devices in a group of n devices on a .pdf
Let k be the number of ON-state devices in a group of n devices on a .pdfLet k be the number of ON-state devices in a group of n devices on a .pdf
Let k be the number of ON-state devices in a group of n devices on a .pdf
 
Let A be the event that a person is elderly. Let B be the event that.pdf
Let A be the event that a person is elderly. Let B be the event that.pdfLet A be the event that a person is elderly. Let B be the event that.pdf
Let A be the event that a person is elderly. Let B be the event that.pdf
 
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdfLeeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
Leeuwenhoek described microorganism as Animalcules. Prokaryotes. Euk.pdf
 
Java TV Controller Everyone is familiar with a television. You are g.pdf
Java TV Controller Everyone is familiar with a television. You are g.pdfJava TV Controller Everyone is familiar with a television. You are g.pdf
Java TV Controller Everyone is familiar with a television. You are g.pdf
 
In your own words, what exactly is Language-Integrated Query (LINQ).pdf
In your own words, what exactly is Language-Integrated Query (LINQ).pdfIn your own words, what exactly is Language-Integrated Query (LINQ).pdf
In your own words, what exactly is Language-Integrated Query (LINQ).pdf
 
2. Write a program which will open an input file and write to an out.pdf
2. Write a program which will open an input file and write to an out.pdf2. Write a program which will open an input file and write to an out.pdf
2. Write a program which will open an input file and write to an out.pdf
 
httpsllvesson Da 82332552 Anatomy & Physiology II Lecture TR (601 Dye.pdf
httpsllvesson Da 82332552 Anatomy & Physiology II Lecture TR (601 Dye.pdfhttpsllvesson Da 82332552 Anatomy & Physiology II Lecture TR (601 Dye.pdf
httpsllvesson Da 82332552 Anatomy & Physiology II Lecture TR (601 Dye.pdf
 
How did Malinowski revolutionize anthropogical methods and fiel.pdf
How did Malinowski revolutionize anthropogical methods and fiel.pdfHow did Malinowski revolutionize anthropogical methods and fiel.pdf
How did Malinowski revolutionize anthropogical methods and fiel.pdf
 
For the following frequency distribution, what is X  X f30-34 1.pdf
For the following frequency distribution, what is X  X f30-34 1.pdfFor the following frequency distribution, what is X  X f30-34 1.pdf
For the following frequency distribution, what is X  X f30-34 1.pdf
 
Give the converse contrapositve and inverse of the following stateme.pdf
Give the converse contrapositve and inverse of the following stateme.pdfGive the converse contrapositve and inverse of the following stateme.pdf
Give the converse contrapositve and inverse of the following stateme.pdf
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
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
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
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
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
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Ữ Â...
 
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [🔝9953056974🔝] escort service 24X7
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
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...
 

Write a C program that reads input as a stream of characters until e.pdf

  • 1. Write a C program that reads input as a stream of characters until encountering EOF (hint: use redirection). Have the program report the number of uppercase characters, the number of lowercase characters, and the number of other characters read. (You can use the functions in ctype.h for this assignment.) Use the attached file infile.txt as input when you submit your assignment. Solution