Unit 4: Project Decision Maker resetting cost to zero

I have a student who is making a graphic cards store and is totaling the cost and quantity. They want to reset the totals to zero when they finish. I don’t remember how to accomplish this. Can you help us?

The student could create a reset or home button and in the onEvents of these buttons, set all the variables to 0 and update the screen with these values. If you need more help with this, please provide the following information.

[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]

1 Like