Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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. 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 documentStep 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