Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( ) Please fallow the given instrduction and code it out in assambly no plagerisim please Your nerves are quite calm - well, that is

()
Please fallow the given instrduction and code it out in assambly no plagerisim please
Your nerves are quite calm - well, that is, somewhat calm after drinking a cup of delicious, magical, hot cocoa.
Ninji of the Nice, an eloquently carved statue of a cat, stretches and yawns. "It's time now. Have a nice sorting young human kitten". The statue then lays down on it pedestal, crosses its little stone arms, and promptly falls asleep.
You are bustled into the Great Hall and huddle with your fellow students. You notice that the hall is organized into four long tables. Each of which is adorned with a coat of arms. There is a yellow lion upon a red banner, a copper eagle upon a blue banner, a black badger upon yellow banner, and a silver snake upon a green banner.
A stern, elderly witch, wearing square spectacles and her hair in a tight bun, comes out carrying a stool and the oldest, dirtiest hat you have seen. She places the hat upon the stool in front of all the students. With a lurch in your stomach, you realize that the hot chocolate has evidently worn off. Or, perhaps, you are so nervous, that the magical hot cocoa isn't strong enough. But, what if you didn't get the hot cocoa in the first place? You might have passed out? Are you going to pass out? Oh, my goodness! You are going to going to pass out!
Suddenly, you are jerked back to reality and your inner argument is extinguished. A rip along the base of the Sorting Hat had opened, and it had begun to sing.
You might belong in Gryffindor... where dwell the brave at heart.
Their daring, nerve, and chivalry... set Gryffindors apart.
Or yet in wise old Ravenclaw... if you've a ready mind.
Where those of wit and learning... will always find their kind.
You might belong in Hufflepuff...where they are just and loyal.
Those patient Hufflepuffs are true... and unafraid of toil.
Or perhaps in Slytherin... you'll make your real friends.
Those cunning folks use any means... to achieve their ends.
2
When the Sorting Hat finishes its song, the Great Hall bursts into applause. Professor McGonagall raises her hand for silence, and it falls upon the room almost immediately. With a nod, she reaches into her cloak and removes a long, winding, piece of parchment, pushes her square-rimmed glasses down her nose, and begins to read.
One by one, the students are called by name. They run forward and the Sorting Hat is placed gently upon their heads. Sometimes, the Sorting Hat immediately yells out their house names, but for some students, it takes several minutes. Once the house is announced, however, the student joins their new house tables accompanied with thunderous applause.
Then, your name is called. With great trepidation, you approach the stool. You feel as if your legs are made of rubber... are you going to fall over? But, moments later, the hat drops onto your head and falls past your eyes. All you see is darkness.
A voice, not of your own, echoes in your head. "Ah, let's have a look what's in here. Hmmm. I see intelligence. Yes, yes. You have a good mind. You will do well in Ravenclaw."
You swell with pride at these words. "Yes, I am a muggle programmer".
The voice returns, sounding contemplative and suspicious.
"Ah, a programmer, you say? I know of these things.
Sneaky... clever. You will also do well in Slytherin."
"Umm... okay..." you think.
"Hmmm.", the voice continues, "I see bravery here too.
You are taking a class taught by a known lunatic... You will do well in Gryffindor."
You are not sure where the Hat is going. "Umm... okay..."
But, the voice echoes once again. "But, ah, yes... you are a programmer ... a hard worker... perhaps Hufflepuff then. Hmmm. You are a challenge young one."
Moments pass and the hat tightens around your head as if frustrated. The voice sighs. "This may take a while..."
Your Task
So, for your assignment, you get to create a program to recreate the Sorting Hat.
You will ask questions and the user will respond with a character. Based on their answers, you will print which house they will be put into.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions