SlideShare a Scribd company logo
TION 2 Implementation Write an int value return function named binary_to_decimal that accepts
a string parameter. The function will convert an 8 character length string from binary to decimal
and returns the decimal. Do not use the C + + built-in functionality for this assignment, write the
code from scratch. Testing Main Program Using loops prompt the user for a binary string value,
validate the string for length 8 , the string must contain only 1 and 0 s (use the string contains
function to make this easier). The program will run until the user opts out (types a character to
exit the program).

More Related Content

More from mohdsami3333

To provide you with an opportunity to communicate service information.pdf
To provide you with an opportunity to communicate service information.pdfTo provide you with an opportunity to communicate service information.pdf
To provide you with an opportunity to communicate service information.pdf
mohdsami3333
 
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdfTo implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
mohdsami3333
 
Tiktaalik is a 375 million year old transitional fossil that has the s.pdf
Tiktaalik is a 375 million year old transitional fossil that has the s.pdfTiktaalik is a 375 million year old transitional fossil that has the s.pdf
Tiktaalik is a 375 million year old transitional fossil that has the s.pdf
mohdsami3333
 
To identify the Network layer address of a device located in a differe.pdf
To identify the Network layer address of a device located in a differe.pdfTo identify the Network layer address of a device located in a differe.pdf
To identify the Network layer address of a device located in a differe.pdf
mohdsami3333
 
To develop an encyclopaedia article with a summary of information on t.pdf
To develop an encyclopaedia article with a summary of information on t.pdfTo develop an encyclopaedia article with a summary of information on t.pdf
To develop an encyclopaedia article with a summary of information on t.pdf
mohdsami3333
 
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdfTim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
mohdsami3333
 
Three Scholarships are available for students with high academic achie.pdf
Three Scholarships are available for students with high academic achie.pdfThree Scholarships are available for students with high academic achie.pdf
Three Scholarships are available for students with high academic achie.pdf
mohdsami3333
 
To deal with opioid crisis there are SCS established in communities ac.pdf
To deal with opioid crisis there are SCS established in communities ac.pdfTo deal with opioid crisis there are SCS established in communities ac.pdf
To deal with opioid crisis there are SCS established in communities ac.pdf
mohdsami3333
 
To construct conhdence interval the Select one- A- the mean of the pop.pdf
To construct conhdence interval the Select one- A- the mean of the pop.pdfTo construct conhdence interval the Select one- A- the mean of the pop.pdf
To construct conhdence interval the Select one- A- the mean of the pop.pdf
mohdsami3333
 
Three construction companies in the Vancouver area- Mercator Construct.pdf
Three construction companies in the Vancouver area- Mercator Construct.pdfThree construction companies in the Vancouver area- Mercator Construct.pdf
Three construction companies in the Vancouver area- Mercator Construct.pdf
mohdsami3333
 
tion list In a standard Noria datribution- if the area to the lett of.pdf
tion list In a standard Noria datribution- if the area to the lett of.pdftion list In a standard Noria datribution- if the area to the lett of.pdf
tion list In a standard Noria datribution- if the area to the lett of.pdf
mohdsami3333
 
This will be for linux- There are multiple files with the same name on.pdf
This will be for linux- There are multiple files with the same name on.pdfThis will be for linux- There are multiple files with the same name on.pdf
This will be for linux- There are multiple files with the same name on.pdf
mohdsami3333
 
This week we will revisit the Fraction calculator yet again- From a us.pdf
This week we will revisit the Fraction calculator yet again- From a us.pdfThis week we will revisit the Fraction calculator yet again- From a us.pdf
This week we will revisit the Fraction calculator yet again- From a us.pdf
mohdsami3333
 
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdfThree girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
mohdsami3333
 
Though science fiction has produced stories like The Blob- we do not s.pdf
Though science fiction has produced stories like The Blob- we do not s.pdfThough science fiction has produced stories like The Blob- we do not s.pdf
Though science fiction has produced stories like The Blob- we do not s.pdf
mohdsami3333
 
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdfThis UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
mohdsami3333
 
This tutorial will take you step-by-step through Step 4- Identify the.pdf
This tutorial will take you step-by-step through Step 4- Identify the.pdfThis tutorial will take you step-by-step through Step 4- Identify the.pdf
This tutorial will take you step-by-step through Step 4- Identify the.pdf
mohdsami3333
 
This tutorial will take you step-by-step through the question- Shell c.pdf
This tutorial will take you step-by-step through the question- Shell c.pdfThis tutorial will take you step-by-step through the question- Shell c.pdf
This tutorial will take you step-by-step through the question- Shell c.pdf
mohdsami3333
 
This task is an extra point - worth 10 points- Write a Web Page that w.pdf
This task is an extra point - worth 10 points- Write a Web Page that w.pdfThis task is an extra point - worth 10 points- Write a Web Page that w.pdf
This task is an extra point - worth 10 points- Write a Web Page that w.pdf
mohdsami3333
 

More from mohdsami3333 (19)

To provide you with an opportunity to communicate service information.pdf
To provide you with an opportunity to communicate service information.pdfTo provide you with an opportunity to communicate service information.pdf
To provide you with an opportunity to communicate service information.pdf
 
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdfTo implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
To implement a 1-bit adder- write a Boolean expression for the Carry f.pdf
 
Tiktaalik is a 375 million year old transitional fossil that has the s.pdf
Tiktaalik is a 375 million year old transitional fossil that has the s.pdfTiktaalik is a 375 million year old transitional fossil that has the s.pdf
Tiktaalik is a 375 million year old transitional fossil that has the s.pdf
 
To identify the Network layer address of a device located in a differe.pdf
To identify the Network layer address of a device located in a differe.pdfTo identify the Network layer address of a device located in a differe.pdf
To identify the Network layer address of a device located in a differe.pdf
 
To develop an encyclopaedia article with a summary of information on t.pdf
To develop an encyclopaedia article with a summary of information on t.pdfTo develop an encyclopaedia article with a summary of information on t.pdf
To develop an encyclopaedia article with a summary of information on t.pdf
 
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdfTim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
Tim Trepid is highly risk-averse while Mike Macho actually enjoys taki.pdf
 
Three Scholarships are available for students with high academic achie.pdf
Three Scholarships are available for students with high academic achie.pdfThree Scholarships are available for students with high academic achie.pdf
Three Scholarships are available for students with high academic achie.pdf
 
To deal with opioid crisis there are SCS established in communities ac.pdf
To deal with opioid crisis there are SCS established in communities ac.pdfTo deal with opioid crisis there are SCS established in communities ac.pdf
To deal with opioid crisis there are SCS established in communities ac.pdf
 
To construct conhdence interval the Select one- A- the mean of the pop.pdf
To construct conhdence interval the Select one- A- the mean of the pop.pdfTo construct conhdence interval the Select one- A- the mean of the pop.pdf
To construct conhdence interval the Select one- A- the mean of the pop.pdf
 
Three construction companies in the Vancouver area- Mercator Construct.pdf
Three construction companies in the Vancouver area- Mercator Construct.pdfThree construction companies in the Vancouver area- Mercator Construct.pdf
Three construction companies in the Vancouver area- Mercator Construct.pdf
 
tion list In a standard Noria datribution- if the area to the lett of.pdf
tion list In a standard Noria datribution- if the area to the lett of.pdftion list In a standard Noria datribution- if the area to the lett of.pdf
tion list In a standard Noria datribution- if the area to the lett of.pdf
 
This will be for linux- There are multiple files with the same name on.pdf
This will be for linux- There are multiple files with the same name on.pdfThis will be for linux- There are multiple files with the same name on.pdf
This will be for linux- There are multiple files with the same name on.pdf
 
This week we will revisit the Fraction calculator yet again- From a us.pdf
This week we will revisit the Fraction calculator yet again- From a us.pdfThis week we will revisit the Fraction calculator yet again- From a us.pdf
This week we will revisit the Fraction calculator yet again- From a us.pdf
 
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdfThree girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
Three girls (Tiffany- Ashley- and Jessie) are going to have a friendly (1).pdf
 
Though science fiction has produced stories like The Blob- we do not s.pdf
Though science fiction has produced stories like The Blob- we do not s.pdfThough science fiction has produced stories like The Blob- we do not s.pdf
Though science fiction has produced stories like The Blob- we do not s.pdf
 
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdfThis UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
This UCP1 protein allows the protons (H+) of the mitochondrial interme.pdf
 
This tutorial will take you step-by-step through Step 4- Identify the.pdf
This tutorial will take you step-by-step through Step 4- Identify the.pdfThis tutorial will take you step-by-step through Step 4- Identify the.pdf
This tutorial will take you step-by-step through Step 4- Identify the.pdf
 
This tutorial will take you step-by-step through the question- Shell c.pdf
This tutorial will take you step-by-step through the question- Shell c.pdfThis tutorial will take you step-by-step through the question- Shell c.pdf
This tutorial will take you step-by-step through the question- Shell c.pdf
 
This task is an extra point - worth 10 points- Write a Web Page that w.pdf
This task is an extra point - worth 10 points- Write a Web Page that w.pdfThis task is an extra point - worth 10 points- Write a Web Page that w.pdf
This task is an extra point - worth 10 points- Write a Web Page that w.pdf
 

Recently uploaded

220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
sonukumargpnirsadhan
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
Prof. Dr. K. Adisesha
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
danielkiash986
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
Payaamvohra1
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 

Recently uploaded (20)

220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
 
Data Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsxData Structure using C by Dr. K Adisesha .ppsx
Data Structure using C by Dr. K Adisesha .ppsx
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Pharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brubPharmaceutics Pharmaceuticals best of brub
Pharmaceutics Pharmaceuticals best of brub
 
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
NIPER 2024 MEMORY BASED QUESTIONS.ANSWERS TO NIPER 2024 QUESTIONS.NIPER JEE 2...
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 

TION 2 Implementation Write an int value return function named binary_.pdf

  • 1. TION 2 Implementation Write an int value return function named binary_to_decimal that accepts a string parameter. The function will convert an 8 character length string from binary to decimal and returns the decimal. Do not use the C + + built-in functionality for this assignment, write the code from scratch. Testing Main Program Using loops prompt the user for a binary string value, validate the string for length 8 , the string must contain only 1 and 0 s (use the string contains function to make this easier). The program will run until the user opts out (types a character to exit the program).