My student is using the weather dataset and would only like the high and low temps for cities in Alaska. They imported the data set and used the get column block to get the temperature columns. We are stuck on how to filter the data specifically for Alaska. Please help.
In accordance with the College Board’s guidelines for AP CS Principles Exam, we limit the debugging assistance we provide from March through the submission deadline for the Create Task.
From page 14 of the CB’s student handouts:
“you may not seek assistance in writing, revising, amending, or correcting your work, including debugging the program, writing or designing functionality in the program, testing the program, or making revisions to the program, from anyone other than your collaborative partner(s). "
Please verify this project is not part of a student’s Create Task for AP CS Principles.
If it is, we can only verify whether there is a technical issue with the platform causing the bug. If it is not, we are happy to help locate the bug and provide guidance on fixing it!
This is not for the Create Task. We’re behind and still trying to get through Unit 5.
Thank you for clarifying! It sounds like this fits in our “debugging problems” category because you’re having trouble with the code of a level. In order to better understand what the issue is, it would be helpful to have some context of your problem. Would you please add a post with a few pieces of information included in order to help other teachers or our moderator team best help you? You can copy and paste the section below and replace the sections in brackets.
Link to the project or level: [replace with link to the curriculum or get the “Share” link to a project]
What I expect to happen: [replace with a detailed description of the behavior you’re trying to create]
What actually happens: [replace with a detailed description of what actually happens when the code runs including any errors or unexpected behavior]
What I’ve tried: [replace with a detailed description of what you’ve already tried to do to solve the problem]
I will move this post to the debugging category so that we keep an eye out for it.
The student wants the user to select cities in Alaska and the high and low temperatures to be returned on the screen. They imported the data set and know they need to get the high and low temp columns. I do not know how to help them with selecting only cities in Alaska.
In the filter method they should also check if state is Alasks.
if(forecastNumberList[i] == tomorrowsWeather && stateList[i] == “Alaska”)
Thank you. Here’s the link to the actual project
The student has removed their filter method. It is needed. Go back to the previous version that was shared and simply make the change I suggested in my previous reply.
Thank you. I’ll have them work on it this week.