Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

scarson

  • 2 years ago

Hey, I finished doing the first written exercises (http://bit.ly/SouFWO) and have correctly predicted the output for the final question (Ex 1.15 Buggy Loop), but I have no idea what this code might be trying to do, so have no idea what changes might be made. Any thoughts?

  • This Question is Closed
  1. estudier
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    n never changes, I suppose the idea is that i reaches some value and then something is done with n (and with i, maybe) but there are other possibilities...

  2. estudier
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I wonder if they will put some timetable for the MOOC, looking at the materials (do some stuff on Monday, some on Tuesday it says) and then materials from different sources. Without some sort of guidance, things are going to get confused pretty quickly, I think.

  3. Daeruin
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I had the same question. Since the variable n isn't used in the code, I thought that it probably should be. But where? The if statement is clearly checking to see if the variable is even or not. But why? I have no idea.

  4. MOOC-E
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Estudier: The Mechanical MOOC will send weekly e-mails with pointers to specific materials to review or exercises to complete during the week. Participants will post questions they have to this study group.

  5. scarson
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    Yeah, I still have no idea, but I suppose "n" is a clue. Has to be there for some reason.

  6. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.