SlideShare uma empresa Scribd logo
1 de 1
Design a system in C++ that lets the user perform math operations (sum, difference,
multiplication, division, average) on two numbers. The C++ program must be menu-driven,
allowing the user to select an arithmetic operation from the list and input the numbers.
Furthermore, your program must consist of the following functions: showChoice: This function
shows the options to the user and explains how to enter data. Add: This function accepts two
numbers as arguments and returns the sum. Subtract: This function accepts two numbers as
arguments and returns their difference. Multiply: This function accepts two numbers as
arguments and returns the product. Divide: This function accepts two numbers as arguments and
returns a quotient. Average: This function accepts two numbers as arguments and returns their
average.

Mais conteúdo relacionado

Semelhante a Design a system in C++ that lets the user perform math operations (sum.docx

Operator oveerloading
Operator oveerloadingOperator oveerloading
Operator oveerloadingyatinnarula
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning materialArthyR3
 
C language operators
C language operatorsC language operators
C language operatorsmarar hina
 
Math 133 – unit 2 individual project name/tutorialoutlet
Math 133 – unit 2 individual project name/tutorialoutletMath 133 – unit 2 individual project name/tutorialoutlet
Math 133 – unit 2 individual project name/tutorialoutletCleasbyz
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchartfika sweety
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
 
MATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMMATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMalbert0102
 
Using Mathematica for computational learning
Using Mathematica for computational learningUsing Mathematica for computational learning
Using Mathematica for computational learningMiles Ford
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxinfantsuk
 
power point presentation on object oriented programming functions concepts
power point presentation on object oriented programming functions conceptspower point presentation on object oriented programming functions concepts
power point presentation on object oriented programming functions conceptsbhargavi804095
 
Programming presentation
Programming presentationProgramming presentation
Programming presentationFiaz Khokhar
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designerBhushan Rajgure
 

Semelhante a Design a system in C++ that lets the user perform math operations (sum.docx (18)

Operator oveerloading
Operator oveerloadingOperator oveerloading
Operator oveerloading
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning material
 
Visual Logic Project - 1
Visual Logic Project - 1Visual Logic Project - 1
Visual Logic Project - 1
 
C language operators
C language operatorsC language operators
C language operators
 
Math 133 – unit 2 individual project name/tutorialoutlet
Math 133 – unit 2 individual project name/tutorialoutletMath 133 – unit 2 individual project name/tutorialoutlet
Math 133 – unit 2 individual project name/tutorialoutlet
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
Pseudocode algorithim flowchart
Pseudocode algorithim flowchartPseudocode algorithim flowchart
Pseudocode algorithim flowchart
 
Operators
OperatorsOperators
Operators
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docx
 
MATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COMMATH 133 / TUTORIALOUTLET DOT COM
MATH 133 / TUTORIALOUTLET DOT COM
 
Using Mathematica for computational learning
Using Mathematica for computational learningUsing Mathematica for computational learning
Using Mathematica for computational learning
 
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docxM166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
M166Calculus” ProjectDue Wednesday, December 9, 2015PROJ.docx
 
C++ Functions.ppt
C++ Functions.pptC++ Functions.ppt
C++ Functions.ppt
 
power point presentation on object oriented programming functions concepts
power point presentation on object oriented programming functions conceptspower point presentation on object oriented programming functions concepts
power point presentation on object oriented programming functions concepts
 
Lesson 4.1 completing the problem solving process
Lesson 4.1 completing the problem solving processLesson 4.1 completing the problem solving process
Lesson 4.1 completing the problem solving process
 
Programming presentation
Programming presentationProgramming presentation
Programming presentation
 
Report exchange designer
Report exchange designerReport exchange designer
Report exchange designer
 
Ch03
Ch03Ch03
Ch03
 

Mais de Trevorod6Turnery

Dne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docxDne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docxTrevorod6Turnery
 
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docxdissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docxTrevorod6Turnery
 
Disney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docxDisney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docxTrevorod6Turnery
 
Discuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docxDiscuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docxTrevorod6Turnery
 
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docxDiscuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docxTrevorod6Turnery
 
Discuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docxDiscuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docxTrevorod6Turnery
 
Discuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docxDiscuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docxTrevorod6Turnery
 
Discuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docxDiscuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docxTrevorod6Turnery
 
Discuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docxDiscuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docxTrevorod6Turnery
 
Discuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docxDiscuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docxTrevorod6Turnery
 
Discuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docxDiscuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docxTrevorod6Turnery
 
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docxDiscuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docxTrevorod6Turnery
 
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docxDisaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docxTrevorod6Turnery
 
Discount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docxDiscount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docxTrevorod6Turnery
 
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docxDiffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docxTrevorod6Turnery
 
difference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docxdifference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docxTrevorod6Turnery
 
Diane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docxDiane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docxTrevorod6Turnery
 
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docxDiabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docxTrevorod6Turnery
 
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docxDiacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docxTrevorod6Turnery
 
Develop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docxDevelop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docxTrevorod6Turnery
 

Mais de Trevorod6Turnery (20)

Dne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docxDne hundred college seniors attending a career fair at a university we.docx
Dne hundred college seniors attending a career fair at a university we.docx
 
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docxdissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
dissoiving nonpolar (hydrophobic) substances ithe bentene and turpenti.docx
 
Disney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docxDisney streaming)- What are the main trade-offs between being a conten.docx
Disney streaming)- What are the main trade-offs between being a conten.docx
 
Discuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docxDiscuss your experience in creating your Network Business Plan- In you.docx
Discuss your experience in creating your Network Business Plan- In you.docx
 
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docxDiscuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
Discuss Virtualization and Cloud computing in a paragraph or 2 thanks.docx
 
Discuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docxDiscuss the various disorders of the skeletal system- their causes- sy.docx
Discuss the various disorders of the skeletal system- their causes- sy.docx
 
Discuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docxDiscuss how pay for performance incentives would NOT improve the quali.docx
Discuss how pay for performance incentives would NOT improve the quali.docx
 
Discuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docxDiscuss in detail the role of the stakeholders in the individual Devel.docx
Discuss in detail the role of the stakeholders in the individual Devel.docx
 
Discuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docxDiscuss the characteristics of the functional- divisional- and matrix.docx
Discuss the characteristics of the functional- divisional- and matrix.docx
 
Discuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docxDiscuss the benefits and risk of consuming red meat- and even mor so-.docx
Discuss the benefits and risk of consuming red meat- and even mor so-.docx
 
Discuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docxDiscuss some of the physical and chemical factors involved in the comp.docx
Discuss some of the physical and chemical factors involved in the comp.docx
 
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docxDiscuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
Discuss in 1-2 paragraphs why Richard Scrushy is an ethical or unethic.docx
 
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docxDisaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
Disaster Recovery Plan (DRP) Establish a DRP Policy in one to two page.docx
 
Discount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docxDiscount Airlines is preparing a contribution margin report segmented.docx
Discount Airlines is preparing a contribution margin report segmented.docx
 
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docxDiffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
Diffusion alone accounts for pulmonary gas exchange- Define diffusion.docx
 
difference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docxdifference between straight line depreciation and declining balance de.docx
difference between straight line depreciation and declining balance de.docx
 
Diane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docxDiane quickly realized that Sunny was a bigger help to her than anyone.docx
Diane quickly realized that Sunny was a bigger help to her than anyone.docx
 
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docxDiabetes insipidus occurs when the lobe of the pituitary gland no long.docx
Diabetes insipidus occurs when the lobe of the pituitary gland no long.docx
 
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docxDiacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
Diacylglycerol (DAG)- inositol triphosphate (IP3)- and calcium ions ar.docx
 
Develop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docxDevelop C functions for the following in a Binary Search tree.docx
Develop C functions for the following in a Binary Search tree.docx
 

Último

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
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
 

Último (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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
 

Design a system in C++ that lets the user perform math operations (sum.docx

  • 1. Design a system in C++ that lets the user perform math operations (sum, difference, multiplication, division, average) on two numbers. The C++ program must be menu-driven, allowing the user to select an arithmetic operation from the list and input the numbers. Furthermore, your program must consist of the following functions: showChoice: This function shows the options to the user and explains how to enter data. Add: This function accepts two numbers as arguments and returns the sum. Subtract: This function accepts two numbers as arguments and returns their difference. Multiply: This function accepts two numbers as arguments and returns the product. Divide: This function accepts two numbers as arguments and returns a quotient. Average: This function accepts two numbers as arguments and returns their average.