Question: Please write in python script write a program that should first ask what you would like to do , either calculate the square root of

Please write in python script
write a program that should first ask what you would like to do, either calculate the square root of one number or calculate the frobenius number for two or three numbers.
Depending on your answer, the program should ask for 1,2, or three input numbers and then calculate what you specified.
Youll need to write a function that calculates the square root of an input number using the Babylonian square root method.
Youll need to write two functions that calculate Frobenius numbers (You can assume that the number will be less than 100)
One function that will do it for 2 numbers One function that will do it for 3 numbers
A Frobenius number can be thought of as the largest value that cannot be created if you have coins of a specific denomination.
the output should write as "what would you like to do [square_root/ forbenius_2/ forbenius_3] : "
then prompt for one, two or three numbers depending on the answer to the initial prompt.

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 Programming Questions!