assign10 - Exercise #10 A store has a file containing...

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

View Full Document Right Arrow Icon
Exercise #10 A store has a file containing information on sales made to customers. Each line of this file contains a customer number and a sale amount as shown below. The first line of the file indicates that customer number 17568 made a purchased $167.90 worth of goods and so on. There may be many sales for any given customer. In the data shown, for example, there are two sales to customer number 10960. 17568 167.90 10960 216.36 40288 112.82 17568 50.57 52108 9.45 28567 171.11 12897 46.91 56678 114.28 10056 185.32 12897 95.53 34678 205.63 37765 56.85 28567 22.42 56712 177.21 10056 178.40 10960 87.18 56678 167.15 …… etc. You are to write a program that will read in this file and produce a report like that shown on the next page. Have your program read in both the name of the file containing the phone numbers and the name of the file to which the report is to be written. If the input file contains invalid data your program can just report the problem and stop. Students who want to be more sophisticated are of course welcome to do so. One good alternative is to
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/28/2011 for the course MATH 101 taught by Professor Duke during the Spring '11 term at University of Ottawa.

Page1 / 3

assign10 - Exercise #10 A store has a file containing...

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

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