MyProgrammingLab Code Lab Warmup Transcript

Print

All right. Let me provide some assistance with doing the my programming lab. So first thing you want to do is go to myprogramminglab.com. And then log in. So you should have created an account. If you did not create an account, please watch the video that walks you through the process of creating an account.

Now, once you log in, it's going to take you to this page. And you want to click on the plus sign, that one right there that's next to the week one lab. And then you see you have three sections to do.

The first one is a code lab warm up. And the code lab warm up really teaches you how to use the my programming lab. So go ahead and click that plus sign. And then we're going to do 2501. So click on the 2501.

And the task is write an arithmetic expression that calculates the average of 18 plus 46. And then they tell you to just try stuff. In other words, just try it. If it works, great. If it doesn't work, then no big deal.

So let's say we do it incorrectly. Let's say we do this accidentally. So we're going to say 18 plus 46 divided by 2. That seems right.

You hit Submit. And you've got an illogic error. So it says, did you forget proper parenthesization? And if-- it's order of operations. So multiplication and division is done before addition and subtraction. So this actually divides it first.

So it's 18 plus 23. Because 46 divided by 2 is 23. Well, that's not what you're after. So you can go back over to the work area. So see this right here, work area.

All right. So then you try something else. Well, what if we accidentally put the wrong sign? So we say 18 minus 46. So we put our parentheses because order of operations, please excuse my dear aunt sally, parentheses, exponents, multiplication, division, addition, subtraction. OK.

So it's going to do the parentheses first. Then, it's going to do the division. All right. So I'm going to hit Submit. And it says, are you sure you want to subtract here?

See that? So you can see that it's giving you ideas of how to fix your code. And now here we're just doing a little bit of math. But this is just showing you how to use my programming lab.

All right. So you come back over here. And then you hit Work Area again. All right. So now, we're going to say, well, you know what? Maybe I don't want to do subtraction. Maybe I want to do addition. So you hit the 18 plus 46 in parentheses divided by 2. And then you hit submit.

And then it says, great job. So correct. All right. So that's a good word to see right there. And then there's a check mark next to it now. So your instructor will see that you completed it.

All right. So now, you come over here, and then you hit 2502. And you're going to be doing the next one. So I'm going to go ahead and click on 2502 right here. And then it says five friends are going to the theater.

They have purchased a row of five seats with an aisle on either end. James doesn't want to sit next to Jill. Betty and Herb are dating and want to sit next to each other. Bob must sit on an aisle.

Provide a seating order that conforms to the above rules. And here's an example. The above arrangement, this arrangement is invalid because Bob needs to be on the end. All right.

So if we put Bob on the end. And then Betty and Herb are dating, so they want to sit next to each other. And then James does not want to sit next to Jill. So if I put a comma Jill, that's going to be wrong because they're sitting next to each other.

So I'm going to have to put Jill over here. So maybe Jill right there. So Bob is still on the end. Jill and James are not sitting next to each other. And then Betty and Herb are sitting next to each other.

So that seems to conform to all the rules. And 1, 2, 3, 4, 5. So there's five of them. So specify the seating order separated by commas. That sounds good. Spell the names correctly, including capitalisation. I did that.

All right. So now I'm going to hit Submit. And it is correct. See how that works. All right. So let's go ahead and go over to 606.

And then a British logician, whose last name was blank, was the founder of computer science. Huh, no clue whatsoever. And if I didn't have the textbook handy, then I would be googling this. Right?

Because I love Google. So instead, I'm going to come over here to the top right-hand corner. See where it says e-text? And I'm going to click on E-text. And that opens up your textbook.

All right. So you have quick access to your textbook just by clicking the e-text there over on the top right-hand corner. All right. Now with this e-text you want to go through the text and read about it. All right. And you want to read these items.

And as you read and as you hit programs to create, it provides even more value. This is a good textbook. And you definitely want to learn about variables and learn about these other items. So please do read the textbook and learn more about it.

OK. Now for this I'm going to do a search. And I'm going to actually search for British because they specifically said that the guy was British. Hmm. It did not find anything.

So I'm going to search for maybe the word logician. That's logic, a person who's very logical. All right. So I'm going to pop over here. And I will search for that. Still no records, hmm. Well, that's interesting.

All right. So now, founder. How about if I look for founder?

[TYPING ON COMPUTER]

Ah, still nobody. OK, so computer science. All right. So now, there's a chance that that answer might not be in the book. And let's see, chapter 15. I would expect this to be early in the book.

So here's chapter 1, introduction. And I would expect it to be early. So front matter, nope. All right. So let's go ahead and try this one right here.

So you just have to try stuff. And then if you find it, great. And then when you're in the book, you can see that-- I am in the book right now-- if I want to go to the next page, I simply come over here. And then I click here.

Or I can also hit this one right here. This takes me to the next page. See that takes me to page number three. All right. So I can take a look at that. And I can read as I go.

Which I love the fact that you can increase the font size. You can see that right here, 281 and page number four. All right. So let's talk about how that works. If you have never built a computer from scratch, you really should.

Because you can buy a motherboard. And you can buy all the pieces for a computer and then put it together. This right here is a CPU. And it's real interesting how they work. And this is part of the learning process. So you want to read this and learn about this type of thing right here, fetch, decode, execute. And then this is the main memory. So these are very important things for you to know. And hopefully, you already know this because you've already taken one of the courses.

All right. So I'm still not finding it. So now, it is time for Google. So I'm going to go ahead and hit this. And I'm going to grab the question, British logician. You know, I'm going to grab the whole thing then a Control-C.

Then here's my Google. All right. And then I'm going to get rid of this part. Uh oh. I think I already saw the answer. British logician whose last name was a founder.

All right. Let me click there and see if that's the answer. Matthew challenge touring. All right. So I'm going to grab this, do a Control-C, flip over here, and see if that's the correct answer. All right. Hit submit. Right on the money.

All right. So look at your textbook for assistance and for reading the chapters, especially when we start getting into pointers and starting to get into object oriented programming, these items. Make sure you're reading the chapter. So chapter 9 and chapter 10, those are really critical.

And then just continue answering the questions. And you can see every single one that I get correct, it puts a check mark next to it. So your instructor is going to have access to the number of check marks that you have.

And then your instructor can give you points based on that. All right. So that's how you use my programming lab.

[End of Audio]