All Tutorials will be E-mailed immediately (automatically) after the Payment and can also be Downloaded by clicking on Tutorial Bucket.
Please Check your Spam Email if you do not get the Tutorial.
Click Here to Submit New Syllabus (If course has changed or if you need help with any other course)
Shopping Cart
Your shopping cart is empty!
Categories
COMP 122 Lab 4 Lab Report and Source Code (Devry)
$14.00

COMP 122 Lab 4 Lab Report and Source Code (Devry)

This Tutorial was purchased 4 times & rated A+ by student like you.

 

This Tutorial contains following Attachments

  • COMP 122 Lab 4 Lab Report and Source Code.zip

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. 

Write a review

Order Id


Order Id will be kept Confidential
Your Name:


Your Review:
Rating:   A   B   C   D   F  

Enter the code in the box below:



Related Tutorials
$14.00

This Tutorial was purchased 6 times & rated A+ by student like you.

COMP 122 Week 7 iLab The focus of this lab is on using strings. You will have an opportunity to work with both C style strings and the string data type. This lab also gives you an opportunity to use what you have learned previously, including using functions, array processing, repetition,..
$14.00

This Tutorial was purchased 6 times & rated A by student like you.

COMP 122 Week 6 iLab You are to design a program that will allow some number of grades (up to a max of 100) to be input by the user. After the data has been collected, your program should calculate and output the mean and median of the collected data, as well as the sorted grade informati..
$14.00

This Tutorial was purchased 6 times & rated No rating by student like you.

COMP 122 Week 5 iLab Objectives Apply structured and modular design principles to write programs that meet written specifications and requirements. Develop a pseudo-code design using appropriate program structure (sequence, selection, repetition and nesting) to solve a given programmi..
$14.00

This Tutorial was purchased 4 times & rated A+ by student like you.

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. P..
$14.00

This Tutorial was purchased 5 times & rated A by student like you.

COMP 122 Week 3 iLab Complete the following two programs: Programming Problem 1 Write a program that generates all the factors of a number entered by the user. For instance, the number 12 has the factors 2 * 2 * 3. This program has the following requirements: A. The user must ..
$14.00

This Tutorial was purchased 5 times & rated No rating by student like you.

COMP 122 Week 2 iLab Complete the following two programs: Programming Problem 1 Write a program that calculates and outputs the monthly paycheck information for an employee, including all the amounts deducted from an employee’s gross pay, and the net pay that is due to the employe..
$14.00

This Tutorial was purchased 4 times & rated A+ by student like you.

COMP 122 Week 1 iLab - Part 1 Follow the instructions in COMP 122_W1_iLab_Part1_instructions.docx. COMP 122 Week 1 iLab - Part 2 Complete the following two programs: Programming Problem 1 John wants to know the values of the area and perimeter of a rectangle. John can ..
$95.00

This Tutorial was purchased 8 times & rated A by student like you.

COMP 122 Lab 1 Lab Report and Source Code COMP 122 Lab 2 Lab Report and Source Code COMP 122 Lab 3 Lab Report and Source Code COMP 122 Lab 4 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 7 Lab Re..
Tags:
COMP 122 © 2017 All Rights Reserved.Powered by:Ash Tutorial