This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-13 20:50:42

passionforteaching
New Scratcher
Registered: 2013-03-10
Posts: 4

Please Help! Need This For Tomorrow

This is what i want my program to do:
1.    A sprite asks for a user name.
2.    The sprite will greet the user by name (as entered above)
3.    The sprite will ask for a password. The password is “LSP121”
4.    Program checks for incorrect password.
If an incorrect password is given, the sprite changes appearance (size and/or special effect/color change)
Using the user’s name, the sprite tells the user the password is incorrect.
Then the sprite goes back to its initial size and appearance
Sprite asks for the password again. IT DOES NOT ASK FOR THE NAME AGAIN. 
After three tries with an incorrect password, the sprite will give a final error message using the user’s name and end the program.
5.    If the correct password is given, the first sprite disappears and two sprites come out. One sprite tells a knock-knock joke to the second sprite. The second sprite, after being given the punch line to the knock-knock joke, reacts either with a text response or some other way (change of appearance).   The program will then end with a message from the first sprite.

This is what I have and I can't figure out what i am going wrong (copy that link. I had to take a picture because i do not know, nor do i have time to create it using the scratchblocks)
http://www.imageurlhost.com/images/bfek19ykwp05a497r1.jpg

I think I am over complicating it. I have been trying different things for several hours now NON STOP and still cannot get my program to do this. Can anyone show me via scratch blocks what this script would look like? I need it in order to complete an assignment that builds on this and cannot do it until I get this done first. THANK YOU SO MUCH!

Offline

 

#2 2013-03-13 21:18:08

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Please Help! Need This For Tomorrow

passionforteaching wrote:

This is what i want my program to do:
1.    A sprite asks for a user name.
2.    The sprite will greet the user by name (as entered above)
3.    The sprite will ask for a password. The password is “LSP121”
4.    Program checks for incorrect password.
If an incorrect password is given, the sprite changes appearance (size and/or special effect/color change)
Using the user’s name, the sprite tells the user the password is incorrect.
Then the sprite goes back to its initial size and appearance
Sprite asks for the password again. IT DOES NOT ASK FOR THE NAME AGAIN. 
After three tries with an incorrect password, the sprite will give a final error message using the user’s name and end the program.
5.    If the correct password is given, the first sprite disappears and two sprites come out. One sprite tells a knock-knock joke to the second sprite. The second sprite, after being given the punch line to the knock-knock joke, reacts either with a text response or some other way (change of appearance).   The program will then end with a message from the first sprite.

This is what I have and I can't figure out what i am going wrong (copy that link. I had to take a picture because i do not know, nor do i have time to create it using the scratchblocks)
http://www.imageurlhost.com/images/bfek19ykwp05a497r1.jpg

I think I am over complicating it. I have been trying different things for several hours now NON STOP and still cannot get my program to do this. Can anyone show me via scratch blocks what this script would look like? I need it in order to complete an assignment that builds on this and cannot do it until I get this done first. THANK YOU SO MUCH!

Well, no, you aren't over complicating things, though your script could be improved. If you look at your if/else statement, what looks wrong? For example, let's say that the program runs and password gets changed to 1, like usual. If the user inputs the wrong password, then what's going to cause a problem?

Once you find this, and you should be good. Also, just to say, you might want to re-look over the instructions because you seems to be missing some odds & ends.

I hope that this helps!

With regards,

ErnieParke

P.S. Next time, if you're having trouble, you might want to ask your teacher/parents for help. It's not as if they're sharks, you know. :)

Last edited by ErnieParke (2013-03-13 21:23:00)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer