Code.org Lesson 12 Traversals Make a Random Forecaster App | Answer Tutorial | Unit 6 CS Principles

Поділитися
Вставка
  • Опубліковано 28 жов 2024

КОМЕНТАРІ • 127

  • @abhiramyakkali591
    @abhiramyakkali591 3 роки тому +751

    This guy is the Savior of ALL AP CSP students, without him at least 80% of all classes would be failing. This guy is the GOAT.

  • @gabba8040
    @gabba8040 4 роки тому +280

    you are literally my savior

    • @oreo244
      @oreo244 4 роки тому +4

      i feel u

    • @201
      @201 3 роки тому +3

      our computer science savior

    • @campbellcoleman7660
      @campbellcoleman7660 3 роки тому +2

      Me too

    • @Kai-kx2pf
      @Kai-kx2pf 3 роки тому +2

      Lol I didn’t even pay attention much, I needed it too XD

  • @esmeraldaduran7044
    @esmeraldaduran7044 4 роки тому +468

    Honestly if it wasn’t for you I would be failing Computer Science right now thanqk !!

    • @zacharywyatt261
      @zacharywyatt261 3 роки тому +4

      I was the 100th like lol

    • @esmeraldaduran7044
      @esmeraldaduran7044 3 роки тому

      @@zhouzhouzhou4 yes I have finished

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      @@esmeraldaduran7044 I don’t know what to do, can you send me the code, thank you very much

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      @@esmeraldaduran7044 Please help me please

  • @zw3756
    @zw3756 3 роки тому +201

    It’s actually awesome how you not only help us with these levels, but u also give explanations for everything you do. Thank you so much and great vid!

  • @Tubbsmahn
    @Tubbsmahn 4 роки тому +162

    Kurt you have been my savior for my CSP class and I want to like hug you for that, your videos explain things more clearly to me than my own teacher has been for the past school year

  • @legacyrxt7570
    @legacyrxt7570 3 роки тому +62

    dude this guy is literally the most helpful youtuber i have ever seen

  • @kade_3652
    @kade_3652 3 роки тому +35

    This dude is literally the only reason I’m passing ap Comp I actually understand what you are explaining ☺️

  • @masongames2552
    @masongames2552 3 роки тому +70

    So if you are getting a set text error like some people are I figured out why and how to fix it. (this is what worked for me)
    Make sure your get Columns don't have brackets [ ]
    And I think it is happening because when you put a list command or what ever in from the tool box area the list comes with the brackets, when he did it he used a var = thing and then put the get Columns in.
    Hope this helps

  • @salvador6182
    @salvador6182 4 роки тому +36

    kurt kaiser back at it again with the life saving videos

  • @AlexYoo-v9x
    @AlexYoo-v9x 3 роки тому +137

    lol this man's saving a lot of students

  • @name-mf5hm
    @name-mf5hm 4 роки тому +51

    can you do this for all of the make lessons this is really helpful

  • @alphalex_
    @alphalex_ 2 роки тому +3

    i was stuck in my APCSP class and you explained it to me better than my teacher did tysm i wont fail now

  • @mariad2699
    @mariad2699 3 роки тому +3

    I finally realized why my program wasn't working, it was just a syntax error. Thanks for all your videos. they're very useful.

  • @nacerussell0717
    @nacerussell0717 3 роки тому +17

    in the for function change the var i = 0 to var i = 1
    if the number is 0 you have to click get forecast twice, if 1 you only have to click it once for the data to show up

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

  • @bromati6776
    @bromati6776 4 роки тому +6

    this man is gonna save me for computer science

    • @bromati6776
      @bromati6776 3 роки тому

      Sorry man but rn i have only gotten to unit seven because we are doing some sort of create task for college board

  • @josephhabchy6890
    @josephhabchy6890 4 роки тому +32

    Okay, so I figured out why it says undefined and it only happens whenever I put the for loop inside of a function. As long as it is outside, it works fine.

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +14

      It would say undefined if for some reason the loop did not see a variable, or a list variable, called cities. It means it does not see what it is looking for. If cities was defined differently elsewhere, that could cause an issue. It seems like you solved it though. Awesome!

    • @rohankhubchandani3694
      @rohankhubchandani3694 4 роки тому +5

      I had the exact same issue lol

    • @c.co.7400
      @c.co.7400 3 роки тому +4

      @@KurtKaiserUS hey uh, you had a video of the hackathon project walkthrough, it was really helping me but now i can’t find it? did u delete? if so can u link it?

  • @derpynarutoplays7851
    @derpynarutoplays7851 3 роки тому +7

    this dude is a goat give him a round of aplause

  • @moisesalvarez5987
    @moisesalvarez5987 3 роки тому +2

    I wish I had a teacher like you

  • @ProductionSTTB
    @ProductionSTTB 3 роки тому

    we need more people like you, keep up the good work man !!!

  • @alexronaldo4861
    @alexronaldo4861 3 роки тому +11

    I have a question about when I use the exact code for my hackathon with a different code and how the index in the last part for the function updateScreen it won't work and says
    WARNING: Line: 32: setText() text parameter value (undefined) is not a uistring.ERROR: Line: 32: TypeError: Cannot read property 'toString' of undefined. Can you explain what this is supposed to mean.

    • @KurtKaiserUS
      @KurtKaiserUS  3 роки тому +3

      Hmm, if you are using a list, the index at that point must not have an item saved there. I have made a few videos with tips about lists for the hackathon: ua-cam.com/video/ZzgEZPJf0ZA/v-deo.html

  • @tylersieben6868
    @tylersieben6868 3 роки тому +6

    If you are getting a set text error please be sure not to make your first 6 variables lists.

  • @jakeLombardii
    @jakeLombardii 3 роки тому +7

    I am getting this message. "WARNING: Line: 35: setText() text parameter value (undefined) is not a uistring.ERROR: Line: 35: TypeError: Cannot read property 'toString' of undefined. Can you help me with this?

    • @KurtKaiserUS
      @KurtKaiserUS  3 роки тому +1

      Not a uistring means it is not a word, like "hello" would be a string. Double check that what you are putting is a variable. If it isn't a variable and you just want it to output that word, you need to put it in quotes.

  • @ramia4129
    @ramia4129 3 роки тому +4

    you are a life savior

  • @mr.murray
    @mr.murray 10 місяців тому

    if you are in my class you better be using Mr. Kaiser as a reference!!! Haha
    Great work!

  • @seekinpeekin
    @seekinpeekin 4 роки тому +10

    I am pretty sure I followed your exact code as everything else works completely fine. However, whenever I click the Get Forecast button my icons do not show up. I have checked for spelling errors and there are none so i am lost.

    • @rohanphadke2383
      @rohanphadke2383 4 роки тому +8

      ​@@seekinpeekin
      Because it's an image not text change the setText line for iconOutput to: setProperty("iconOutput", "image", tomorrowIcons[index]);

    • @seekinpeekin
      @seekinpeekin 4 роки тому

      @@rohanphadke2383 Thank you that makes a lot of sense now.

    • @MadisonSmith-zm7lk
      @MadisonSmith-zm7lk 4 роки тому +1

      @@rohanphadke2383 You are a genius! I literally couldn't figure out why that was the only thing that wouldn't work!!!

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +3

      Correct, great solution!

    • @AngelEbina
      @AngelEbina 3 роки тому +2

      @@KurtKaiserUS it still doesn’t work for me

  • @bobjim7659
    @bobjim7659 4 роки тому +8

    PHENOMENAL
    that's it
    keep it up

    • @201
      @201 3 роки тому

      yes bob

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

  • @kykim6398
    @kykim6398 3 роки тому +8

    Nothing happens when I click on the button after all this, does anyone know what the problem could be?

    • @andrewherman5504
      @andrewherman5504 3 роки тому +2

      Make sure the code inside of the forecast button is written correctly. Hope that’s helpful since I won’t be able to see the code :)

    • @legacyrxt7570
      @legacyrxt7570 3 роки тому +3

      same wtf is happening

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

    • @andrewherman5504
      @andrewherman5504 3 роки тому +1

      @@zhouzhouzhou4 I’m not very good at explaining, but if you have Instagram I’ll dm you a picture of my code

  • @channel.anaaaa
    @channel.anaaaa 3 роки тому +8

    I did everything the same and the debug console says that setText("cityOutput", tomorrowCities[index] text parameter value (undefined) is not a uistring and cannot read property 'toString" of undefined.
    Please help

    • @channel.anaaaa
      @channel.anaaaa 3 роки тому +3

      Now it says the same thing for all 4 lines of set text, I don't know what's wrong

    • @aarushtripathi7216
      @aarushtripathi7216 3 роки тому +4

      I am having the same problem, can someone please help

    • @antoninatomei984
      @antoninatomei984 3 роки тому +2

      Me too. Same problem here

    • @antoninatomei984
      @antoninatomei984 3 роки тому +3

      Hey, make sure that in the function getTommorwWeather the forecastNumbers [i] == 1. I made a mistake and out i instead of 1. It fixed the problem for me

    • @channel.anaaaa
      @channel.anaaaa 3 роки тому +1

      @@antoninatomei984 Mine already says i==1 haha. Thank you though!

  • @kingfaze147
    @kingfaze147 3 роки тому

    computer science saver right here!!

  • @Energeticdragon_
    @Energeticdragon_ 9 місяців тому +1

    thanks this helps a bunch

  • @brycedavis4138
    @brycedavis4138 Рік тому +1

    The goat right here

  • @kianlau5786
    @kianlau5786 3 роки тому +15

    For anyone with a ui.string error, it is a problem with your for loop variable. My error was with the equal signs. In the video, he puts 2 equal signs; however it should only be one. Instead of forecastNumbers[i] == 1 it should be forecastNumbers[i] = 1.

  • @lornsumm3249
    @lornsumm3249 3 роки тому

    Very thorough and understandable, thank you.

  • @shaylamuhsen9711
    @shaylamuhsen9711 3 роки тому +1

    Your videos help me so much

  • @Abc-qm5to
    @Abc-qm5to 3 роки тому +4

    I have the same things as you, but none of the info is appearing on the screen. Does anyone know what I did wrong. I checked and the code is totally the same

    • @KurtKaiserUS
      @KurtKaiserUS  3 роки тому +5

      It is likely some tiny annoying error. Code is about the logic, sometimes you can write it down and if you don't get the logic the tiniest details just, it gets so frustrating. I'm not sure what your exact issue is, I would just double check anything try to rewatching the videos. I know right where you are and it's miserable keep at it

    • @Abc-qm5to
      @Abc-qm5to 3 роки тому

      @@KurtKaiserUS I will do that. Thanks again for these videos, they are super helpful

    • @Abc-qm5to
      @Abc-qm5to 3 роки тому +1

      @@KurtKaiserUS I tried again today and now it works. I think it was just my internet giving me troubles

  • @possiblycreativecomment3021
    @possiblycreativecomment3021 3 роки тому +3

    Absolute legend

  • @asherdean9910
    @asherdean9910 3 роки тому +3

    Much love

  • @anaclaradeoliveira7017
    @anaclaradeoliveira7017 3 роки тому

    So what if I’m making a similar app but I don’t want it filtered.... What would I do instead?

  • @adityagandhi9
    @adityagandhi9 4 роки тому +2

    Thank you so much your videos are rlly good keep it up Mr. Kaiser

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

  • @lordequacc847
    @lordequacc847 3 роки тому +1

    you are a legend dude

  • @alamode5763
    @alamode5763 3 роки тому +1

    Dood is a life saver

  • @kekedawson4415
    @kekedawson4415 4 роки тому +1

    My icons won't display but I put set property instead of set text and the console is saying that the link for the photo is not a string.

    • @ztrange1236
      @ztrange1236 4 роки тому +1

      I just had the same problem, but I figured it out! Go back to your for loop and find the append for the icons. Check if it says this... appendItem(tomorrowIcons, icons[i]);

    • @KurtKaiserUS
      @KurtKaiserUS  4 роки тому +1

      That is a tricky part, the [i] is what represents the index of the list item. So, if i is equal to 3 then icons[3] would be the fourth icon in the list, if i is equal to 0, then icons[0] would be the first item in the list.

  • @elinascott
    @elinascott 3 роки тому

    how did you get that template?

  • @negrusarticulus3852
    @negrusarticulus3852 3 роки тому +4

    This nigga the goat

  • @oliviarizzo6547
    @oliviarizzo6547 3 роки тому +1

    thank you angle on earth

  • @rishianand8102
    @rishianand8102 3 роки тому

    Dude thank you man! My stress is slightly gone away

    • @christophermatthews1767
      @christophermatthews1767 3 роки тому +3

      Can you post the code

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

    • @rishianand8102
      @rishianand8102 3 роки тому

      @@zhouzhouzhou4 yes

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому +1

      @@rishianand8102 Can you give me the code, I really need it

  • @colekincaid4898
    @colekincaid4898 3 роки тому +8

    I literally copied everything you did down to the letter. And I still get the error: WARNING: Line: 35: setText() text parameter value (undefined) is not a uistring.ERROR: Line: 35: TypeError: undefined is not an object (evaluating 't.toString')

    • @KurtKaiserUS
      @KurtKaiserUS  3 роки тому +3

      Are you also using an array/list? A parameter is the item you are using with set text. So if I wanted to set my text to the third item of my list named toys, I would 0ut setText(toys[2]); but if my list did not exist or it only had one item in it, then I would get an undefined error. It could also happen if I had toys[x] but x was never defined.

  • @joshfisher1330
    @joshfisher1330 3 роки тому +1

    THANKS AGAIN!

  • @toxicclown1846
    @toxicclown1846 3 роки тому +1

    thank you so much

  • @graceweihmiller5629
    @graceweihmiller5629 3 роки тому +2

    My icons aren’t working

    • @ESlove20224
      @ESlove20224 3 роки тому +3

      Same...did it work for you yet ??

  • @TriForceHero_
    @TriForceHero_ 9 місяців тому +1

    real one

  • @kyegorosave2874
    @kyegorosave2874 4 роки тому +5

    Kurt the g.o.a.t

    • @201
      @201 3 роки тому

      kurt.

  • @yllw.tertilla1091
    @yllw.tertilla1091 4 роки тому +5

    i know you here too astroguy lmao

  • @sashagutierrez7271
    @sashagutierrez7271 3 роки тому +2

    the goat

  • @niaaa6342
    @niaaa6342 3 роки тому +1

    I LOVE U KURT

  • @rohan8955
    @rohan8955 4 роки тому +12

    i love you

    • @zhouzhouzhou4
      @zhouzhouzhou4 3 роки тому

      Hello, have you completed code.org
      Lesson 10.4 Traversals Investigate Dog Finder Investigation? I really need its answer, thank you very much

  • @samanthasands8136
    @samanthasands8136 3 роки тому +1

    🐐

  • @cringeworthy6555
    @cringeworthy6555 4 роки тому +7

    I owe you a life debt

  • @cent-hl3xl
    @cent-hl3xl 3 роки тому

    anyone taking 5 or more click on get forecast button and then only it works properly?

    • @cent-hl3xl
      @cent-hl3xl 3 роки тому +2

      nvm you just gotta wait a bit before spamming 💀

    • @KurtKaiserUS
      @KurtKaiserUS  3 роки тому +1

      Runs slow sometimes - keep it up 💪

  • @armaansalahuddin9781
    @armaansalahuddin9781 3 роки тому +1

    Sachin pls wait for me

  • @diegobaez7782
    @diegobaez7782 3 роки тому

    te falto una w iiiii te gano iiiiii

    • @diegobaez7782
      @diegobaez7782 3 роки тому

      te volvi a ganar iiiiiiiii

    • @diegobaez7782
      @diegobaez7782 3 роки тому

      iiiiii te gano gringeishon sorryeisho paseleishon por lo barrideishon

  • @tanishravinuthala3972
    @tanishravinuthala3972 4 роки тому +1

    Thank you so much

  • @amandamingolelli4454
    @amandamingolelli4454 3 роки тому

    I love you