Free YouTube Transcribe

Video transcript

Exam 2 - Arryn Calva

eren · 431 words · 2 min read

Want to search this transcript, jump the video from any line, or download it as TXT, SRT, or VTT?

Open in the transcript tool

Full transcript

0:00Hello professor my name is this is my

0:03analysis sheet and this is how I

0:04approach the problem I have part one two

0:06and three for part one spaces before is

0:08equal to user number and spaces in is

0:11equal to user number minus one for our

0:13center spaces I preface that if user

0:15number is equal to four then spaces

0:17center would be three or uh if not then

0:21spaces center would be our user number

0:24in order to accommodate for five and six

0:27um after our first row. For our first

0:31part, I decrement the spaces center by

0:34two. In order to make the following rows

0:37look how they are supposed to. And then

0:40part two displays user number plus one,

0:43which if it's four, that would be five

0:45stars. And then spaces in which um one

0:50less than our user number. And then the

0:53same amount of stars. And then for part

0:55three, spaces in is equal to user number

0:58* 2. one and then spaces before we

1:02increment by one by each row and then

1:04decrement by one by each row. Now we'll

1:06step into our program. Here is the code

1:09and let's step by step go through the

1:11program and demonstrate how I solve this

1:13problem. So for our first row I wrote

1:18down the number the two stars with the

1:22space spaces center in it.

1:25Row two is almost exactly the same

1:27except this time we are drawing two

1:29stars in order to make it look like it's

1:31um ascending inside.

1:34Row three draws each of those stars in

1:37order to make that little M shape.

1:40And then any row above that makes it

1:43look exactly like our first row with

1:46just spaces in between. As you can see

1:48right here for our part two, I drew the

1:53amount of stars, which is user number

1:55plus one, which in this case would be

1:57five. And then our spaces, user number

1:59minus one in this case would be three.

2:01And then one more time. And that is our

2:04part two. And then for part three, we

2:07change our spaces before and our spaces

2:09in in order to decrement at the very end

2:13and increment the spaces before in order

2:16to have that kind of descending look.

2:20You can see they're kind of going down.

2:22Uh now for row two, I added this extra

2:25one to draw this star right here. And

2:28then same thing for our other rows.

2:32And then finally, we have our downturned

2:34arrow here. Um, and this is what it

2:37would look like.

Recently added transcripts

Browse the whole transcript library

This transcript was generated from the captions YouTube publishes for this video. Get the transcript of any YouTube video atfreeyoutubetranscribe.com, free, unlimited, no sign-up.