TM 111 Programming Program Scratch Code Project

Description

She requires a when[space]key_pressed script that will take a word from the user and display a new word that is the same as the original except that all letters in the second half of the alphabet (n to z inclusive) have been removed.The user should input the word as a single string and the new word that is displayed should be a single string.For example, if the user enters’rhinocerous’then’hice’is displayed.One way to think about creating the new word for display is to start with the new word as an empty string and then work through the letters in the original word from first to last, creating the new word incrementally. This might be visualised as in Figure 2.a.Create and write down an algorithm to solve this problem. You might like to use the ideas above, or alternatives of your ownb.Create a when[space]key_pressed script to implement your algorithm. Depending on your algorithm and the way in which you choose to implement it, you may also decide to have a when_green_flag_clicked scriptaaadd to it two tests you would perform to check whether the completed program fulfills the specification. (Several tests might be appropriate: you are only required to add two

3 attachmentsSlide 1 of 3attachment_1attachment_1attachment_2attachment_2attachment_3attachment_3

Unformatted Attachment Preview

C)
Test
Number
Test Purpose
Inputs Word
Expected Results
New word Displayed
1
2
calf
Pro
calf
“Blank”
No letters in the second half of alphabet
No letters in the first half of
the alphabet
Some letters in the first half of
the alphabet
3
Man
Ma
OUBuild
File Edit
1 of **
Scripts
TM111
Costumes
Sounds
v2.0.7
user_word man
Motion
Looks
new_word man
Sound
Events
Control
Sensing
Operators
More Blocks
when
clicked
i4
Pen
Data
forever
current_lettern
man
Make a Variable
wait until key space pressed?
ask Please enter a word: and wait
a
current_letter
set user word to answer
set new_word to

new_word
set i to 1 1

user_word
repeat until
i > length of user_word
set current_letter to o O
set current_letter to letter i of user_word
i
change current_letter by 1
if
current_letter < n then show variable current_letter set new_word to join new_word current_letter hide variable current_letter X: 29 y: 158 change i by 1 New sprite Sprites i Make a List say new_word Stage Owl 1 backdrop New backdrop: Purchase answer to see full attachment Explanation & Answer: rogram Scratch Code Tags: programming Python rogram Scratch Code User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Looking for this assignment?

do my essay homework

Reviews, comments, and love from our customers and community

Article Writing

Great service so far. Keep doing what you do, I am really impressed by the work done.

Alexender

Researcher

PowerPoint Presentation

I am speechless…WoW! Thank you so much! Definitely, the writer is talented person. She provided me with an essay a day early before the due date!

Stacy V.

Part-time student

Dissertation & Thesis

This was a very well-written paper. Great work fast. I was in pretty desperate need for help to finish this paper before the due date, which was in nine hours.

M.H.H. Tony

Student

Annotated Bibliography

I love working with this company. You always go above and beyond and exceed my expectations every time. Kate did a WONDERFUL job. I would highly recommend her.

Francisca N.

Student

Book Report / Review

I received my order wayyyyyyy sooner than I expected. Couldn’t ask for more. Very good at communicating & fast at replying. And change & corrections she put in the effort to go back and change it!

Mary J.

Student

Essay (Any Type)

On time, perfect paper. All concerns & matters I had Tom was able to answer them! I will definitely provide him with more orders!

Prof. Kate (Ph.D)

Student

Case Study

Awesome! Great papers, and early! Thank you so much once again! Definitely recommend to trust James with your assignments! He won’t disappoint!

Kaylin Green

Student

Proofreading & Editing

Thank you Dr. Rebecca for editing my essays! She completed my task literally in 3 hours. For sure will work with her again, she is great and follows all instructions

Rebecca L.

Researcher

Critical Thinking / Review

Extremely thorough summary, understanding and examples found for social science readings, with edits made as needed and on time. It’s like having a tutoring service available (:

Arnold W.

Customer

Coursework

Perfect!I only paid about $80, which i think was a good price considering what my paper entailed. My paper was done early and it was well written!

Joshua W.

Student

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>