Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a Python program that has three functions that do the following (identify

ID: 3769283 • Letter: W

Question

Write a Python program that has three functions that do the following (identify parameters and returned values for each function):

A main() function that calls the other two functions and then displays the norm* (see below)

A fillVector() function to input as many numbers (float) into a list as the user wants. The program should validate input i.e. reject non-numbers.

A computeNorm() function to calculate the norm of the vector. A norm of a vector is defined as the square root of the sum of the squares of vector elements:

* The message displayed by the main() function should be descriptive. For example: The norm of your vector is 3.74

Write a statement at the bottom of the program to call the main() function. (python)

IT dy 1 For example, givein The norm is lx - vector x = [-23-1] v ( (-29 + 32 + (-1)2 ) = 3.74

Explanation / Answer

Write a Python program that has three functions that do the following (identify

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote