01-14-2024 10:25 AM - last edited on 01-14-2024 01:34 PM by altenbach
i have a homework and this program wants that prints the matching words and their number in the text, but it will also run when we type the desired word. i need help immediately
01-14-2024 01:10 PM - edited 01-14-2024 01:11 PM
Showing a truncated redacted picture of a front panel Does not really tell us your problems.
While we don't do your homework, we are happy to help, given sufficient information.
It is a weekend (even a long holiday weekend in the US!) and nobody likes unreasonable demands such as "i need help immediately". I suggest that you "immediately" look at your class notes and see if you can figure it out. See how far you get, then show us what you have and describe where you are stuck. If we see some effort, we might give you some pointers.
01-14-2024 02:49 PM
Sorry for my rudeness.
This program finds words in the text (also the word containing those letters) . Text comes from a .txt file but writed with hand.I want to write words in an array.
I dont know how to pull data.
in the first picture 'Ara' meaning search , its a search box.
im talking about word counts.
And yes i want to update the indicators whenever the search word changes.
01-14-2024 03:23 PM - edited 01-14-2024 03:34 PM
Nobody is asking you to solve all these problems unless all the required basics have been taught in class.
Can you explain what specific problem is preventing you from completing the assignment?
If you have problems with any of the above, maybe this course is not for you.
01-14-2024 03:37 PM
im searching and working on but i dont think im making any progress.
i want to take searched words from delimited string and show in an array.
i downloaded the question teachers wants from me. and the homework is what i did.
And thanks for the your help.
01-15-2024 03:55 AM
i got this homework and i have done. thanks for the help
01-15-2024 10:38 AM - edited 01-15-2024 10:42 AM
@berkebb53 wrote:
and the homework is what i did.
You should NOT mark a post as "solution" unless you actually post the solution!
While it might work, there are some serious problem.
To count substring matches, all you need is the following:
To parse the string into words given a collection of delimiters (tab, space, linefeed, comma, period, etc.) have a look at "scan string for tokens". A very useful tool to know.