Project One
Design due 02 May and Program Due 9 May
Intro:
The objective of this assignment is to get used to the idea of classification and to have a little more practise with objects ( so please use at least one object in your solution and an array of object pointers ). Here is a file for you to study . It contains the description of 150 cancer patients. Specifically, these patients have had some tissue removed and studied. This file describes the results of that study. Each line represents one patients data. For each patient, the average data for a sample of cells was collected. This included:
- radius (mean of distances from center to points on the perimeter)
- texture (standard deviation of gray-scale values)
- perimeter
- area
- smoothness (local variation in radius lengths)
- compactness (perimeter^2 / area - 1.0)
- concavity (severity of concave portions of the contour)
- concave points (number of concave portions of the contour)
- symmetry
- fractal dimension ("coastline approximation" - 1)
Here is a file that tells us if each patient's tissue was benign or malignant. 1 means that the patient had a malignet tumer, 0 meant benign.
Your job is to write a program that will input a file that contains 150 patents. and output to another file their classifications (1 for malignent and 0 for benign). Your program should ask the user for both the input and the output file names ( or use command line arguments). Your output file should contain one answer per line. The input file will be in the same format of patients.txt Your output file should be in the same format as results.txt. Here is another sample input file and the correct result file. This is a program that compares two answer files to test the accuracy of an answer file. To get full credit, your program must have an accuracy greater than 60 percent on my super secret input file. My super secret file will have the same format as the sameple input file above. The top three programs in terms of accuracy on my secret file will receive extra credit.
This program is worth 75 points and design document is worth 40 points.
Additional Requirements
- You create your own object for this homework.
- You must use an array of pointers to this object.
- The object must have an accompaying library file.
- The design documents needs to have a section at the top, after the description and before main, that tells us the name of the object and the name and description of any members. Otherwise, it should be in the same format as other design documents that you have turned in to me.