Question 4-6 Please.
Python 3.6. def main().

def main():
n = int(input('How many numbers do you want to enter? '))
total = 0
for i in range(n):
num = float(input('Enter a number: '))
total += num
print('Total: ' + str(total))
print('Average: ' + str(total/n))
main()

Question 4-6 Please. Python 3.6. def main(). entered by a user. Write a program that finds...
Collassa Question 2 Not yet ansered Merced out of 2000 OP Write a program to calculate the distance between the two points. Note: x1, y1, 22. 72 are all double values. You can use the following formula to calculate the distance between the two points. (x2 - x)2 + (y2 – y,)? Sample run: Input xd: 25 Input yl: 15 Input x2: 35 Input y2: 10 Distance betieen the said points: 11.1883 tnopalam hilarati
In Python: Write a program that determines whether two circles intersect. The input should consist of six numbers, x1, y1, r1 and x2, y2, r2, given as command-line arguments, and representing the center and radius of the two circles. Your program should print True if the two circles intersect, and False otherwise. As a reminder, the two circles intersect if and only if the distance of their two centers is less than or equal to the sum of their two...
In C please! Thank you! Write a program that finds the smallest (min), largest (max), and average (mean) of N values entered by the user. Your program should begin by prompting the user for N, the number of values to be entered. Then the program should accept that number of values, determining the min, max, and mean. Then it should display those values. This is an extension of a previous lab. First, get it working for N values. Then, extend...
Python 3.6 "While Loops" Write a program that adds up a series of numbers entered by the user. The user should enter each number at the command prompt. The user will indicate that he or she is finished entering the number by entering the number 0. Example This program will sum a series of numbers. Enter the next number (enter 0 when finished) > 5 Enter the next number (enter 0 when finished) > 2 Enter the next number (enter...
IN PYTHON Write a program that takes a user-input distance and speed and then calculates an ETA. Your program should work for ANY COMBINATION of distance and speed.
Please answer this python questions.Thank you! Question Two Write a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, and then show the total pay at the end...
write the program in Latex form and please type it out.
ECE 270 Advanced Computer Methods in ECE Assignment #1 May 14, 2019/Instructor. Paul Watta Write a program that asks the user to enter two coordinate points and computes the resulting equation of the line. A typical output is shown below Zinear Equation Creator Given (xi, yi) and (x2, y2), this program computes the equation of the line: Please enter xi yl: -1 -1 Please enter x2 y2: 1 5...
USING PYTHON - Write a program that calls a function that prompts the user to enter a real number. The function should verify that the user entered a valid real number, and should prompt the user to re-enter any invalid input. After a valid real number has been entered, the function should return the number as a number. To test your function, from a main function, call the function two separate times and print the sum of the two numbers...
In Java, write a program using a loop that asks the user to enter a series of decimal numbers. The user must enter -88 to end the input of the decimal numbers. After the user enters all numbers, the program should display the sum of all numbers entered.
Intro to Python:
Q1:
Bonnie is writing a Python program for her math class so she can
check her answers quickly. She is having some difficulties,
however, because when she enters values like 3.5 or 2.71 her
program throws an error. She has heard of your expertise in Python
and asks for your help. What error is being thrown and how can she
fix the program to accept values like 3.5 or 2.71?
from math import sgrt def distance (coorl,...