Lab 6 - Lab Six [30 points + 5 points extra credit] You...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab Six [30 points + 5 points extra credit] You must write one program/algorithm for this assignment that includes several func- tions, so only turn in one zip file when submitting your assignment. Try to work through the lab on your own, but if you get stuck, ask a neighbor or the instructor for help. The Idea The data file illustrated below lists the daily high temperatures in Manhattan, KS during the first week of March, 2008. Notice that two of the temperature values are missing, indicated by the special number -999. You must write a program that reads a file of temperatures and interpolates (linear) any missing values. For example, if your program is given the input file shown above, it should output: Your program must work for any input file, but you may assume that: CIS 209 - Arrays - Page 1 of 5 7 71.8 71.4 -999 47.5 39.4 -999 33.1 The temperatures are: Day 1: 71.8 Day 2: 71.4 Day 3: 59.5 Day 4: 47.5 Day 5: 39.4 Day 6: 36.3 Day 7: 33.1 ManhattanMarch1to7.txt
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
(1) the first and last value in the list are not missing
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Lab 6 - Lab Six [30 points + 5 points extra credit] You...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online