# How can I do this homework?

**URL:** <https://discourse.processing.org/t/how-can-i-do-this-homework/40011>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [December 3, 2022, 7:51pm UTC](https://discourse.processing.org/t/how-can-i-do-this-homework/40011 "2022-12-03T19:51:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![add](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@add](https://discourse.processing.org/u/add)\
**Post date:** [December 3, 2022, 7:51pm UTC](https://discourse.processing.org/t/how-can-i-do-this-homework/40011/1 "2022-12-03T19:51:37Z")

</div>

Add a rectangle in which the input is entered. Make 5 buttons with the following text operations: - Clear: clear the text in the textbox - Capitals: put the letters in capitals - Last character: show the last character of the text - Middle character: show the middle character of the text (note: if the number of characters is even, show the 2 middle characters. - Match? : use the function match(text,”DAE”) to check if the word DAE matches the text given in the textbox.

---

<div class="post-metadata">

**Author:** ![debxyz](https://avatars.discourse-cdn.com/v4/letter/d/58956e/32.png) [@debxyz](https://discourse.processing.org/u/debxyz)\
**Post date:** [December 3, 2022, 8:39pm UTC](https://discourse.processing.org/t/how-can-i-do-this-homework/40011/2 "2022-12-03T20:39:17Z")

</div>

Hello @add 🙂

Please read through **THE FORUM’S GUIDELINES** on how to ask your questions:

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …

Posting your homework question without showing any attempt at breaking down the problem is basically asking us to do your homework for you. And I doubt you want that.

Help us help you by showing us what you know or can do at this point, even if you think it’s wrong. We can then build from that.

🤓
