CODE.ORG CSP UNIT 8 CREATE PT (PERFORMANCE TASK)

Поділитися
Вставка
  • Опубліковано 23 сер 2024
  • This video covers CODE.ORG CSP UNIT 8 CREATE PT (PERFORMANCE TASK) and some tips on how you can create your own.
    Feel free to sign up on code.org and work through the PT lesson here: studio.code.or...
    Link to code: github.com/kay...

КОМЕНТАРІ • 184

  • @whocares1400
    @whocares1400 3 роки тому +29

    Hey thanks for this video. This makes more sense than my teacher explaining it

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

    you literally save lives . thank you and god bless your beautiful soul

  • @Dominic644.
    @Dominic644. 4 місяці тому +1

    thank you for this video you saved me from so much stress

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

    Thank you so much! This video came in clutch as my app is due next week. I made a somewhat similar app to yours and it works really well:)

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

      How did you change your app?

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

      @MOHAMED OSMAN I used DN

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

      @MOHAMED OSMAN RIP

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

      @MOHAMED OSMAN LMAO

    • @kissIandd
      @kissIandd 2 роки тому

      did they count it as plagiarism?

  • @bigglocks7807
    @bigglocks7807 3 роки тому +14

    where did you get the parameters "(stateFilter, raceFilter, popFilter)" for the updateScreen function?

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

    Thanks a lot for the help. I based mine around this but made it different to avoid plagiarism. Even so I still cited you and your channel so they don’t try to find a way to hit me with a plagiarism strike. Thanks!!

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

      I made mine different as well, but I'm still a bit worried that they will try and find a way to hit me with a plagiarism strike, if I cite the video and her channel, do you think they will find a way to say the code is too similar to hers? I kept the stuff that needed to be kept such as the OnEvent but added new variables, a different way instead of using AppendItem, and different Function names. However, the for loop is still the same, I'm not sure if I can change that though. Any help would be greatly appreciated.

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

      @@whatagod314 I cited her channel and a link to it as well. I guess from there all we can do is hope for the best. On College Board it says if the code is not written by you you must right a comment acknowledging and citing the user who did it. And when I final submitted things it said I couldn’t collaborate with only the video and written responses. Best of luck to you

    • @8ryson
      @8ryson 2 роки тому +1

      @@colinabbott821 how did it go

    • @8ryson
      @8ryson 2 роки тому +1

      @@whatagod314 how did it go

    • @whatagod314
      @whatagod314 2 роки тому +2

      @@8ryson I got a 3 on mine and passed :)

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

    Thank you so Much ! Teachers don't even explain it to us in a example like this. I am doing my project on the world cup results. But anyways thank you so much

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

    do you think a music player app is a good create PT project? its where the user chooses a song from a drop down menu and it plays the song. do you think thats a good idea?

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

      If you could meet the requirements..then absolutely.

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

    To avoid plagiarism what specific things should we change in the code for this example?

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

      everything, make sure to code your own, or else plagiarism would be too easy to spot. Also, make sure to comment and the site code you didn't learn.

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

      @Big Glocks So I could structure the project like this, like do it on arrest population but just change the coding?

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

      @@derekburgos6991 Yes but cant copy the same code....but you can just do the same thing here just not the same code.

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

      @SimpleCrown I actually copied everything and copied the code exactly and got a 100%. But thanks anyway 😆

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

      @@derekburgos6991 don’t think they’ve been graded yet lmao

  • @mayedkaram2483
    @mayedkaram2483 3 місяці тому

    where did you get the table from

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

    Hello, can you please respond to my comment before an hour has past. I have a preformance task due and i dont know how to do it. I chose Nba teams

  • @hafizabdulrehman5985
    @hafizabdulrehman5985 4 місяці тому

    Can you help me I did a app like you but my app doesn’t work but the code has no errors

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

    How have you used selection?
    How have you used iteration?

  • @ams1096
    @ams1096 3 роки тому +10

    10:11

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

    How is her updateScreen code working mine says i have to declare it (please help)

    • @syd1.26
      @syd1.26 Рік тому

      did you remember to declare your updateScreen under the stateChoice and raceChoice onEvents?

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

    when i select a state the race and incarnation is already set to undefined. Even when I click race, it still doesn't update? how do I fix this? I tried both firefox and chrome.

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

    I am using different data, but following you step by step. However, when I get to the appendItem filterPopulation-your line 30 (although mine says filterData) (around the 21:43 minute mark), I am getting an error message stating "undefined is undefined." How do I fix this? TY!

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

      @@Zyxoz No - still getting the error.

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

      Still? Cant figure out

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

      same here :(

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

      It’s very odd cause I had the same problem but sometimes randomly my app would work and then after running and resetting a few times it stopped working and the message popped up again

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

      Figured it out. Just do this (my instructions will be based on Kayan's code):
      1. delete appendItem(filteredPopulation, getRacePopulation(raceInput)[i]) which is line 30
      2. copy or cut that whole if-statement under function getRacePopulation(raceInput) which is lines 42-54 and paste it inside function filter under appendItem(filteredRace, raceInput); , or just drag it into there if ur using block mode (that if statement should be inside the filter function's if statement)
      3. delete all the return calls and replace them with appendItem(filteredPopulation, _____[i]). that blank should be filled with the race you intend to add based on the if statement. For example, for whites, you would delete return whites; and put appendItem(filteredPopulation, whites[i]); in its place.
      4. make sure it works, and if it does delete the function getRacePopulation(raceInput) cuz u don't need it anymore.
      I'm pretty sure it said undefined is undefined cuz it didn't like how a function w/ parameters was inside another function w/ parameters.
      Hope my instructions work, God bless

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

    for the updaeScreen, how does the computer know that the variables of stateFilter, raceFilter and popFilter will have the data given

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

      If you look at the OnEvent functions, the filtered lists are passed in as parameters into the updateScreen function. That's exactly where we tell it what to use. Those filtered lists get populated in the filter function.

  • @hexrhythm1229
    @hexrhythm1229 2 роки тому

    hi, I am making my code similar to this but different in a way, can you please help me?

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

    Do you think you'll be able to post the free response by the weekend please?

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

      Hey Sour Games, I wasn't able to fit it in this weekend. Were you able to work on it and get some solid answers?

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

      The sample written responses are here if that helps: studio.code.org/s/csp8-2020/lessons/1/levels/1 (Sample WR)

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

      @@kayanhalesclarke8494 No I looked at the sample responses and other UA-cam videos but am still very confused. Do you think you would be able to do the free response soon?

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

    for some reason when i type that [ i ] it says ERROR: Line: 40: TypeError: undefined is undefined

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

      I have the same problem but have no clue on how to fix it

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

      fixed it, instructions under @Ryder Harris 's comment

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

    just wondering if this scores a perfect on college board?

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

      I'm not sure, I haven't submitted it to college board. But it matches the requirements stated in Code.org. I'd recommend using your own database and coding your own to avoid plaigarism

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

    i did everything according to your video, but for some reason my output doesn’t appear on the app screen, what do u think i should try to fix or look over?

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

      here copy this code make sure the id;s are correct too!
      CODE STARTS HERE-------
      ---------------------------------
      //declare variable
      var stateOrRegion = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "State or region");
      var total = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "Total adults in correctional facilities");
      var blacks = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "Black or African American adults in correctional facilities");
      var whites = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "White adults in correctional facilities");
      var indians = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "American Indian and Alaska Native adults in correctional facilities");
      var asians = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "Asian adults in correctional facilities");
      var pacifics = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "Native Hawaiian and other Pacific Islander adults in correctional facilities");
      var hispanics = getColumn("US Incarcerated Population, Per Race, Ethnicity, and Region", "Hispanic or Latino adults in correctional facilities");
      //on and offy events
      var filteredStateOrRegion = [];
      var filteredRace = [];
      var filteredPopulation=[];
      //state choose
      onEvent("stateChoice", "input", function() {
      filter(getText("stateChoice"), getText("raceChoice"));
      updateScreen(filteredStateOrRegion, filteredRace, filteredPopulation);
      });
      //choose race
      onEvent("raceChoice", "input", function() {
      filter(getText("stateChoice"), getText("raceChoice"));
      updateScreen(filteredStateOrRegion, filteredRace, filteredPopulation);
      });
      //FILTERRRRR!
      function filter (stateInput, raceInput){
      resetLists();
      for(var i=0; i

    • @dani-dc4bz
      @dani-dc4bz 3 роки тому

      did u ever figure this out? i’m having the same problem

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

    is stateInput and raceInput the box description or the drop down menu

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

      When the user picks a state or a race from the dropdown, their choice is stored in stateInput and raceInput

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

    I followed the video really carefully, but when I test out the app the text output gives me all the numbers instead of filtering through the lists. can anyone help me???

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

      Had that problem too. check to see if all ur [i] are in the right spots inside correct parentheses. on line 30, my [i] wasn't in between the ) parentheses so it did that too

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

      @@marcuspoonka ive triple checked the code and everything seems to be right im not sure what the problem is

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

      @@elianaseles1696 Sorry im not too sure either :(

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

      currently having the same problem, did u ever figure it out?

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

    When we're using outside resources for our CreatePT, and we don't know if the source we are using is under a Creative Commons license, can we still use that source and cite it? (since it may be fair use)

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

      I think you'll be fine as long as you cite it.

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

    I was wondering if you did this with all the requirements for the ap handout college board that are linked in the lesson?

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

      Yes the code follows those requirements

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

      @CARLOS PINON CHAVEZ The sample written responses are here: studio.code.org/s/csp8-2020/lessons/1/levels/1 (Sample WR)

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

    i copied everything in your video but on line 61 and 62 it is saying "popfilter" has not been declared yet and that it is not called in my program. how do i fix this?

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

    So I made a somewhat similar app like I made a different database and changed the code up a bit like the variables and I’m trying to get in each state the total of each race that takes an AP CS EXAM and I did all the code but I just can’t get the output for some reason can anyone help?

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

      sameee i need help

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

      did you get it ?

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

      It is 100% considered plagiarism since you are pretty much copying the code.

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

      @@shuomingwang4078 What if you site it though?? Or will that just make it too obvious

    • @meritbhusal
      @meritbhusal 2 роки тому

      @@eugenejaredsheldon8552 did u get caught for plageirsm

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

    When I run the code no numbers, states, or races from the data set are returned. Is there any solution for this?

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

      Are you doing it from a desktop using chrome or safari? Did you set up the data tab and the design tab correctly?

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

      @@kayanhalesclarke8494 yes i used chrome and set the data and design tabs up correctly. should i try anything else?

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

    I used the code, from your video but with a whole different database, should that be a problem?
    I Will really appreciate it if you take a minute to answer it, thanks!

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

      I did the same thing I think it should be find

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

      fine

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

      @@janasiabrown6832 cool! But did they have Graded it yet?

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

      I’m kinda confused to on the whole plagiarism aspect. I kinda used her code but changed a few things like adding an error message and a start message as well as completely different data base and slightly different topic. Do I still need to cite this vid?? And if so won’t college board look at it and think I copied even though I believe mine is different? Someone plzz helppp!!!

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

      That is 100% considered plagiarism

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

    Hey I’m trying to make my own app and with my code I think I may need to add in a calendar but I’m not sure like how to do it properly. I’m trying to make a simple period calculator by using the cycle duration days, the period duration, and the date of the last period but I don’t know how to be able to implicate all of that information properly so that it does the math in order to come up with the date that the user’s next period should come. Could you help me out please?

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

      We can video chat or something so that you can see my screen with my code to be able to see what I have so far, but any kind of help is useful and appreciated.

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

      Hello! I can answer questions relating to this course/content, but for other projects, I offer tutoring services here: tutoring.kayanhales.info. Are you trying to make a PT?

    • @lopezambrose0814
      @lopezambrose0814 5 місяців тому

      @@kayanhalesclarke8494do you still offer tutoring?

    • @lopezambrose0814
      @lopezambrose0814 5 місяців тому

      @@kayanhalesclarke8494do you still offer tutoring?

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

    HIGHLY DISCOURAGE DOING THIS!!!!!!!

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

    If anyone has access to the written response answers, or if you could do it that would be a huge help to get me going

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

      if you're doing the task in code.org they have examples in the lesson.

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

    Hey I copied the code will I get plagiarized for it and can I like change the code and change how it looks and I won’t?

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

      Yes, it is still considered plagiarism even if you change parts of the code.

    • @meritbhusal
      @meritbhusal 2 роки тому

      Did u not get in trouble for plagerism

    • @pizzacurry4451
      @pizzacurry4451 Рік тому

      did it work??? okz respond

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

    On line 17 it says the onevent() I’d parameter refers to an if (“ stateChoice”) which does not exist sino please help !!! I need to turn this in by 12:00 tonight !!!!

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

    Can I copy this same project and submit it to college board? Will they notice or not care?

    • @user-iu7pk2nn7y
      @user-iu7pk2nn7y 3 роки тому

      I suggest using a different database but even if u choose a different one and copy this same format it will be very easy to create

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

      I'd highly discourage it

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

      @@kayanhalesclarke8494 lmao

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

      @@ackj88 XD

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

      @@user-iu7pk2nn7y so if u use a different data base it will be not flashed for plagiarism

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

    19:49

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

    12:21

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

    This was a waste of time and too many warnings and errors what a joke 🤣

    • @Dominic644.
      @Dominic644. 4 місяці тому

      you mustve did something wrong user error tbh