Here's how to test your code manually: • Run your program with python deep.py. Type 42 and press Enter. Your program should output: Yes • Run your program with python deep.py. Type Forty Two and press Enter. Your program should output: Yes Run your program with python deep.py. Type forty-two and press Enter. Your program should output

Fundamentals of Information Systems
8th Edition
ISBN:9781305082168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter8: Systems Development
Section: Chapter Questions
Problem 2.2CTQ
icon
Related questions
Question

use PYTHON to solve the problems in attached files

thanks

Here's how to test your code manually:
• Run your program with python deep.py. Type 42 and press Enter. Your program should output:
Yes
• Run your program with python deep.py. Type Forty Two and press Enter. Your program should output:
.
Yes
Run your program with python deep.py). Type (forty-two) and press Enter. Your program should output
Yes
Run your program with python deep.py. Type 50 and press Enter. Your program should output
No
Be sure to vary the casing of your input and "accidentally" add spaces on either side of your input before pressing enter. You
Transcribed Image Text:Here's how to test your code manually: • Run your program with python deep.py. Type 42 and press Enter. Your program should output: Yes • Run your program with python deep.py. Type Forty Two and press Enter. Your program should output: . Yes Run your program with python deep.py). Type (forty-two) and press Enter. Your program should output Yes Run your program with python deep.py. Type 50 and press Enter. Your program should output No Be sure to vary the casing of your input and "accidentally" add spaces on either side of your input before pressing enter. You
"All right," said the computer, and settled into silence again. The two men fidgeted. The tension was unbearable.
"You're really not going to like it," observed Deep Thought.
"Tell us!"
"All right," said Deep Thought. "The Answer to the Great Question..."
"Yes...!"
"Of Life, the Universe and Everything..." said Deep Thought.
"Yes...!"
"Is..." said Deep Thought, and paused.
"Yes...!"
"Is..."
"Yes...!!!...?"
"Forty-two," said Deep Thought, with infinite majesty and calm."
- The Hitchhiker's Guide to the Galaxy, Douglas Adams
In deep.py, implement a program that prompts the user for the answer to the Great Question of Life, the Universe and Everything, outputting Yes if the user inputs 42 or (case-insensitively) forty-two or forty two.
Otherwise output (No.
Hints
• No need to convert the user's input to an (int) if you check for equality with ("42"), a str), rather than 42, an int!
• It's okay if your output or the user's wraps onto multiple lines.
Demo
$ python deep.py
What is the Answer to the Great Question of Life, the Universe, and Everything? 42
Yes
$ python deep.py
What is the Answer to the Great Question of Life, the Universe, and Everything? forty-two
Yes
$ python deep.py
What is the Answer to the Great Question of Life, the Universe, and Everything? forty two
Yes
A
a
H
6
54°F Clear ^ 4)) (
ENG
7:05 AM
10/10/2022
Transcribed Image Text:"All right," said the computer, and settled into silence again. The two men fidgeted. The tension was unbearable. "You're really not going to like it," observed Deep Thought. "Tell us!" "All right," said Deep Thought. "The Answer to the Great Question..." "Yes...!" "Of Life, the Universe and Everything..." said Deep Thought. "Yes...!" "Is..." said Deep Thought, and paused. "Yes...!" "Is..." "Yes...!!!...?" "Forty-two," said Deep Thought, with infinite majesty and calm." - The Hitchhiker's Guide to the Galaxy, Douglas Adams In deep.py, implement a program that prompts the user for the answer to the Great Question of Life, the Universe and Everything, outputting Yes if the user inputs 42 or (case-insensitively) forty-two or forty two. Otherwise output (No. Hints • No need to convert the user's input to an (int) if you check for equality with ("42"), a str), rather than 42, an int! • It's okay if your output or the user's wraps onto multiple lines. Demo $ python deep.py What is the Answer to the Great Question of Life, the Universe, and Everything? 42 Yes $ python deep.py What is the Answer to the Great Question of Life, the Universe, and Everything? forty-two Yes $ python deep.py What is the Answer to the Great Question of Life, the Universe, and Everything? forty two Yes A a H 6 54°F Clear ^ 4)) ( ENG 7:05 AM 10/10/2022
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Fundamentals of Information Systems
Fundamentals of Information Systems
Computer Science
ISBN:
9781305082168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning