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...
Hey thanks for this video. This makes more sense than my teacher explaining it
Glad it helped!
you literally save lives . thank you and god bless your beautiful soul
thank you for this video you saved me from so much stress
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:)
How did you change your app?
@MOHAMED OSMAN I used DN
@MOHAMED OSMAN RIP
@MOHAMED OSMAN LMAO
did they count it as plagiarism?
where did you get the parameters "(stateFilter, raceFilter, popFilter)" for the updateScreen function?
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!!
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.
@@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
@@colinabbott821 how did it go
@@whatagod314 how did it go
@@8ryson I got a 3 on mine and passed :)
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
How did you do it ?
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?
If you could meet the requirements..then absolutely.
To avoid plagiarism what specific things should we change in the code for this example?
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.
@Big Glocks So I could structure the project like this, like do it on arrest population but just change the coding?
@@derekburgos6991 Yes but cant copy the same code....but you can just do the same thing here just not the same code.
@SimpleCrown I actually copied everything and copied the code exactly and got a 100%. But thanks anyway 😆
@@derekburgos6991 don’t think they’ve been graded yet lmao
where did you get the table from
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
Can you help me I did a app like you but my app doesn’t work but the code has no errors
How have you used selection?
How have you used iteration?
selection: if statements
iteration: for loops
@@Kircic Thanks
10:11
How is her updateScreen code working mine says i have to declare it (please help)
did you remember to declare your updateScreen under the stateChoice and raceChoice onEvents?
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.
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!
@@Zyxoz No - still getting the error.
Still? Cant figure out
same here :(
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
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
for the updaeScreen, how does the computer know that the variables of stateFilter, raceFilter and popFilter will have the data given
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.
hi, I am making my code similar to this but different in a way, can you please help me?
Do you think you'll be able to post the free response by the weekend please?
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?
The sample written responses are here if that helps: studio.code.org/s/csp8-2020/lessons/1/levels/1 (Sample WR)
@@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?
for some reason when i type that [ i ] it says ERROR: Line: 40: TypeError: undefined is undefined
I have the same problem but have no clue on how to fix it
fixed it, instructions under @Ryder Harris 's comment
just wondering if this scores a perfect on college board?
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
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?
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
did u ever figure this out? i’m having the same problem
is stateInput and raceInput the box description or the drop down menu
When the user picks a state or a race from the dropdown, their choice is stored in stateInput and raceInput
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???
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
@@marcuspoonka ive triple checked the code and everything seems to be right im not sure what the problem is
@@elianaseles1696 Sorry im not too sure either :(
currently having the same problem, did u ever figure it out?
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)
I think you'll be fine as long as you cite it.
I was wondering if you did this with all the requirements for the ap handout college board that are linked in the lesson?
Yes the code follows those requirements
@CARLOS PINON CHAVEZ The sample written responses are here: studio.code.org/s/csp8-2020/lessons/1/levels/1 (Sample WR)
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?
Omg don’t copy everything they did
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?
sameee i need help
did you get it ?
It is 100% considered plagiarism since you are pretty much copying the code.
@@shuomingwang4078 What if you site it though?? Or will that just make it too obvious
@@eugenejaredsheldon8552 did u get caught for plageirsm
When I run the code no numbers, states, or races from the data set are returned. Is there any solution for this?
Are you doing it from a desktop using chrome or safari? Did you set up the data tab and the design tab correctly?
@@kayanhalesclarke8494 yes i used chrome and set the data and design tabs up correctly. should i try anything else?
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!
I did the same thing I think it should be find
fine
@@janasiabrown6832 cool! But did they have Graded it yet?
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!!!
That is 100% considered plagiarism
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?
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.
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?
@@kayanhalesclarke8494do you still offer tutoring?
@@kayanhalesclarke8494do you still offer tutoring?
HIGHLY DISCOURAGE DOING THIS!!!!!!!
What?
What??
why?
Learned the hard way :(
@@PamelaaQuinonez did you get flashed as plagiarism?
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
if you're doing the task in code.org they have examples in the lesson.
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?
Yes, it is still considered plagiarism even if you change parts of the code.
Did u not get in trouble for plagerism
did it work??? okz respond
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 !!!!
offffffffff
Can I copy this same project and submit it to college board? Will they notice or not care?
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
I'd highly discourage it
@@kayanhalesclarke8494 lmao
@@ackj88 XD
@@user-iu7pk2nn7y so if u use a different data base it will be not flashed for plagiarism
19:49
12:21
This was a waste of time and too many warnings and errors what a joke 🤣
you mustve did something wrong user error tbh