Question: Using Python 3. need help with both activities . Activity 1: Games and Players Write a program that Accepts three inputs (1) the name of
. Activity 1: Games and Players Write a program that Accepts three inputs (1) the name of a game, (2) the minimum number of players needed to play that game, and (3) the number of people in a large group (like your section). Use good variable names for these inputs. Computes the number of games that can be played simultaneously by the group Prints the following This group of (number of people in the group) people can play (number of simultaneous games) games of (name of the game) simultaneously. Test your program with the following inputs Soccer, 22,50 Basketball, 10,55 Chess, 2,60 Golf, 1,65 Calvinball, 0.70 Activity 2: Euclidean Distance in 2D space Write a program that . Takes 4 integer inputs: x1, x2.y1 and y2 Computes the distance between the points (x1, ya) and (x2y2) Prints the following. "The distance between ((x1). (1) and ((x2). (y2)) is (the computed distance) Hint 1 The formula for the distance between two points is the square root of (x2-x1)^2 + 1/2-12 Hint 2. You may need to use functions from the math module Test your program with the following inputs 4,5,4,5 . 1.2.3.4 . 446,5 1.2.2020,2045
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
