Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that asks the user to enter 3 animals, e.g.: fox whale eagle . The program will do the necessary processing and extract
Write a program that asks the user to enter 3 animals, e.g.: fox whale eagle. The program will do the necessary processing and extract and print each animal on a new line. Finally it will print the standard sentence: The tiny animal2 asked the animal3 to go check on the restless animal1. Requirements/Specifications:
- Your program output must be identical with the one shown as an example (both in how it reads the input and it on what it prints). That includes the period at the end of the sentence. and the "Bye" at the end of the program.
- You can assume the user will enter data in the required format: 3 words (the animals) with exactly one space between them, and that each animal name has at least one character in it.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started