# Help? i dont know how to do this (assignment for school)

The teacher didnt explain it well and it was really confusing. So basically we are supposed to make variables (first name,last name, and initials).

but i dont know how to do the initials part? what blocks to i use to make them er as in (emily rodriguez an example name)

Well, do you know how to find the first letter of a text string?

Do you know how to combine two text strings?

Maybe check the operators category. I think you'll find some blocks that might help.

I could tell you how to fully complete it but I don’t know if I can and if that’s be respectful.

Look in the operators category? If you truly can’t get it I’ll help you more.

sigh I'm back...ANYWAYS,

What you need is a LIBRARY. So you can go to the "File" button at the top-right, and then click on it. You should get a drop-down menu.

Next, you can click "Library", where you should get a menu named "Import Library".

Scroll down. You should be able to see the "strings, multi-line input" library.

NEXT, click on it.

[complete solution removed --bh]

What they are trying to do is something that does not need a library. And since it's an assignment, we shouldn't give them the solution, but instead point them in the right direction.

In the Variables category (found on the left side of the screen) you can find an option to Make a variable:

Pressing this button will open a dialog box to name and create a variable. It looks like this:

This is where you will name your variable. For your case, we will name it initials.

Now, using the first name variable and the last name variable, we can combine it with the [scratchblocks] (join [hello•] [world]::operators)[/scratchblocks] block. Using the left and right arrows will add/remove an input slot.

@vanzie: I'm about to deliver a long rant to the other people who've suggested answers to your question. What follows is not for you, so please don't be scared away by it!

I have removed a conversation between @mr_owlssssnap2 and @ego-lay_atman-bay displaying a complete solution to this homework problem. Both of you should know better — in fact ego-lay_atman-bay does know better, and, ironically, said so earlier in this thread. @slate_technologies made an even worse version of this by linking to a runnable project.

But ego-lay_atman-bay is right to point out that y'all are making this much more complicated than necessary. To everyone who's replied this is an easy problem, but the OP is a beginner and it's not easy for them. I imagine that the overall effect of this thread is that the OP has been scared away and will never ask for help on the forum again! So for example let me pick on @joecooldoo for a change: If you look back at the OP's screenshot, it should be clear that they already know how to make a variable; that's not what they're having trouble with. What they need help with is one or more of three things:

• how to find the first letter of a word
• how to combine two first letters into a two-letter word
• how to use composition of functions to combine those two steps

The first two of those things are just a matter of finding the right primitive block. When ego-lay_atman-bay said "Maybe check the operators category" that was a good hint (although I would have capitalized Operators to make it clearer that that's a thing) supposing it's either or both of those two problems. (@earthrulerr said the same thing, but loses points for not reading the entire thread before responding.)

But nobody said anything that would help if the OP's problem is about composition of functions. To an experienced Snap!per that's so habitual as not to feel like a thing at all, but I think it's a very likely issue for a beginner. But, even more important, we're all guessing; it's not clear from what the OP said what's the problem they're confused about. (But note that they did say that they're confused about something, and not merely ignorant of the relevant primitive blocks; that's what it means when they complain about their teacher not explaining the problem well.)

This is where I have the advantage over y'all of being a trained and experienced teacher; I know that almost always, the best way to answer a question is with a question:

I didn't explicitly address the third possibility, because to say "do you understand composition of functions?" to a beginner would just scare them away. But if the OP answered the two questions I did ask, that would help us infer whether they have a problem about composition of functions.

I had to think about whether to say "text string" or "word." The latter is my instinct, both because I'm a Logo person and because "text string" is formal CS jargon whereas everyone knows what a word is. But in the end I went with "text string" because it's more likely to be what the OP's teacher says in class.

I also don't know what the teacher wanted this exercise to teach. If I were the teacher, and I had assigned this problem, it would be entirely to teach composition of functions, and so if the OP just doesn't know where the primitives are, I'd show them. But maybe the teacher intends this problem as a sort of scavenger hunt for primitives, on the (correct) theory that kids will learn the primitives better if they find them themselves than if someone just tells them. I wouldn't use this problem for that purpose myself, because another thing I learned in teacher school is that a problem should just present one new idea, not two at once. So for a scavenger hunt I'd make a table with headings INPUT, OUTPUT, and BLOCK, and one row of the table would have "emily" and "e" in the first two columns, and the student's task would be to fill in the third column. This is why it's especially good to answer a question with a question when you're not the OP's teacher. If I recognized the exercise as coming from BJC, as sometimes happens on the forum, I would be confident about what the kid is supposed to be learning from the exercise because I'd know the context, where the exercise appears in the course.

And if y'all had refrained from pitching in, the OP might by now have answered my questions, and we'd all know what help they need.

I absolutely agree with you. I did actually post my solution practically right after I got back from marching band, so my mind was not in the right place. I apologize for that. And thanks for clearing this up.

I included that because sometimes teachers give you pre-built projects that you need to complete (I know this because I took a coding class at our local library once)
But after taking all those screenshots, I got a little lazy and didn't go into detail. My mistake.

ok but like how are we supposed to help them then

Sorry but, I dont know how to describe it

The best thing is to think of a good question to ask. Either something to clarify for you what's standing in their way, or, if you're pretty sure you know that (e.g. because six other people have had the same question), something to clarify for them a step between what they know and what they're supposed to learn.

Ah, makes sense now that I think about it.

Time for me to leave again...

Why do you have to leave?

??

He overreacted to the point hes leaving

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.