1. Write a program that writes the values of the equation y = ½ x2 + 4 to a file named “myNumbers.txt”. a. Start the x values at -5 and go to 5, increment by 0.1. b. Open the file and graph the...

1. Write a program that writes the values of the equation y = ½ x2 + 4 to a file named “myNumbers.txt”. a. Start the x values at -5 and go to 5, increment by 0.1. b. Open the file and graph the numbers in an application like Excel. 2. Change the 10th , 50th , and 90th numbers in the “myNumbers.txt” file 3 times their current value, and then multiply them by -1. Graph them again. Answer the questions below: a. Do these numbers look like the numbers around them? b. Can you think of a good way to find them programmatically? 3. Write a program that reads in the numbers from the “myNumbers.txt” file. a. Find the average of the numbers. b. Find the average of the difference of the numbers in the sequence. That is, find the average of xi – xi-1 for all values of i, 1 to 100. c. Use this point-to-point average to locate the outliers.
Sep 23, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here