View the step-by-step solution to:

# PROBLEM DEFINITION: Write a program that has three functions that do the following (identify parameters and returned values for each function): A...

CS115 INTRODUCTION TO COMPUTER PROGRAMMING Programming project #4 INTRODUCTION The goal of this programming assignment is to enable you to practice programming using lists. PROBLEM DEFINITION: Write a 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 or double) 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: For example, given vector x = [-2 3 -1] The norm is |x| = √ ( (-2) 2 + 3 2 + (-1) 2 ) = 3.74 * 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. THE PYTHON PROGRAM The program should do what is specified in the PROBLEM section above. The program should have the following features: 1) The first few lines of your program should be comments that state the program name, the author’s (your) name, date the program is released, and a brief description of the main task performed by the program. 2) Your program should have meaningful variable names. There should be a comment before each function definition and at each major function point: input, calculation, output, loop. EXTERNAL DOCUMENTATION Type a report of your solution in a Word or OpenOffice Writer document. You should structure your document in four clear sections each with a subheading as follows: 1. PROBLEM DEFINITION The problem definition comes here. This is a summary of the PROBLEM section above.
Show entire document

i have uploaded two files. one is program file... View the full answer

EXTERNAL DOCUMENTATION
1. PROBLEM DEFINITION :
The problem is to calculate the norm of a given vector using three functions that are
main(), fillvector() and computeNorm(). The program should also...

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents