Devry Comp 122 Lab 4 Lab Report and Source Code

DEVRY COMP 122 Lab 4 Lab Report and
Source Code

Check this A+ tutorial guideline at

For more classes visit
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
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.
using namespace std;
int main()
int input;

int , ;
int ;
cout< "enter="" which="" number="" in="" the="" fibonacci="" number=""
sequence="" you="" want="" to="" find."="">
cout< "the="" first="" and="" second="" fibonacci="" numbers="" are=""
cin>> input;
while (input < 1)="">
cout< "you="" must="" enter="" a="" value="" greater="" than="" 0,="" try=""
cin>> input;
if (input > 2)
for(int ; i < input;="" i++)="">
+ back2;
cout< "the="" value="" of="" fibonacci="" number="" "="">< input="">< "="" is=""
"="">< current="">
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
2. The user should be able to enter temperatures containing fractional degrees (ie.
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

Write a test plan to thoroughly test this program. The executable for this program is