# Java – HW

2-D Arrays Pascal’s Triangle- Java

Blaise Pascal was a French mathematician and philosopher who lived in the mid-1600’s. He accomplished much in his lifetime, including the construction of a mechanical calculator and some very early work in combinatorics and the development of differential calculus. In his studies, he devised what has become known as Pascal’s Triangle, http://ptri1.tripod.com/ which simplifies the calculation of the coefficients of the expression (x + y)n, where n is a positive integer. That is, we all know

Haven’t Found The Relevant Content? Hire a Subject Expert to Help You With
Java – HW

(x + y)2 = x2 + 2xy + y2

(implying coefficients of 1,2,1), but what are the coefficients of (x + y)3 or (x + y)4 or (x + y)10 By using Pascal’s Triangle, these values can be quickly calculated.

The first part of Pascal’s Triangle looks like this:

1

1 1

1 2 1

1 3 3 1

1 4 6 4 1

From examination, you can see that if we number the rows beginning at 0, the values listed on each line correspond to the coefficients where n is equal to the line number. You can also see, except for the 1’s, any coefficient is found simply by adding together the 2 numbers diagonally above it. (And, if you think about it, picture 0’s everywhere along the outside edge, and the 1’s can be calculated the same way!)

Write a program that calculates and displays the first 16 rows of Pascal’s Triangle. (That is, it contains the coefficients for n=15 in the last row.) It must be displayed in the format shown above (but not symmetrically — extra points credit if the triangle is formatted so that it is a perfectly symmetrical isosceles triangle when output) You must use a two-dimensional array to calculate and store the triangle. (How big will this 2D array have to be? YOU FIGURE IT OUT! Don’t make it any larger than necessary.)

You are free to write as many (or as few) classes as you deem necessary (you should have at least two). You will be graded on modular design.

To turn in

 _all source files necessary to compile and run program in a zip file named with your last name, followed by first initial of first name, followed by hw5 (e.g.: peterschw5.zip)

 _name the class that contains your main method PascalTester.

5 hours from now.

## Calculate the price of your order

Select your paper details and see how much our professional writing services will cost.

We`ll send you the first draft for approval by at
Price: \$36
• Freebies
• Format
• Formatting (MLA, APA, Chicago, custom, etc.)
• Title page & bibliography
• Amendments to your paper when they are needed
• 275 word/double-spaced page
• 12 point Arial/Times New Roman
• Double, single, and custom spacing

Our custom human-written papers from top essay writers are always free from plagiarism.

Your data and payment info stay secured every time you get our help from an essay writer.

Your money is safe with us. If your plans change, you can get it sent back to your card.

## How it works

1. 1
You give us the details
Complete a brief order form to tell us what kind of paper you need.
2. 2
We find you a top writer
One of the best experts in your discipline starts working on your essay.
3. 3
You get the paper done

## Samples from our advanced writers

Check out some essay pieces from our best essay writers before your place an order. They will help you better understand what our service can do for you.

## Perks of our essay writing service

We offer more than just hand-crafted papers customized for you. Here are more of our greatest perks.

• Swift delivery
Our writing service can deliver your short and urgent papers in just 4 hours!
• Professional touch
We find you a pro writer who knows all the ins and outs of your subject.
• Easy order placing/tracking
Create a new order and check on its progress at any time in your dashboard.
• Help with any kind of paper
Need a PhD thesis, research project, or a two-page essay? For you, we can do it all.
• Experts in 80+ subjects
• Calculations and code
We also do math, write code, and solve problems in 30+ STEM disciplines.

• ### What if I’m dissatisfied with the paper I get?

The average quality score at our professional custom essay writing service is 8.5 out of 10. The high satisfaction rate is set by our Quality Control Department, which checks all papers before submission. The final check includes:
• Compliance with initial order details.
• Plagiarism.
• Proper referencing.
If for some reason we happen to leave a mistake unnoticed, you are invited to request unlimited revisions of your custom-written paper. For more information, check our Revision Policy. We will do our best to make your experience with Familiar Essays enjoyable.
• ### I need an essay on the same day. Is it something you can do?

Sure. Our writing company offers a fast service with an 8-hour deadline for orders up to master’s level. Make sure to specify the deadline in the order form and our writers will write a paper within the indicated timeslot. Just proceed to submit your requirements here Once you order a custom-written essay, our managers will assign your order to the well-suited writer, who has the best skills and experience for preparing your specific assignment. You can also request one of these extra features:
• Choose the Writer’s Samples option – study 3 randomly-provided pages from orders that have been written by the assigned writer.
• Request a specific writer – choose an academic writer from the dropdown list in the order’s form (optional for returning customers).
You can be sure that your custom writing order will be accomplished by one of our 400+ professional academic writers. They all pass a series of tests to prove their writing prowess and hold the reputation of being the most professional in the industry. Want to make sure writer’s skills match your needs? Get more details on how to choose the appropriate author.
• ### How can I be sure your writing service is not a scam?

We understand that a shade of mistrust has covered the paper writing industry, and we want to convince you of our loyalty. Apart from high-quality writing services, we offer:
• The chances of students to boost writing skills in a quick and effective way.
• The opportunity to manage studies and free time in an enjoyable manner.
• The possibilities to improve overall academic performance.
Our custom writing company has been working for more than 12 years and always puts quality and clients’ needs first. Our operations are legally documented, we are easily accessible online and offline,
• ### Is it legal to use your professional writing service?

Yes. Custom writing help is not prohibited by any university or college. It’s a 100% legal way of getting professional assistance with paper writing. Hiring writers from an essay writing company is in many ways similar to consulting a tutor – we help you solve the writing issues at hand.