A 08 Unexpected input data makes your A-07 script “sum_from_x_to_y.php” produce wrong results. | Online Homework Aiders

I need an explanation for this History question to help me study.

Don't use plagiarized sources. Get Your Custom Essay on
A 08 Unexpected input data makes your A-07 script “sum_from_x_to_y.php” produce wrong results. | Online Homework Aiders
Get an essay WRITTEN FOR YOU, Plagiarism free, and by an EXPERT! Just from $10/Page
Order Essay

A-08: Bulletproof sum_from_x_to_y –

Unexpected input data makes your A-07 script “sum_from_x_to_y.php” produce wrong results.

In this age of computer viruses, trojan horses, spam, and a lot of other kinds of malicious attacks on servers, programs, and websites, it is a critical responsibility of any developer to program defensively. One must anticipate and proactively block ways in which any website or system could be compromised.

While your A-07 script has the basic functionality required in that assignment, it fails to prevent displaying misinformation or calculating some wrong results.

What did you miss? It is not what the spec said. (You got that part). It is what the spec did NOT say that you ignored or did not realize the developer must consider.

Your program likely produces the correct result in a narrow range of values, in particular for integers where the first integer is less than the second integer. If you are lucky in how you chose to set up your loop algorithm, your program might have the correct result when the first integer equals the second.

However, try at least these ordered value pairs (first, second) and look at the result of your program. Do you consider the result you are getting to be correct? You should also try other values of your choosing.
20 6
-5 10
10 -10
15 15
17 17.2
-8 -8
3.71 4.92
-8 9
5e+30 6e+30
-50 3
3 “9”
hello world
9 fifteen
6 20

Assignment A-08 is to take your program from A-07 and make it “bulletproof”. If the user enters something improper for this program, give the user a clear message explaining the specific issue with what the user typed; then let the user correct it and run the corrected values.

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.