Part I (1.5 points)
Write a C++ programthat reads a line fromthe keyboard, and that returns the number oflowercase letters inthe line. Your code should
containa functionthat determines the totalnumber oflowercase letters inthe line. The functionMUSTbe parameterized (i.e. nonemptyparameter
list). Be sure to use proper formattingand appropriate comments inyour code. The followingshows a sample runofthe program.
Enter a sentence:Hi, World, HOW are you?
The totalnumber oflowercase letters inthe sentence is 11
Part II (1.5 points)
Write a C++ programthat determines the largest amongthree numbers ofint type read fromthe keyboard. Your code should containa
functionthat determines the largest amongthe three numbers passed to it. Callbyreference MUSTbe used to implement the function. Be sure to
use proper formattingand appropriate comments inyour code. The followingshowa sample runofthe program.
Enter three numbers separated bya space:17 36 29
The largest number among17, 36, and 29 is 36
Part III (1.5 points)
Write a C++ programto convert a temperature fromFahrenheit to Celsius or a temperature fromCelsius to Fahrenheit, dependingonwhether
the user enters anF or a C. YouMUSTuse two functions to implement the two conversions inyour code. Also, declare the two prototypes
before main() and define the two functions after main(). Be sure to use proper formattingand appropriate comments inyour code. The following
shows a sample runofthe program.
Enter anF or a C and a number to be converted:F 78.5
Celsius of78.5 degrees inFahrenheit is 25.833

More Related Content

PDF
Java programlist (1)
PDF
Introduction to computer_lec_04
DOCX
PYTHON PROGRAMS
PDF
Assignment 2
PPT
PDF
Fundamental
DOCX
c++ Question
DOC
Md university cmis 102 week 4 hands on lab new
Java programlist (1)
Introduction to computer_lec_04
PYTHON PROGRAMS
Assignment 2
Fundamental
c++ Question
Md university cmis 102 week 4 hands on lab new

What's hot (18)

PDF
practice problems on functions IN SWIFT
DOC
Md university cmis 102 week 4 hands on lab new
PPTX
Lab 1:c++
PDF
Assignment # 3 computer system and Programming EC-105
PPTX
Introduction to computer_lec_04_fall_2018
PPTX
Toy Interpreter
PDF
Year 2 dsa c++ exercises on user defined functions
DOCX
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
PPTX
Introduction to programming (week 1)
PPT
Chapter 3.2
PDF
LOGO command worksheet
PPTX
Data structures Lecture no. 4
PPTX
Functional programming (Let's fall back in love with Programming)
PPT
Devry cis-170-c-i lab-4-of-7-functions
PDF
ADot netme assignment
PPT
SD & D Running Total
PPT
C chap02
PPT
C chap02
practice problems on functions IN SWIFT
Md university cmis 102 week 4 hands on lab new
Lab 1:c++
Assignment # 3 computer system and Programming EC-105
Introduction to computer_lec_04_fall_2018
Toy Interpreter
Year 2 dsa c++ exercises on user defined functions
CLASS VIII COMPUTERS FLOW CHART AND ALGORITHM
Introduction to programming (week 1)
Chapter 3.2
LOGO command worksheet
Data structures Lecture no. 4
Functional programming (Let's fall back in love with Programming)
Devry cis-170-c-i lab-4-of-7-functions
ADot netme assignment
SD & D Running Total
C chap02
C chap02
Ad

Similar to Part I (1.5 points) Write a C++ program that reads a line from the keyboard, and that returns (20)

PPTX
Basics Of C++.pptx
DOCX
This assignment consists of four short programs. Use CodeBlock.docx
PPTX
Looping in PythonLab8 lecture slides.pptx
PDF
Tutorial basic of c ++lesson 1 eng ver
PDF
A01
PDF
Functions in c++
PPTX
lecture 2.pptx
PPT
Jeremiah Yancy - Objectives for Software design and testing
DOCX
Cis 355 i lab 6 of 6
DOCX
Cis 355 i lab 6 of 6
DOCX
Cis 355 ilab 6 of 6
DOCX
Oop lab assignment 01
PDF
Lab6: I/O and Arrays
PPTX
Lesson 1 - Introduction to C++ Language.pptx
PPT
keyword
PPT
keyword
PPTX
Cpp Homework Help
PDF
Week 02_Development Environment of C++.pdf
Basics Of C++.pptx
This assignment consists of four short programs. Use CodeBlock.docx
Looping in PythonLab8 lecture slides.pptx
Tutorial basic of c ++lesson 1 eng ver
A01
Functions in c++
lecture 2.pptx
Jeremiah Yancy - Objectives for Software design and testing
Cis 355 i lab 6 of 6
Cis 355 i lab 6 of 6
Cis 355 ilab 6 of 6
Oop lab assignment 01
Lab6: I/O and Arrays
Lesson 1 - Introduction to C++ Language.pptx
keyword
keyword
Cpp Homework Help
Week 02_Development Environment of C++.pdf
Ad

Recently uploaded (20)

PPTX
TNA_Presentation-1-Final(SAVE)) (1).pptx
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Introduction to pro and eukaryotes and differences.pptx
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
International_Financial_Reporting_Standa.pdf
PDF
advance database management system book.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
TNA_Presentation-1-Final(SAVE)) (1).pptx
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Introduction to pro and eukaryotes and differences.pptx
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
What if we spent less time fighting change, and more time building what’s rig...
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
B.Sc. DS Unit 2 Software Engineering.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
International_Financial_Reporting_Standa.pdf
advance database management system book.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Share_Module_2_Power_conflict_and_negotiation.pptx

Part I (1.5 points) Write a C++ program that reads a line from the keyboard, and that returns

  • 1. Part I (1.5 points) Write a C++ programthat reads a line fromthe keyboard, and that returns the number oflowercase letters inthe line. Your code should containa functionthat determines the totalnumber oflowercase letters inthe line. The functionMUSTbe parameterized (i.e. nonemptyparameter list). Be sure to use proper formattingand appropriate comments inyour code. The followingshows a sample runofthe program. Enter a sentence:Hi, World, HOW are you? The totalnumber oflowercase letters inthe sentence is 11 Part II (1.5 points) Write a C++ programthat determines the largest amongthree numbers ofint type read fromthe keyboard. Your code should containa functionthat determines the largest amongthe three numbers passed to it. Callbyreference MUSTbe used to implement the function. Be sure to use proper formattingand appropriate comments inyour code. The followingshowa sample runofthe program. Enter three numbers separated bya space:17 36 29 The largest number among17, 36, and 29 is 36 Part III (1.5 points) Write a C++ programto convert a temperature fromFahrenheit to Celsius or a temperature fromCelsius to Fahrenheit, dependingonwhether the user enters anF or a C. YouMUSTuse two functions to implement the two conversions inyour code. Also, declare the two prototypes before main() and define the two functions after main(). Be sure to use proper formattingand appropriate comments inyour code. The following shows a sample runofthe program. Enter anF or a C and a number to be converted:F 78.5 Celsius of78.5 degrees inFahrenheit is 25.833