You’ve been hired to develop statistics software. Specifically, your software will calculate the samestatistics as in the statistics program in PP#3, as well as one new statistic.
In each individual run of your software, you will input two lists of numbers, and these two lists will have the same length, a length that will be input (and idiotproofed) at runtime, just before allocating and then inputting the lists. For each of the two lists of numbers, you will need to calculate the taxicab norm as in PP#3, the Euclidean norm (also known as the square norm) as in PP#3, the 3-norm as in PP#3, as well as, for the two lists together, an additional statistic known as the dot product (see page 4)
I.How to Copy-and Paste in Putty
In PP#5, you’ll find that using copy-and-paste will be EXTREMELY helpful. Here’s how to copy-and-paste in PuTTY:
1. Using your mouse (or laptop touchpad), position the mouse cursor at the very left of the text that you want to copy.
2. Hold down the left mouse button.
3. To copy, while holding down the left mouse button, drag the mouse cursor over the text that you want to copy, which will highlight it. The text is now copied (so no need to Ctrl-C or anything).
4. Release the left mouse button.
5. Position the green text cursor where you want to paste.
6. To paste, (single) click the right mouse button
II. What to do First
Add the new program into your makefile in the usual way, as well as the example program.
III. What to do Second
For the example program in “Array Lesson 2,” slides #34-41:
Type in, compile and run that example program, using the input values on slide #42 of the same lecture slide packet.
Then, comment that example program, and compile and run it again, with the same inputs.
Then script it in the usual way, with the same inputs.
IV. Program Description
Write a program to calculate statistics from input data. The program body MUST be broken into threee subsections, rather than the usual four (there WON’T be a greeting subsection)
1. an input subsection;
2. a calculation subsection;
3. an output subsection.