# Any idea how to fix this? Quiz

**URL:** <https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [November 12, 2019, 10:15am UTC](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418 "2019-11-12T10:15:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 12, 2019, 11:15am UTC](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418/3 "2019-11-12T11:15:43Z")

</div>

Hello

Is this a homework or academic assignment?

Is it a new topic or related to your last topic? They look similar.

> [@How can I change the page by clicking a button?](https://discourse.processing.org/t/how-can-i-change-the-page-by-clicking-a-button/15244):
>
> How can I change the page by clicking a button?

A clear statement of the problem helps.  
Add some comments to your code.

Consider drawing a “state diagram”:  
[State Diagram](https://www.google.com/search?q=state+diagram&rlz=1C1CHBF_enCA822CA822&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjSgJSQxeTlAhUnVt8KHfUBBiUQ_AUIEigB&biw=1280&bih=705)  
I use state diagrams and flowcharts for my more complex code.

Hint to get you started:  
Try putting `flag = 0;` at the end of if statements in the main loop; try one at a time and observe.

That is it for now…

🙂

---

_[View the full topic](https://discourse.processing.org/t/any-idea-how-to-fix-this-quiz/15418)._
