Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

Two php, A08 and A09

Two php, A08 and A09

Two php, A08 and A09

Question Description

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.

A-09 – TRIANGLE EVALUATOR –

Attached Files:

Implement a PHP application (one or more PHP scripts) that satisfies the attached spec for a Triangle Evaluator. Call its first script “triangle_1.php”.

Put you name as a comment near the top of each PHP file.

Put all files for your application in a folder named “triangle” on the nb9507 server. (Remember that Linux file and folder names are case-sensitive, i.e. “abc” and “Abc” are not the same.)

Test your application thoroughly.
Consider: What is the minimum number of test cases (data triplets for the sides) that you will need to test to ensure that all parts of your program are working correctly? What do these test cases need to be?

Leave your application on the server so the Instructor can test it there.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20