SlideShare a Scribd company logo
1 of 1
Description: - Write a function called countLogs that takes in 4 logicals as inputs and has 2
outputs that represent the quantity of trues and quantity of falses respectively. Hint: double(true)
1 Examples: [ numT1 numF1] = countlogs(true, true, true, false) > numT 1 = 3 > numF 1 = 1
[numT2 numF2] = countlogs (false, false, true, false) numT1 = 1 > numF1 = 3 [numT3 numF3 ]
= countlogs (false, false, false, false) numT1 = 0 >> numF1 = 4

More Related Content

More from cmichael14

Define Asynchronous and Synchronous connection at data link layer and.docx
Define Asynchronous and Synchronous connection at data link layer and.docxDefine Asynchronous and Synchronous connection at data link layer and.docx
Define Asynchronous and Synchronous connection at data link layer and.docxcmichael14
 
Decreasing the driving forces and increasing the restraining forces- M.docx
Decreasing the driving forces and increasing the restraining forces- M.docxDecreasing the driving forces and increasing the restraining forces- M.docx
Decreasing the driving forces and increasing the restraining forces- M.docxcmichael14
 
Do the antigen protein vaccines contain all the proteins in the virus.docx
Do the antigen protein vaccines contain all the proteins in the virus.docxDo the antigen protein vaccines contain all the proteins in the virus.docx
Do the antigen protein vaccines contain all the proteins in the virus.docxcmichael14
 
During human development- which statement is correct regarding primary.docx
During human development- which statement is correct regarding primary.docxDuring human development- which statement is correct regarding primary.docx
During human development- which statement is correct regarding primary.docxcmichael14
 
During a restructuring- what could happen to the balance sheet of a co.docx
During a restructuring- what could happen to the balance sheet of a co.docxDuring a restructuring- what could happen to the balance sheet of a co.docx
During a restructuring- what could happen to the balance sheet of a co.docxcmichael14
 
Debbie makes porcelain plates in her home and sells them to the Opus g.docx
Debbie makes porcelain plates in her home and sells them to the Opus g.docxDebbie makes porcelain plates in her home and sells them to the Opus g.docx
Debbie makes porcelain plates in her home and sells them to the Opus g.docxcmichael14
 
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docx
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docxDue Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docx
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docxcmichael14
 
Draw a graph showing an action potential in a ventricular myocyte cell.docx
Draw a graph showing an action potential in a ventricular myocyte cell.docxDraw a graph showing an action potential in a ventricular myocyte cell.docx
Draw a graph showing an action potential in a ventricular myocyte cell.docxcmichael14
 
Drag and drop the DNS lookup commands from the left onto the functions.docx
Drag and drop the DNS lookup commands from the left onto the functions.docxDrag and drop the DNS lookup commands from the left onto the functions.docx
Drag and drop the DNS lookup commands from the left onto the functions.docxcmichael14
 
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docx
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docxDraw a 5 point star- tougher than you think--- (Hint- circle - polar c.docx
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docxcmichael14
 
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docx
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docxDr- Kelly wins a trip to the a beach destination (insert your dream be.docx
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docxcmichael14
 
Dr- Triboli sampled n-47 people and asked them how many siblings they.docx
Dr- Triboli sampled n-47 people and asked them how many siblings they.docxDr- Triboli sampled n-47 people and asked them how many siblings they.docx
Dr- Triboli sampled n-47 people and asked them how many siblings they.docxcmichael14
 
dont copy with other answer 1-How can the CPU recognize the device req.docx
dont copy with other answer 1-How can the CPU recognize the device req.docxdont copy with other answer 1-How can the CPU recognize the device req.docx
dont copy with other answer 1-How can the CPU recognize the device req.docxcmichael14
 
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docx
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docxDonovan invests $60-000 lor a 30 percent interest in a portnership in.docx
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docxcmichael14
 
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docx
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docxDonovan's $200-000 CD matures- He deposits $20-000 into his checking a.docx
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docxcmichael14
 
Domain and Protein Folding - Expond on the modular noture of protein a.docx
Domain and Protein Folding - Expond on the modular noture of protein a.docxDomain and Protein Folding - Expond on the modular noture of protein a.docx
Domain and Protein Folding - Expond on the modular noture of protein a.docxcmichael14
 
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docx
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docxDo the following on 2 pages- double-spaced (500 words)- Analyze the ca.docx
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docxcmichael14
 
do note copy other chegg answers or you will get down vote Given the f.docx
do note copy other chegg answers or you will get down vote Given the f.docxdo note copy other chegg answers or you will get down vote Given the f.docx
do note copy other chegg answers or you will get down vote Given the f.docxcmichael14
 
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docx
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docxDick- a cash basis taxpayer- incorporates his sole proprietorship- He.docx
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docxcmichael14
 
Different brands enforce different brand standards- Name three brand s.docx
Different brands enforce different brand standards- Name three brand s.docxDifferent brands enforce different brand standards- Name three brand s.docx
Different brands enforce different brand standards- Name three brand s.docxcmichael14
 

More from cmichael14 (20)

Define Asynchronous and Synchronous connection at data link layer and.docx
Define Asynchronous and Synchronous connection at data link layer and.docxDefine Asynchronous and Synchronous connection at data link layer and.docx
Define Asynchronous and Synchronous connection at data link layer and.docx
 
Decreasing the driving forces and increasing the restraining forces- M.docx
Decreasing the driving forces and increasing the restraining forces- M.docxDecreasing the driving forces and increasing the restraining forces- M.docx
Decreasing the driving forces and increasing the restraining forces- M.docx
 
Do the antigen protein vaccines contain all the proteins in the virus.docx
Do the antigen protein vaccines contain all the proteins in the virus.docxDo the antigen protein vaccines contain all the proteins in the virus.docx
Do the antigen protein vaccines contain all the proteins in the virus.docx
 
During human development- which statement is correct regarding primary.docx
During human development- which statement is correct regarding primary.docxDuring human development- which statement is correct regarding primary.docx
During human development- which statement is correct regarding primary.docx
 
During a restructuring- what could happen to the balance sheet of a co.docx
During a restructuring- what could happen to the balance sheet of a co.docxDuring a restructuring- what could happen to the balance sheet of a co.docx
During a restructuring- what could happen to the balance sheet of a co.docx
 
Debbie makes porcelain plates in her home and sells them to the Opus g.docx
Debbie makes porcelain plates in her home and sells them to the Opus g.docxDebbie makes porcelain plates in her home and sells them to the Opus g.docx
Debbie makes porcelain plates in her home and sells them to the Opus g.docx
 
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docx
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docxDue Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docx
Due Feb 6 by 11-59pm Submitting a fle upload Illustrate the concept of.docx
 
Draw a graph showing an action potential in a ventricular myocyte cell.docx
Draw a graph showing an action potential in a ventricular myocyte cell.docxDraw a graph showing an action potential in a ventricular myocyte cell.docx
Draw a graph showing an action potential in a ventricular myocyte cell.docx
 
Drag and drop the DNS lookup commands from the left onto the functions.docx
Drag and drop the DNS lookup commands from the left onto the functions.docxDrag and drop the DNS lookup commands from the left onto the functions.docx
Drag and drop the DNS lookup commands from the left onto the functions.docx
 
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docx
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docxDraw a 5 point star- tougher than you think--- (Hint- circle - polar c.docx
Draw a 5 point star- tougher than you think--- (Hint- circle - polar c.docx
 
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docx
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docxDr- Kelly wins a trip to the a beach destination (insert your dream be.docx
Dr- Kelly wins a trip to the a beach destination (insert your dream be.docx
 
Dr- Triboli sampled n-47 people and asked them how many siblings they.docx
Dr- Triboli sampled n-47 people and asked them how many siblings they.docxDr- Triboli sampled n-47 people and asked them how many siblings they.docx
Dr- Triboli sampled n-47 people and asked them how many siblings they.docx
 
dont copy with other answer 1-How can the CPU recognize the device req.docx
dont copy with other answer 1-How can the CPU recognize the device req.docxdont copy with other answer 1-How can the CPU recognize the device req.docx
dont copy with other answer 1-How can the CPU recognize the device req.docx
 
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docx
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docxDonovan invests $60-000 lor a 30 percent interest in a portnership in.docx
Donovan invests $60-000 lor a 30 percent interest in a portnership in.docx
 
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docx
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docxDonovan's $200-000 CD matures- He deposits $20-000 into his checking a.docx
Donovan's $200-000 CD matures- He deposits $20-000 into his checking a.docx
 
Domain and Protein Folding - Expond on the modular noture of protein a.docx
Domain and Protein Folding - Expond on the modular noture of protein a.docxDomain and Protein Folding - Expond on the modular noture of protein a.docx
Domain and Protein Folding - Expond on the modular noture of protein a.docx
 
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docx
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docxDo the following on 2 pages- double-spaced (500 words)- Analyze the ca.docx
Do the following on 2 pages- double-spaced (500 words)- Analyze the ca.docx
 
do note copy other chegg answers or you will get down vote Given the f.docx
do note copy other chegg answers or you will get down vote Given the f.docxdo note copy other chegg answers or you will get down vote Given the f.docx
do note copy other chegg answers or you will get down vote Given the f.docx
 
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docx
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docxDick- a cash basis taxpayer- incorporates his sole proprietorship- He.docx
Dick- a cash basis taxpayer- incorporates his sole proprietorship- He.docx
 
Different brands enforce different brand standards- Name three brand s.docx
Different brands enforce different brand standards- Name three brand s.docxDifferent brands enforce different brand standards- Name three brand s.docx
Different brands enforce different brand standards- Name three brand s.docx
 

Recently uploaded

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Recently uploaded (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
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
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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.
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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
 
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
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Description- - Write a function called countLogs that takes in 4 logic.docx

  • 1. Description: - Write a function called countLogs that takes in 4 logicals as inputs and has 2 outputs that represent the quantity of trues and quantity of falses respectively. Hint: double(true) 1 Examples: [ numT1 numF1] = countlogs(true, true, true, false) > numT 1 = 3 > numF 1 = 1 [numT2 numF2] = countlogs (false, false, true, false) numT1 = 1 > numF1 = 3 [numT3 numF3 ] = countlogs (false, false, false, false) numT1 = 0 >> numF1 = 4