Help please! unit 4 lesson 13

My student is trying to code for unit 4 lesson 13. I cannot figure out why her code won’t work. This is my first time teaching this…can you help me please? Thank you

[Posts in the debugging category need to have the following pieces of information included in order to help other teachers or our moderator team best help you. Feel free to delete everything in brackets before posting your request for debugging help.]

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]

@cmholda Thanks for posting this request. Please complete the information for the Debugging help listed above.

Link: - App Lab
The coding doesn’t work. The app doesn’t run. She tried to debug, but cannot find/fix the problem.

After looking at the program, the updateScreen function is currently inside an onEvent function on lines 15-24. Those should be separated. The updateScreen function only gets activated when the user clicks the calculate button. Therefore, the other function calls to update on lines 6 and 11 won’t be executed. You also can view the two sample solutions on U4L14 Bubble 3. That will also help you to provide support to your student. Please let us know if you have more questions.

THANK YOU! I really appreciate your help.

1 Like