do this code in python!!!! This independent programming assesses your mastery of the concepts you…

do this code in python!!!!

This independent programming assesses your mastery of the concepts you have covered in this course including files, lists, loops, strings, functions, user input, and arithmetic in Python.

Description:

An educational toy company has hired you to develop a fun application for kids

You will implement an interactive program where a user enters a word your program prints jokes that have the word in it. The jokes come from a file called jokes.txt. Each line in jokes.txt has a joke as in the example below.

What do you call a boomerang that won’t come back? – A stick.

How does a cucumber become a pickle?- It goes through a jarring experience.

What time is it when the clock strikes 13? – Time to get a new clock.

Why did the dinosaur cross the road?- Because the chicken wasn’t born yet.

Why did the kid bring a ladder to school? – Because he wanted to go to high school.

How do you get a squirrel to like you? – Act like a nut.

How are false teeth like stars? – They come out at night.

What do cakes and baseball teams have in common?- They both need a good batter.

What building in your town has the most stories?- The public library.

What is a computer’s favorite snack?- Computer chips.

What’s worse than finding a worm in your apple? – Finding half a worm.

How do we know that the ocean is friendly?- It waves.

What falls in winter but never gets hurt? – Snow.

Why did the cookie go to the hospital?- Because he felt crummy.

What did the little corn say to the mama corn?- Where is pop corn?

What has ears but cannot hear?- A cornfield.

Why did the student eat his homework? – Because the teacher told him it was a piece of cake.

The program prints all the jokes in the file that contains the word that the user enters. (The word can be in the question or answer of the joke.)

After printing the jokes, the program asks the user if the user wants to quit. If the user replies “q” or “Q”, then the program ends with a farewell message; for any other key, the program asks for another word from the user.

Sample run

Are you ready to laugh?!!

Enter a word: Cake

I have 2 jokes for you with Cake:

What do cakes and baseball teams have in common?- They both need a good batter

Why did the student eat his homework? – Because the teacher told him it was a piece of cake.

Enter q to quit, any other key to continue: a

Enter a word: did

I have 5 jokes for you with did:

Why did the dinosaur cross the road?- Because the chicken wasn’t born yet.

Why did the kid bring a ladder to school? – Because he wanted to go to high school.

Why did the cookie go to the hospital?- Because he felt crummy.

What did the little corn say to the mama corn?- Where is pop corn?

Why did the student eat his homework? – Because the teacher told him it was a piece of cake.

Press q to quit, any other key to continue: tomato

Enter a word: tomato

I have no jokes for you with tomato.

Press q to quit, any other key to continue: q

I hope you had a good laugh!

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
error: Content is protected !!