Question Details

[solution] » Modify your input file to include the test number. Use T1, T2,

Brief item decscription

Step-by-step solution file

Item details:

Modify your input file to include the test number. Use T1, T2,

Modify your input file to include the test number.  Use T1, T2, etc.  Also include the expected values as r1=n, r2=n

Modify your output file to include the test number. 

Write a comparison program to compare the output file with the input file.  Do not just blindly compare line by line...

  Find the test number in the input file and match it with the number in the output file.

  compare the inputs, a, b, c, to make sure they are the same.

  compare the outputs to make sure they are the same.

  print a summary files with Test Number, PASS or FAIL, and for FAIL print "Couldn't find test", "mismatched inputs", or "wrong roots"

To enable multiple test runs, call you summary file "Testrun".  Before running the test each time, copy Testrun4 to Testrun5, Testrun3 to Testrun 4, Testrun2 to Testrun3, Testrun1 to Testrun2, and Testrun to Testrun1 in this order.  This will allow you to keep multiple copies of the summary file for the last 4 test run.

Programming language must be java.


About this question:

This question was answered on: Feb 21, 2020

PRICE: $24 (18.37 KB)

Buy this answer for only: $24

This attachment is locked

We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card. All your purchases are securely protected by PayPal.

Need a similar solution fast, written anew from scratch? Place your own custom order

We have top-notch tutors who can help you with your essay at a reasonable cost and then you can simply use that essay as a template to build your own arguments. This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student. New solution orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

Order Now