Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use python CONOR MULHO Week 4 activity 1 Write a Python code that takes a name and two number from the keyboard and print

please use python
image text in transcribed
image text in transcribed
CONOR MULHO Week 4 activity 1 Write a Python code that takes a name and two number from the keyboard and print a message. The message should print a greeting using the entered name, calculate and print the sum, the difference, the product, the quotient, and the remainder of the two entered numbers. Template: x Command Prompt week activity.py C:\Users\Student\Desktop\Python-part2\assActivity>week4activity1.py Enter a name: week activity1.py Enter a name: Peter Pan Enter number 1: -5 Enter number 2: If the user types and enters -5, the program asks to enter number 2 Command Prompt C:\Users\Student\Desktop\Python-part2\classActivity>week4activity1.py Enter a name: Peter Pan Enter number 1: -5 Enter number 2: 12 Welcome to python programming Peter Pan The sum of -5 and 12 is 7 The difference of -5 and 12 is -17 The product of -5 and 12 is - 60 The quotiont of -5 and 12 is -0.4166666666666667 The remainder of -5 and 12 is 7 If the user types and enters 12, the program calculates and prints the result as: C:\Users\Student\Desktop\Python-part2\classActivity

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago