I do not understand what this is asking for..... Write a test plan to thoroughly
ID: 1798932 • Letter: I
Question
I do not understand what this is asking for.....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.
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float C,F;
for(int i=0;i<10;i++)
{
cout << "Enter Celsius Temperature:" << endl;
cin >> C;
F= (C * 9/5) + 32;
cout << endl;
cout << "Celsius:" << " " << "Fahrenheit:" << endl;
cout << C << " " << " ";
cout << setiosflags(ios::fixed | ios::showpoint) << setprecision(2) << F << endl;
cout << endl;
}
How do I write a test plan to thoroughly test the above program?
Explanation / Answer
there is not much test case in this program; still if the lab requires you to do that you can test this cases: - test 1 giving a Celsius value and check the result with your calculation. test 2 give a decimal number it give back decimal number. if true, is it 2 decimal number . test 3 does it work for negative number? it true does it agree with your calculation? test 4 does the program takes consecutive 10 inputs? test 4 can it take really big number? or really big negative number //small correction change the line float C,F; ----> double C,F;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.