Find Jobs
Hire Freelancers

Create a Pascal's triangle using a matrix 10*10

$30-5000 USD

In Progress
Posted almost 21 years ago

$30-5000 USD

Paid on delivery
Intro Lab 1. Create a Pascal's triangle using a matrix 10 * 10. The rows and columns being displayed will be determined by user input, and obviously can't be larger than 10 * 10. You will need (at least) 2 functions: a.) Create_Pascals(?) that will fill in the correct value into the 10 * 10 matrix, actually go through the matrix and determine what to put in that spot it is at. hint hint: coordinates are key!! Also, you can create a single for loop to place 1's in the top row, and another for the first column. b.) And finally, a function for the user to input the size. (Less than 10.) I want to see an attempt to display the matrix by using "cout". If you can't remember what a Pascal's Triangle is, remember this?? 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 Your matrix should look like this: 1 1 1 1 1 1 1 2 3 4 5 ? 1 3 6 10 ? ? 1 4 10 ? ? 1 5 ? ? 1 ? And display like this: user input = 4 user input = 3 1 1 1 1 1 2 3 4 1 3 6 10 1 4 10 ? 1 1 1 1 2 3 1 3 6 (s.c. and code) 2. After the creation and display of Pascal's Triangle (to the USER's specification), create a function that will ADD UP all elements in the matrix. It should contain a double for loop. (s.c. and code) ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform window visual C++
Project ID: 2943339

About the project

3 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$12 USD in 14 days
4.9 (48 reviews)
5.4
5.4
3 freelancers are bidding on average $12 USD for this job
User Avatar
See private message.
$5.95 USD in 14 days
5.0 (38 reviews)
5.0
5.0
User Avatar
See private message.
$17 USD in 14 days
5.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
4
Member since Dec 3, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.