SlideShare a Scribd company logo
TO Buy the Tutorial Visit Our Website

COMP 122 Week 4 Lab Part 1
Part 1 of this week’s lab will give you an opportunity to use the debugging
capabilities of Visual Studio. Part 2 will present a problem for which you will
need to create a test plan and actually test an executable program to determine if
it behaves correctly.
Part 1 – Using the Debugger
To begin this exercise, create a VC++ project and copy the following code into
your project. Make sure that the project compiles successfully.
#include
using namespace std;
int main()
{
int input;
int , ;
int ;
cout< "enter="" which="" number="" in="" the="" fibonacci="" number=""
sequence="" you="" want="" to="" find."=""><endl;="">
cout< "the="" first="" and="" second="" fibonacci="" numbers="" are=""
1."=""><endl;="">
cin>> input;
while (input < 1)="">
{
cout< "you="" must="" enter="" a="" value="" greater="" than="" 0,="" try=""
again."=""><endl;="">
cin>> input;
}
if (input > 2)
{
for(int ; i < input;="" i++)="">
{
;
;
+ back2;
}
}
cout< "the="" value="" of="" fibonacci="" number="" "="">< input="">< "=""
is="" "="">< current=""><endl;="">
cin.ignore(2);
return 0;
}
Part 2 – Black Box Testing
A customer has requested a program be developed to meet the following
criterion:
1. The program needs to convert from celcius temperatures to fahrenheit
temperatures.
2. The user should be able to enter temperatures containing fractional degrees
(ie. 12.3)
3. The converted temperatures should be accurate to within 1/10th of a degree.
4. The user should be able to enter the number of temperatures to be converted
up to a maximum of 10.
5. The output should be tabular with each row including the input and converted
temperature.
Write a test plan to thoroughly test this program. The executable for this
program is included in with this lab. You should have test cases which verify
that the program does all of what is required in the problem specification above.
You should also test to see how robust the program is, that is, how does it
handle inputs outside the expected ranges.
Document your test plan in a table. For each test case, document the expected
program behavior and the actual program behavior. If the program does not
behave according to your prediction, write a brief explanation of what the
program did wrong.

More Related Content

What's hot

201707 CSE110 Lecture 06
201707 CSE110 Lecture 06  201707 CSE110 Lecture 06
201707 CSE110 Lecture 06
Javier Gonzalez-Sanchez
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...
hwbloom104
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
msohn
 
electic mashinary fundamentals 5th edition Lab tasks stack
electic mashinary fundamentals 5th edition Lab tasks stackelectic mashinary fundamentals 5th edition Lab tasks stack
electic mashinary fundamentals 5th edition Lab tasks stackMuhammad Nasir
 
Vladyslav Romanchenko "How to keep high code quality without e2e tests"
Vladyslav Romanchenko "How to keep high code quality without e2e tests"Vladyslav Romanchenko "How to keep high code quality without e2e tests"
Vladyslav Romanchenko "How to keep high code quality without e2e tests"
Dakiry
 
Introduction to SkyPat 2.0
Introduction to SkyPat 2.0Introduction to SkyPat 2.0
Introduction to SkyPat 2.0
Little Sky
 
Ddc2011 효과적으로레거시코드다루기
Ddc2011 효과적으로레거시코드다루기Ddc2011 효과적으로레거시코드다루기
Ddc2011 효과적으로레거시코드다루기
Myeongseok Baek
 
Function in Python
Function in PythonFunction in Python
Function in Python
Md. Shafiuzzaman Hira
 
Week 1
Week 1Week 1
Week 1
EasyStudy3
 
Password locker project
Password locker project Password locker project
Password locker project
Md. Shafiuzzaman Hira
 
1126640 question
1126640 question 1126640 question
1126640 question lpss0513
 

What's hot (12)

201707 CSE110 Lecture 06
201707 CSE110 Lecture 06  201707 CSE110 Lecture 06
201707 CSE110 Lecture 06
 
Part I (1.5 points) Write a C++ program that reads a line from the key...
Part I (1.5 points)        Write a C++ program that reads a line from the key...Part I (1.5 points)        Write a C++ program that reads a line from the key...
Part I (1.5 points) Write a C++ program that reads a line from the key...
 
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerritGit Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
Git Tutorial EclipseCon France 2014 - Gerrit Exercise 9 - starting demo gerrit
 
electic mashinary fundamentals 5th edition Lab tasks stack
electic mashinary fundamentals 5th edition Lab tasks stackelectic mashinary fundamentals 5th edition Lab tasks stack
electic mashinary fundamentals 5th edition Lab tasks stack
 
Vladyslav Romanchenko "How to keep high code quality without e2e tests"
Vladyslav Romanchenko "How to keep high code quality without e2e tests"Vladyslav Romanchenko "How to keep high code quality without e2e tests"
Vladyslav Romanchenko "How to keep high code quality without e2e tests"
 
Introduction to SkyPat 2.0
Introduction to SkyPat 2.0Introduction to SkyPat 2.0
Introduction to SkyPat 2.0
 
Ddc2011 효과적으로레거시코드다루기
Ddc2011 효과적으로레거시코드다루기Ddc2011 효과적으로레거시코드다루기
Ddc2011 효과적으로레거시코드다루기
 
Function in Python
Function in PythonFunction in Python
Function in Python
 
Week 1
Week 1Week 1
Week 1
 
Virapix-ActivityDiagram
Virapix-ActivityDiagramVirapix-ActivityDiagram
Virapix-ActivityDiagram
 
Password locker project
Password locker project Password locker project
Password locker project
 
1126640 question
1126640 question 1126640 question
1126640 question
 

Viewers also liked

BMW case study
BMW case studyBMW case study
BMW case study
Rachel Rainville
 
La vida es bellajeej
La vida es bellajeejLa vida es bellajeej
La vida es bellajeej
Jon Vera
 
Schey Sales Centre Fall Newsletter 2016
Schey Sales Centre Fall Newsletter 2016Schey Sales Centre Fall Newsletter 2016
Schey Sales Centre Fall Newsletter 2016
SalesCentreAlumni
 
Hipertensión arterial
Hipertensión arterialHipertensión arterial
Hipertensión arterial
madeseg
 
Risk assessment
Risk assessmentRisk assessment
Risk assessment
Harveycoltman
 
Siam News Network, your digital marketing partner in Thailand
Siam News Network, your digital marketing partner in ThailandSiam News Network, your digital marketing partner in Thailand
Siam News Network, your digital marketing partner in Thailand
Siam News Network
 
Biomarkers outperform symptoms in parsing psychosis subgroups
Biomarkers outperform symptoms in parsing psychosis subgroupsBiomarkers outperform symptoms in parsing psychosis subgroups
Biomarkers outperform symptoms in parsing psychosis subgroups
BARRY STANLEY 2 fasd
 
Ada dos
Ada dosAda dos
Ada dos
fernandoJCM
 
Comp 122 lab 7 lab report and source code
Comp 122 lab 7 lab report and source codeComp 122 lab 7 lab report and source code
Comp 122 lab 7 lab report and source code
pradesigali1
 
Guia numero 4
Guia numero 4Guia numero 4
Guia numero 4
LUCYSUAREZ14
 
ANGELS111111
ANGELS111111ANGELS111111
ANGELS111111
Tami Oliveira
 
ระดับ2คันจิ
ระดับ2คันจิระดับ2คันจิ
ระดับ2คันจิ
ラッキー ね
 
Storyboards - A-level Media Pre-Production
Storyboards - A-level Media Pre-ProductionStoryboards - A-level Media Pre-Production
Storyboards - A-level Media Pre-Production
MattLumley
 
Comp 122 lab 5 lab report and source code
Comp 122 lab 5 lab report and source codeComp 122 lab 5 lab report and source code
Comp 122 lab 5 lab report and source code
pradesigali1
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source code
pradesigali1
 
Medicina legal
Medicina legalMedicina legal
Medicina legal
Mary J Torrealba
 

Viewers also liked (20)

BMW case study
BMW case studyBMW case study
BMW case study
 
La vida es bellajeej
La vida es bellajeejLa vida es bellajeej
La vida es bellajeej
 
CMD-Leads
CMD-LeadsCMD-Leads
CMD-Leads
 
Schey Sales Centre Fall Newsletter 2016
Schey Sales Centre Fall Newsletter 2016Schey Sales Centre Fall Newsletter 2016
Schey Sales Centre Fall Newsletter 2016
 
Paul Flaherty CV
Paul Flaherty CVPaul Flaherty CV
Paul Flaherty CV
 
Hipertensión arterial
Hipertensión arterialHipertensión arterial
Hipertensión arterial
 
Risk assessment
Risk assessmentRisk assessment
Risk assessment
 
Siam News Network, your digital marketing partner in Thailand
Siam News Network, your digital marketing partner in ThailandSiam News Network, your digital marketing partner in Thailand
Siam News Network, your digital marketing partner in Thailand
 
слайд тест
слайд тестслайд тест
слайд тест
 
Biomarkers outperform symptoms in parsing psychosis subgroups
Biomarkers outperform symptoms in parsing psychosis subgroupsBiomarkers outperform symptoms in parsing psychosis subgroups
Biomarkers outperform symptoms in parsing psychosis subgroups
 
First day of college.
First day of college.First day of college.
First day of college.
 
Ada dos
Ada dosAda dos
Ada dos
 
Comp 122 lab 7 lab report and source code
Comp 122 lab 7 lab report and source codeComp 122 lab 7 lab report and source code
Comp 122 lab 7 lab report and source code
 
Guia numero 4
Guia numero 4Guia numero 4
Guia numero 4
 
ANGELS111111
ANGELS111111ANGELS111111
ANGELS111111
 
ระดับ2คันจิ
ระดับ2คันจิระดับ2คันจิ
ระดับ2คันจิ
 
Storyboards - A-level Media Pre-Production
Storyboards - A-level Media Pre-ProductionStoryboards - A-level Media Pre-Production
Storyboards - A-level Media Pre-Production
 
Comp 122 lab 5 lab report and source code
Comp 122 lab 5 lab report and source codeComp 122 lab 5 lab report and source code
Comp 122 lab 5 lab report and source code
 
Comp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source codeComp 122 lab 6 lab report and source code
Comp 122 lab 6 lab report and source code
 
Medicina legal
Medicina legalMedicina legal
Medicina legal
 

Similar to Comp 122 lab 4 lab report and source code

COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
shyamuopeight
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
Last7693
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
HarrisGeorg12
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
WilliamsTaylorza48
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
Stephenson22
 
Md university cmis 102 week 5 hands
Md university cmis 102 week 5 handsMd university cmis 102 week 5 hands
Md university cmis 102 week 5 hands
eyavagal
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
melbruce90096
 
03b loops
03b   loops03b   loops
03b loops
Manzoor ALam
 
Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
Thapar Institute
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
melbruce90096
 
02.softwareengr.ppt
02.softwareengr.ppt02.softwareengr.ppt
02.softwareengr.ppt
hesam ahmadian
 
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docxWeek 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
co4spmeley
 
Cpp Homework Help
Cpp Homework Help Cpp Homework Help
Cpp Homework Help
C++ Homework Help
 
ICT104 Programming Assignment Compiled By Divya Lee.docx
ICT104 Programming Assignment  Compiled By Divya Lee.docxICT104 Programming Assignment  Compiled By Divya Lee.docx
ICT104 Programming Assignment Compiled By Divya Lee.docx
tarifarmarie
 
CMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LABCMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LAB
HamesKellor
 
Comp 122 lab 1 lab report and source code
Comp 122 lab 1 lab report and source codeComp 122 lab 1 lab report and source code
Comp 122 lab 1 lab report and source code
pradesigali1
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
Huu Bang Le Phan
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
Aditi Bhushan
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
AASTHA76
 

Similar to Comp 122 lab 4 lab report and source code (20)

COMP 122 Entire Course NEW
COMP 122 Entire Course NEWCOMP 122 Entire Course NEW
COMP 122 Entire Course NEW
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Md university cmis 102 week 5 hands
Md university cmis 102 week 5 handsMd university cmis 102 week 5 hands
Md university cmis 102 week 5 hands
 
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
Week 2PRG 218   Variables and Input and Output OperationsWrite.docxWeek 2PRG 218   Variables and Input and Output OperationsWrite.docx
Week 2PRG 218 Variables and Input and Output OperationsWrite.docx
 
03b loops
03b   loops03b   loops
03b loops
 
Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
 
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
Week 2PRG 218   Variables and Input and Output OperationsYou w.docxWeek 2PRG 218   Variables and Input and Output OperationsYou w.docx
Week 2PRG 218 Variables and Input and Output OperationsYou w.docx
 
02.softwareengr.ppt
02.softwareengr.ppt02.softwareengr.ppt
02.softwareengr.ppt
 
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docxWeek 2PRG 218Variables and Input and Output OperationsWrite .docx
Week 2PRG 218Variables and Input and Output OperationsWrite .docx
 
Cpp Homework Help
Cpp Homework Help Cpp Homework Help
Cpp Homework Help
 
ICT104 Programming Assignment Compiled By Divya Lee.docx
ICT104 Programming Assignment  Compiled By Divya Lee.docxICT104 Programming Assignment  Compiled By Divya Lee.docx
ICT104 Programming Assignment Compiled By Divya Lee.docx
 
CMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LABCMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LAB
 
Comp 122 lab 1 lab report and source code
Comp 122 lab 1 lab report and source codeComp 122 lab 1 lab report and source code
Comp 122 lab 1 lab report and source code
 
Jeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testingJeremiah Yancy - Objectives for Software design and testing
Jeremiah Yancy - Objectives for Software design and testing
 
Debugger & Profiler in NetBeans
Debugger & Profiler in NetBeansDebugger & Profiler in NetBeans
Debugger & Profiler in NetBeans
 
HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12HSc Computer Science Practical Slip for Class 12
HSc Computer Science Practical Slip for Class 12
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 

Recently uploaded

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
ShivajiThube2
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
JEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questionsJEE1_This_section_contains_FOUR_ questions
JEE1_This_section_contains_FOUR_ questions
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 

Comp 122 lab 4 lab report and source code

  • 1. TO Buy the Tutorial Visit Our Website COMP 122 Week 4 Lab Part 1 Part 1 of this week’s lab will give you an opportunity to use the debugging capabilities of Visual Studio. Part 2 will present a problem for which you will need to create a test plan and actually test an executable program to determine if it behaves correctly. Part 1 – Using the Debugger To begin this exercise, create a VC++ project and copy the following code into your project. Make sure that the project compiles successfully. #include using namespace std; int main() { int input; int , ; int ;
  • 2. cout< "enter="" which="" number="" in="" the="" fibonacci="" number="" sequence="" you="" want="" to="" find."=""><endl;=""> cout< "the="" first="" and="" second="" fibonacci="" numbers="" are="" 1."=""><endl;=""> cin>> input; while (input < 1)=""> { cout< "you="" must="" enter="" a="" value="" greater="" than="" 0,="" try="" again."=""><endl;=""> cin>> input; } if (input > 2) { for(int ; i < input;="" i++)=""> { ; ; + back2; } } cout< "the="" value="" of="" fibonacci="" number="" "="">< input="">< "="" is="" "="">< current=""><endl;=""> cin.ignore(2);
  • 3. return 0; } Part 2 – Black Box Testing A customer has requested a program be developed to meet the following criterion: 1. The program needs to convert from celcius temperatures to fahrenheit temperatures. 2. The user should be able to enter temperatures containing fractional degrees (ie. 12.3) 3. The converted temperatures should be accurate to within 1/10th of a degree. 4. The user should be able to enter the number of temperatures to be converted up to a maximum of 10. 5. The output should be tabular with each row including the input and converted temperature. Write a test plan to thoroughly test this program. The executable for this program is included in with this lab. You should have test cases which verify that the program does all of what is required in the problem specification above. You should also test to see how robust the program is, that is, how does it handle inputs outside the expected ranges. Document your test plan in a table. For each test case, document the expected program behavior and the actual program behavior. If the program does not behave according to your prediction, write a brief explanation of what the program did wrong.