SlideShare a Scribd company logo

You have been assigned to write the code and unit test a module whic.docx

You have been assigned to write the code and unit test a module which tries to identify two employee names in a company employee database which might actually be the same employee.  Your module uses the following method:  If one name contains a middle name and the other contains a middle initial which is consistent with the middle name, the two might be the same; If the two names differ by only one or two letters, they might be the same; If one name has a suffix such as Junior or Jr. or Ph.D., and the other is identical except for not having a suffix or perhaps having a different suffix, the two names might be the same. What unit testing methods would you use for this module?  Why?  Provide at least two possible unit tests for the module using each of the methods you have selected. .

1 of 1
Download to read offline
You have been assigned to write the code and unit test a module
which tries to identify two employee names in a company
employee database which might actually be the same employee.
Your module uses the following method:
If one name contains a middle name and the other contains a
middle initial which is consistent with the middle name, the two
might be the same;
If the two names differ by only one or two letters, they might be
the same;
If one name has a suffix such as Junior or Jr. or Ph.D., and the
other is identical except for not having a suffix or perhaps
having a different suffix, the two names might be the same.
What unit testing methods would you use for this module?
Why? Provide at least two possible unit tests for the module
using each of the methods you have selected.

Recommended

You have been chosen to present in front of your local governing boa.docx
You have been chosen to present in front of your local governing boa.docxYou have been chosen to present in front of your local governing boa.docx
You have been chosen to present in front of your local governing boa.docxmaxinesmith73660
 
You have been commissioned to create a manual covering the installat.docx
You have been commissioned to create a manual covering the installat.docxYou have been commissioned to create a manual covering the installat.docx
You have been commissioned to create a manual covering the installat.docxmaxinesmith73660
 
You have been challenged by a mentor you respect and admire to demon.docx
You have been challenged by a mentor you respect and admire to demon.docxYou have been challenged by a mentor you respect and admire to demon.docx
You have been challenged by a mentor you respect and admire to demon.docxmaxinesmith73660
 
You have been assigned as the new project manager for a one-year pro.docx
You have been assigned as the new project manager for a one-year pro.docxYou have been assigned as the new project manager for a one-year pro.docx
You have been assigned as the new project manager for a one-year pro.docxmaxinesmith73660
 
You have been assigned your first research project for a clien.docx
You have been assigned your first research project for a clien.docxYou have been assigned your first research project for a clien.docx
You have been assigned your first research project for a clien.docxmaxinesmith73660
 
You have been assigned to a section for this discussion. ( professor.docx
You have been assigned to a section for this discussion. ( professor.docxYou have been assigned to a section for this discussion. ( professor.docx
You have been assigned to a section for this discussion. ( professor.docxmaxinesmith73660
 
You have been assigned to analyze the project plan of a payroll syst.docx
You have been assigned to analyze the project plan of a payroll syst.docxYou have been assigned to analyze the project plan of a payroll syst.docx
You have been assigned to analyze the project plan of a payroll syst.docxmaxinesmith73660
 
You have been asked to to analyze the reports below.  The data has b.docx
You have been asked to to analyze the reports below.  The data has b.docxYou have been asked to to analyze the reports below.  The data has b.docx
You have been asked to to analyze the reports below.  The data has b.docxmaxinesmith73660
 

More Related Content

More from maxinesmith73660

You have been assigned the task of creating an assessment to measure.docx
You have been assigned the task of creating an assessment to measure.docxYou have been assigned the task of creating an assessment to measure.docx
You have been assigned the task of creating an assessment to measure.docxmaxinesmith73660
 
You have been asked to speak at a local high school about the opport.docx
You have been asked to speak at a local high school about the opport.docxYou have been asked to speak at a local high school about the opport.docx
You have been asked to speak at a local high school about the opport.docxmaxinesmith73660
 
You have been assigned the task as Marketing Manager to scan social .docx
You have been assigned the task as Marketing Manager to scan social .docxYou have been assigned the task as Marketing Manager to scan social .docx
You have been assigned the task as Marketing Manager to scan social .docxmaxinesmith73660
 
You have been asked will  to  a write three page research paper on M.docx
You have been asked will  to  a write three page research paper on M.docxYou have been asked will  to  a write three page research paper on M.docx
You have been asked will  to  a write three page research paper on M.docxmaxinesmith73660
 
You have been assigned 4 patients on an Intermediate Medical Car.docx
You have been assigned 4 patients on an Intermediate Medical Car.docxYou have been assigned 4 patients on an Intermediate Medical Car.docx
You have been assigned 4 patients on an Intermediate Medical Car.docxmaxinesmith73660
 
You have been asked to return to your alma mater and speak to curren.docx
You have been asked to return to your alma mater and speak to curren.docxYou have been asked to return to your alma mater and speak to curren.docx
You have been asked to return to your alma mater and speak to curren.docxmaxinesmith73660
 
You have been assigned a Cinema (Movie) of a person with a disabilit.docx
You have been assigned a Cinema (Movie) of a person with a disabilit.docxYou have been assigned a Cinema (Movie) of a person with a disabilit.docx
You have been assigned a Cinema (Movie) of a person with a disabilit.docxmaxinesmith73660
 
You have been asked to replace the project manager who was heading u.docx
You have been asked to replace the project manager who was heading u.docxYou have been asked to replace the project manager who was heading u.docx
You have been asked to replace the project manager who was heading u.docxmaxinesmith73660
 
You have been asked to provide briefings to orient the next person s.docx
You have been asked to provide briefings to orient the next person s.docxYou have been asked to provide briefings to orient the next person s.docx
You have been asked to provide briefings to orient the next person s.docxmaxinesmith73660
 
You have been asked to provide more data to support your strateg.docx
You have been asked to provide more data to support your strateg.docxYou have been asked to provide more data to support your strateg.docx
You have been asked to provide more data to support your strateg.docxmaxinesmith73660
 
You have been asked to present information on a developmental disord.docx
You have been asked to present information on a developmental disord.docxYou have been asked to present information on a developmental disord.docx
You have been asked to present information on a developmental disord.docxmaxinesmith73660
 
You have been asked to prepare a presentation for your local mid.docx
You have been asked to prepare a presentation for your local mid.docxYou have been asked to prepare a presentation for your local mid.docx
You have been asked to prepare a presentation for your local mid.docxmaxinesmith73660
 
You have been asked to present at an emergency management conference.docx
You have been asked to present at an emergency management conference.docxYou have been asked to present at an emergency management conference.docx
You have been asked to present at an emergency management conference.docxmaxinesmith73660
 
You have been asked to prepare a memo on a policy. Your memo mus.docx
You have been asked to prepare a memo on a policy. Your memo mus.docxYou have been asked to prepare a memo on a policy. Your memo mus.docx
You have been asked to prepare a memo on a policy. Your memo mus.docxmaxinesmith73660
 
You have been asked to prepare a memo on a policy. Your memo must ou.docx
You have been asked to prepare a memo on a policy. Your memo must ou.docxYou have been asked to prepare a memo on a policy. Your memo must ou.docx
You have been asked to prepare a memo on a policy. Your memo must ou.docxmaxinesmith73660
 
You have been asked to participate in a local radio program to addre.docx
You have been asked to participate in a local radio program to addre.docxYou have been asked to participate in a local radio program to addre.docx
You have been asked to participate in a local radio program to addre.docxmaxinesmith73660
 
You have been asked to lead a team on a new project. Discuss the ste.docx
You have been asked to lead a team on a new project. Discuss the ste.docxYou have been asked to lead a team on a new project. Discuss the ste.docx
You have been asked to lead a team on a new project. Discuss the ste.docxmaxinesmith73660
 
You have been asked to give a slide lecture on American history..docx
You have been asked to give a slide lecture on American history..docxYou have been asked to give a slide lecture on American history..docx
You have been asked to give a slide lecture on American history..docxmaxinesmith73660
 
You have been asked to give a presentation on ethical issues to huma.docx
You have been asked to give a presentation on ethical issues to huma.docxYou have been asked to give a presentation on ethical issues to huma.docx
You have been asked to give a presentation on ethical issues to huma.docxmaxinesmith73660
 
You have been asked to give a presentation to junior staff members o.docx
You have been asked to give a presentation to junior staff members o.docxYou have been asked to give a presentation to junior staff members o.docx
You have been asked to give a presentation to junior staff members o.docxmaxinesmith73660
 

More from maxinesmith73660 (20)

You have been assigned the task of creating an assessment to measure.docx
You have been assigned the task of creating an assessment to measure.docxYou have been assigned the task of creating an assessment to measure.docx
You have been assigned the task of creating an assessment to measure.docx
 
You have been asked to speak at a local high school about the opport.docx
You have been asked to speak at a local high school about the opport.docxYou have been asked to speak at a local high school about the opport.docx
You have been asked to speak at a local high school about the opport.docx
 
You have been assigned the task as Marketing Manager to scan social .docx
You have been assigned the task as Marketing Manager to scan social .docxYou have been assigned the task as Marketing Manager to scan social .docx
You have been assigned the task as Marketing Manager to scan social .docx
 
You have been asked will  to  a write three page research paper on M.docx
You have been asked will  to  a write three page research paper on M.docxYou have been asked will  to  a write three page research paper on M.docx
You have been asked will  to  a write three page research paper on M.docx
 
You have been assigned 4 patients on an Intermediate Medical Car.docx
You have been assigned 4 patients on an Intermediate Medical Car.docxYou have been assigned 4 patients on an Intermediate Medical Car.docx
You have been assigned 4 patients on an Intermediate Medical Car.docx
 
You have been asked to return to your alma mater and speak to curren.docx
You have been asked to return to your alma mater and speak to curren.docxYou have been asked to return to your alma mater and speak to curren.docx
You have been asked to return to your alma mater and speak to curren.docx
 
You have been assigned a Cinema (Movie) of a person with a disabilit.docx
You have been assigned a Cinema (Movie) of a person with a disabilit.docxYou have been assigned a Cinema (Movie) of a person with a disabilit.docx
You have been assigned a Cinema (Movie) of a person with a disabilit.docx
 
You have been asked to replace the project manager who was heading u.docx
You have been asked to replace the project manager who was heading u.docxYou have been asked to replace the project manager who was heading u.docx
You have been asked to replace the project manager who was heading u.docx
 
You have been asked to provide briefings to orient the next person s.docx
You have been asked to provide briefings to orient the next person s.docxYou have been asked to provide briefings to orient the next person s.docx
You have been asked to provide briefings to orient the next person s.docx
 
You have been asked to provide more data to support your strateg.docx
You have been asked to provide more data to support your strateg.docxYou have been asked to provide more data to support your strateg.docx
You have been asked to provide more data to support your strateg.docx
 
You have been asked to present information on a developmental disord.docx
You have been asked to present information on a developmental disord.docxYou have been asked to present information on a developmental disord.docx
You have been asked to present information on a developmental disord.docx
 
You have been asked to prepare a presentation for your local mid.docx
You have been asked to prepare a presentation for your local mid.docxYou have been asked to prepare a presentation for your local mid.docx
You have been asked to prepare a presentation for your local mid.docx
 
You have been asked to present at an emergency management conference.docx
You have been asked to present at an emergency management conference.docxYou have been asked to present at an emergency management conference.docx
You have been asked to present at an emergency management conference.docx
 
You have been asked to prepare a memo on a policy. Your memo mus.docx
You have been asked to prepare a memo on a policy. Your memo mus.docxYou have been asked to prepare a memo on a policy. Your memo mus.docx
You have been asked to prepare a memo on a policy. Your memo mus.docx
 
You have been asked to prepare a memo on a policy. Your memo must ou.docx
You have been asked to prepare a memo on a policy. Your memo must ou.docxYou have been asked to prepare a memo on a policy. Your memo must ou.docx
You have been asked to prepare a memo on a policy. Your memo must ou.docx
 
You have been asked to participate in a local radio program to addre.docx
You have been asked to participate in a local radio program to addre.docxYou have been asked to participate in a local radio program to addre.docx
You have been asked to participate in a local radio program to addre.docx
 
You have been asked to lead a team on a new project. Discuss the ste.docx
You have been asked to lead a team on a new project. Discuss the ste.docxYou have been asked to lead a team on a new project. Discuss the ste.docx
You have been asked to lead a team on a new project. Discuss the ste.docx
 
You have been asked to give a slide lecture on American history..docx
You have been asked to give a slide lecture on American history..docxYou have been asked to give a slide lecture on American history..docx
You have been asked to give a slide lecture on American history..docx
 
You have been asked to give a presentation on ethical issues to huma.docx
You have been asked to give a presentation on ethical issues to huma.docxYou have been asked to give a presentation on ethical issues to huma.docx
You have been asked to give a presentation on ethical issues to huma.docx
 
You have been asked to give a presentation to junior staff members o.docx
You have been asked to give a presentation to junior staff members o.docxYou have been asked to give a presentation to junior staff members o.docx
You have been asked to give a presentation to junior staff members o.docx
 

Recently uploaded

Organic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsOrganic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsDr.M.Geethavani
 
Permeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemPermeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemchetanpatil2572000
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...i3 Health
 
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdfAynouraHamidova
 
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...EduSkills OECD
 
Mycology Update February 2024 Microbes with Morgan
Mycology Update February 2024 Microbes with MorganMycology Update February 2024 Microbes with Morgan
Mycology Update February 2024 Microbes with MorganMargie Morgan
 
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary  Education in LithuaniaAndreas Schleicher_ Strengthening Upper Secondary  Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary Education in LithuaniaEduSkills OECD
 
2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptxMaryPotorti1
 
Persuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsPersuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsCorinne Weisgerber
 
Understanding Canada's international higher education landscape (2024)
Understanding Canada's international higher education landscape (2024)Understanding Canada's international higher education landscape (2024)
Understanding Canada's international higher education landscape (2024)CaraSkikne1
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfDr.M.Geethavani
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...AKSHAYMAGAR17
 
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Katherine Villaluna
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.Florence Dayana
 
Healthy Habits for Happy School Staff - presentation
Healthy Habits for Happy School Staff - presentationHealthy Habits for Happy School Staff - presentation
Healthy Habits for Happy School Staff - presentationPooky Knightsmith
 
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfA Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfOH TEIK BIN
 
Plant Genetic Resources, Germplasm, gene pool - Copy.pptx
Plant Genetic Resources, Germplasm, gene pool - Copy.pptxPlant Genetic Resources, Germplasm, gene pool - Copy.pptx
Plant Genetic Resources, Germplasm, gene pool - Copy.pptxAKSHAYMAGAR17
 

Recently uploaded (20)

Risk in the changing world – Opportunity or threat
Risk in the changing world – Opportunity or threatRisk in the changing world – Opportunity or threat
Risk in the changing world – Opportunity or threat
 
Organic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional GroupsOrganic Synthesis and Estimation of Functional Groups
Organic Synthesis and Estimation of Functional Groups
 
Permeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery systemPermeation enhancer of Transdermal drug delivery system
Permeation enhancer of Transdermal drug delivery system
 
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
Enhancing MRD Testing in Hematologic Malignancies: When Negativity is a Posit...
 
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf
11 CI SINIF SINAQLARI - 9-2023-Aynura-Hamidova.pdf
 
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
Managing Choice, Coherence and Specialisation in Upper Secondary Education - ...
 
Mycology Update February 2024 Microbes with Morgan
Mycology Update February 2024 Microbes with MorganMycology Update February 2024 Microbes with Morgan
Mycology Update February 2024 Microbes with Morgan
 
Lipids as Biopolymer
Lipids as Biopolymer Lipids as Biopolymer
Lipids as Biopolymer
 
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary  Education in LithuaniaAndreas Schleicher_ Strengthening Upper Secondary  Education in Lithuania
Andreas Schleicher_ Strengthening Upper Secondary Education in Lithuania
 
2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx2.22.24 Black Nationalism and the Nation of Islam.pptx
2.22.24 Black Nationalism and the Nation of Islam.pptx
 
Persuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational PatternsPersuasive Speaking and Organizational Patterns
Persuasive Speaking and Organizational Patterns
 
Understanding Canada's international higher education landscape (2024)
Understanding Canada's international higher education landscape (2024)Understanding Canada's international higher education landscape (2024)
Understanding Canada's international higher education landscape (2024)
 
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdfA LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
A LABORATORY MANUAL FOR ORGANIC CHEMISTRY.pdf
 
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
Ideotype concept and climate resilient crop varieties for future- Wheat, Rice...
 
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
Practical Research 1, Lesson 5: DESIGNING A RESEARCH PROJECT RELATED TO DAILY...
 
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdfDr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
Dr.M.Florence Dayana-Cloud Computing-unit - 4.pdf
 
Healthy Habits for Happy School Staff - presentation
Healthy Habits for Happy School Staff - presentationHealthy Habits for Happy School Staff - presentation
Healthy Habits for Happy School Staff - presentation
 
CLUBE PERLINGUAS .
CLUBE PERLINGUAS                        .CLUBE PERLINGUAS                        .
CLUBE PERLINGUAS .
 
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdfA Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
A Free eBook ~ Mental Exercise ...Puzzles to Analyze.pdf
 
Plant Genetic Resources, Germplasm, gene pool - Copy.pptx
Plant Genetic Resources, Germplasm, gene pool - Copy.pptxPlant Genetic Resources, Germplasm, gene pool - Copy.pptx
Plant Genetic Resources, Germplasm, gene pool - Copy.pptx
 

You have been assigned to write the code and unit test a module whic.docx

  • 1. You have been assigned to write the code and unit test a module which tries to identify two employee names in a company employee database which might actually be the same employee. Your module uses the following method: If one name contains a middle name and the other contains a middle initial which is consistent with the middle name, the two might be the same; If the two names differ by only one or two letters, they might be the same; If one name has a suffix such as Junior or Jr. or Ph.D., and the other is identical except for not having a suffix or perhaps having a different suffix, the two names might be the same. What unit testing methods would you use for this module? Why? Provide at least two possible unit tests for the module using each of the methods you have selected.