Question: Python 3 is what it would be coded in. Thanks 1. Develop an algorithm that takes two numbers (x and y), computes their product, and

 Python 3 is what it would be coded in. Thanks 1.

Python 3 is what it would be coded in. Thanks

1. Develop an algorithm that takes two numbers (x and y), computes their product, and prints the result. In case the two numbers are the same i.e., X == y), the algorithm should print double their product and a note to the user that the original values were the same. Example test scenarios: Scenario 1: x= 7, y = 8 algorithm should print 56 Scenario 2: x = 5, y = 5 -- algorithm should print 50 and a note indicating that the inputs were the same NOTE: Type your algorithm in your Word document

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!