Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Can I get some help for this python code? Thanks so much! You have recently been hired by Nintendo to write a program that calculates

image text in transcribedCan I get some help for this python code? Thanks so much!

You have recently been hired by Nintendo to write a program that calculates the distance between two figures in Nintendo's latest iPhone/Android App, which is a version of Go. Your program should work as follows: 1. Ask the user for the name of the first avatar 2. Ask the user for the first avatar's X coordinate 3. Ask the user for the first avatar's Y coordinate 4. Ask the user for the name of the second avatar 5. Ask the user for the second avatar's X coordinate 6. Ask the user for the second avatar's Y coordinate 7. Print out the distance between the two avatar Here is a copy of the distance formula in case you haven't taken geometry in a while: d=/(x2-x)2 + (x2 - y)2 Below is a sample running of your program: ====== RESTART ====== avatar Distance Calculator 1. Enter name of first avatar: Zelda 2. Enter name of second avatar: Harry 3. Enter x coordinate of first avatar: 3.28 4. Enter y coordinate of first avatar: 2.258882 5. Enter x coordinate of second avatar: 3.923995 6. Enter y coordinate of second avatar: 3 The distance between Zelda and Harryis 0.98 inches. ====== RESTART ====== avatar Distance Calculator -- - - - - - - -- - - - - - - -- - 1. Enter name of first avatar: Zelda 2. Enter name of second avatar: Zenith 3. Enter x coordinate of first avatar: 5 4. Enter y coordinate of first avatar: 5 5. Enter x coordinate of second avatar: 5 6. Enter y coordinate of second avatar: 5 The distance between Zelda and Zenith 0.00 inches

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions