SlideShare a Scribd company logo
1 of 1
Download to read offline
Question 5 Write a C++ program to determine when resonance occurs in an ac circuit. Resonance
occurs when: L=1/C Where =2f L (inductance), C (capacitance) and f (frequency). Your program
must: i. obtain the values of the circuit components and supply frequency ii. calculate inductive
reactance L, and capacitive reactance 1/C, iii. include a function to output the string "Resonance"
if L=1/C, otherwise should output "No resonance".

More Related Content

More from ADARSHPATNA

Question 5 Within hybrid zones if the fitness of hybrids is.pdf
Question 5 Within hybrid zones if the fitness of hybrids is.pdfQuestion 5 Within hybrid zones if the fitness of hybrids is.pdf
Question 5 Within hybrid zones if the fitness of hybrids is.pdfADARSHPATNA
 
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdf
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdfQuestion 5 Investment Evaluation Mark Zuckerberg was crazy.pdf
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdfADARSHPATNA
 
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdf
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdfQuestion 5 28 February 2022 Equipment R20 000 Accumulated D.pdf
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdfADARSHPATNA
 
Question 4 You are given the following state table a Dr.pdf
Question 4 You are given the following state table a Dr.pdfQuestion 4 You are given the following state table a Dr.pdf
Question 4 You are given the following state table a Dr.pdfADARSHPATNA
 
Question 4 25 points In his speech Hypponen gives examp.pdf
Question 4 25 points In his speech Hypponen gives examp.pdfQuestion 4 25 points In his speech Hypponen gives examp.pdf
Question 4 25 points In his speech Hypponen gives examp.pdfADARSHPATNA
 
Question 4 10 points Over the past 25 years an economy to.pdf
Question 4 10 points Over the past 25 years an economy to.pdfQuestion 4 10 points Over the past 25 years an economy to.pdf
Question 4 10 points Over the past 25 years an economy to.pdfADARSHPATNA
 
QUESTION 4 UOT Industries has a target debtequity ratio of.pdf
QUESTION 4 UOT Industries has a target debtequity ratio of.pdfQUESTION 4 UOT Industries has a target debtequity ratio of.pdf
QUESTION 4 UOT Industries has a target debtequity ratio of.pdfADARSHPATNA
 
Question 4 15pts Which of the following best describes Pbo.pdf
Question 4 15pts Which of the following best describes Pbo.pdfQuestion 4 15pts Which of the following best describes Pbo.pdf
Question 4 15pts Which of the following best describes Pbo.pdfADARSHPATNA
 
Question 4 Points A Write the definition of a generic con.pdf
Question 4 Points A Write the definition of a generic con.pdfQuestion 4 Points A Write the definition of a generic con.pdf
Question 4 Points A Write the definition of a generic con.pdfADARSHPATNA
 
Question 4 a Let pX VarX be a risk measure associate.pdf
Question 4 a Let pX  VarX be a risk measure associate.pdfQuestion 4 a Let pX  VarX be a risk measure associate.pdf
Question 4 a Let pX VarX be a risk measure associate.pdfADARSHPATNA
 
Question 4 In a classroom of 33 students 19 students are w.pdf
Question 4 In a classroom of 33 students 19 students are w.pdfQuestion 4 In a classroom of 33 students 19 students are w.pdf
Question 4 In a classroom of 33 students 19 students are w.pdfADARSHPATNA
 
Question 4 12 Marks Several established methods exist to a.pdf
Question 4 12 Marks Several established methods exist to a.pdfQuestion 4 12 Marks Several established methods exist to a.pdf
Question 4 12 Marks Several established methods exist to a.pdfADARSHPATNA
 
Question 4 4 pts The following data matrix includes 8 data p.pdf
Question 4 4 pts The following data matrix includes 8 data p.pdfQuestion 4 4 pts The following data matrix includes 8 data p.pdf
Question 4 4 pts The following data matrix includes 8 data p.pdfADARSHPATNA
 
QUESTION 4 25 marks Taxes is defined as the levy collected.pdf
QUESTION 4 25 marks Taxes is defined as the levy collected.pdfQUESTION 4 25 marks Taxes is defined as the levy collected.pdf
QUESTION 4 25 marks Taxes is defined as the levy collected.pdfADARSHPATNA
 
Question 4 15 Create a list of all the proteins involved i.pdf
Question 4 15 Create a list of all the proteins involved i.pdfQuestion 4 15 Create a list of all the proteins involved i.pdf
Question 4 15 Create a list of all the proteins involved i.pdfADARSHPATNA
 
Question 4 15 points On March A Japanese company expecte.pdf
Question 4 15 points On March A Japanese company expecte.pdfQuestion 4 15 points On March A Japanese company expecte.pdf
Question 4 15 points On March A Japanese company expecte.pdfADARSHPATNA
 
Question 4 14 points Segmentation is another approach to .pdf
Question 4 14 points Segmentation is another approach to .pdfQuestion 4 14 points Segmentation is another approach to .pdf
Question 4 14 points Segmentation is another approach to .pdfADARSHPATNA
 
Question 33 Protists the most nutritionally diverse of all.pdf
Question 33 Protists the most nutritionally diverse of all.pdfQuestion 33 Protists the most nutritionally diverse of all.pdf
Question 33 Protists the most nutritionally diverse of all.pdfADARSHPATNA
 
Question 30 In the circular flow diagram as resources good.pdf
Question 30 In the circular flow diagram as resources good.pdfQuestion 30 In the circular flow diagram as resources good.pdf
Question 30 In the circular flow diagram as resources good.pdfADARSHPATNA
 
Question 22 The QuickBooks Online environment is best descr.pdf
Question 22 The QuickBooks Online environment is best descr.pdfQuestion 22 The QuickBooks Online environment is best descr.pdf
Question 22 The QuickBooks Online environment is best descr.pdfADARSHPATNA
 

More from ADARSHPATNA (20)

Question 5 Within hybrid zones if the fitness of hybrids is.pdf
Question 5 Within hybrid zones if the fitness of hybrids is.pdfQuestion 5 Within hybrid zones if the fitness of hybrids is.pdf
Question 5 Within hybrid zones if the fitness of hybrids is.pdf
 
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdf
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdfQuestion 5 Investment Evaluation Mark Zuckerberg was crazy.pdf
Question 5 Investment Evaluation Mark Zuckerberg was crazy.pdf
 
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdf
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdfQuestion 5 28 February 2022 Equipment R20 000 Accumulated D.pdf
Question 5 28 February 2022 Equipment R20 000 Accumulated D.pdf
 
Question 4 You are given the following state table a Dr.pdf
Question 4 You are given the following state table a Dr.pdfQuestion 4 You are given the following state table a Dr.pdf
Question 4 You are given the following state table a Dr.pdf
 
Question 4 25 points In his speech Hypponen gives examp.pdf
Question 4 25 points In his speech Hypponen gives examp.pdfQuestion 4 25 points In his speech Hypponen gives examp.pdf
Question 4 25 points In his speech Hypponen gives examp.pdf
 
Question 4 10 points Over the past 25 years an economy to.pdf
Question 4 10 points Over the past 25 years an economy to.pdfQuestion 4 10 points Over the past 25 years an economy to.pdf
Question 4 10 points Over the past 25 years an economy to.pdf
 
QUESTION 4 UOT Industries has a target debtequity ratio of.pdf
QUESTION 4 UOT Industries has a target debtequity ratio of.pdfQUESTION 4 UOT Industries has a target debtequity ratio of.pdf
QUESTION 4 UOT Industries has a target debtequity ratio of.pdf
 
Question 4 15pts Which of the following best describes Pbo.pdf
Question 4 15pts Which of the following best describes Pbo.pdfQuestion 4 15pts Which of the following best describes Pbo.pdf
Question 4 15pts Which of the following best describes Pbo.pdf
 
Question 4 Points A Write the definition of a generic con.pdf
Question 4 Points A Write the definition of a generic con.pdfQuestion 4 Points A Write the definition of a generic con.pdf
Question 4 Points A Write the definition of a generic con.pdf
 
Question 4 a Let pX VarX be a risk measure associate.pdf
Question 4 a Let pX  VarX be a risk measure associate.pdfQuestion 4 a Let pX  VarX be a risk measure associate.pdf
Question 4 a Let pX VarX be a risk measure associate.pdf
 
Question 4 In a classroom of 33 students 19 students are w.pdf
Question 4 In a classroom of 33 students 19 students are w.pdfQuestion 4 In a classroom of 33 students 19 students are w.pdf
Question 4 In a classroom of 33 students 19 students are w.pdf
 
Question 4 12 Marks Several established methods exist to a.pdf
Question 4 12 Marks Several established methods exist to a.pdfQuestion 4 12 Marks Several established methods exist to a.pdf
Question 4 12 Marks Several established methods exist to a.pdf
 
Question 4 4 pts The following data matrix includes 8 data p.pdf
Question 4 4 pts The following data matrix includes 8 data p.pdfQuestion 4 4 pts The following data matrix includes 8 data p.pdf
Question 4 4 pts The following data matrix includes 8 data p.pdf
 
QUESTION 4 25 marks Taxes is defined as the levy collected.pdf
QUESTION 4 25 marks Taxes is defined as the levy collected.pdfQUESTION 4 25 marks Taxes is defined as the levy collected.pdf
QUESTION 4 25 marks Taxes is defined as the levy collected.pdf
 
Question 4 15 Create a list of all the proteins involved i.pdf
Question 4 15 Create a list of all the proteins involved i.pdfQuestion 4 15 Create a list of all the proteins involved i.pdf
Question 4 15 Create a list of all the proteins involved i.pdf
 
Question 4 15 points On March A Japanese company expecte.pdf
Question 4 15 points On March A Japanese company expecte.pdfQuestion 4 15 points On March A Japanese company expecte.pdf
Question 4 15 points On March A Japanese company expecte.pdf
 
Question 4 14 points Segmentation is another approach to .pdf
Question 4 14 points Segmentation is another approach to .pdfQuestion 4 14 points Segmentation is another approach to .pdf
Question 4 14 points Segmentation is another approach to .pdf
 
Question 33 Protists the most nutritionally diverse of all.pdf
Question 33 Protists the most nutritionally diverse of all.pdfQuestion 33 Protists the most nutritionally diverse of all.pdf
Question 33 Protists the most nutritionally diverse of all.pdf
 
Question 30 In the circular flow diagram as resources good.pdf
Question 30 In the circular flow diagram as resources good.pdfQuestion 30 In the circular flow diagram as resources good.pdf
Question 30 In the circular flow diagram as resources good.pdf
 
Question 22 The QuickBooks Online environment is best descr.pdf
Question 22 The QuickBooks Online environment is best descr.pdfQuestion 22 The QuickBooks Online environment is best descr.pdf
Question 22 The QuickBooks Online environment is best descr.pdf
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
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 Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu 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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
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 Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Question 5 Write a C++ program to determine when resonance o.pdf

  • 1. Question 5 Write a C++ program to determine when resonance occurs in an ac circuit. Resonance occurs when: L=1/C Where =2f L (inductance), C (capacitance) and f (frequency). Your program must: i. obtain the values of the circuit components and supply frequency ii. calculate inductive reactance L, and capacitive reactance 1/C, iii. include a function to output the string "Resonance" if L=1/C, otherwise should output "No resonance".