Question: How can I write this in java? TCSS 143A Winter 2019, Programming Assignment 1 Given the problem statement below, complete the following Procedural program that




How can I write this in java?
TCSS 143A Winter 2019, Programming Assignment 1 Given the problem statement below, complete the following Procedural program that is organized into multiple methods and runs correctly (70 pts). In order to receive credit, your code MUST compile and run, and complete at least some of the steps; comment out the code that shows your attempt but does not work Coding style and comments o Coding style (meaningful identifiers, indentation, etc.) and the header with your name and course info at the top of the file (10 pts) o Comments Javadocs for every method and class (10 points) Inline comments explaining code logic (10 points) - Programs that are not procedural and/or do not use multiple methods or use global variables will not receive a grade higher than 40 pts all together, even if a program runs perfectly, and the documentation is correct and thorough Extra credit o Detailed algorithm written in English/ pseudocode (5 pts) o Test plan (5 pts) You are NOT allowed to help one another with this program or use somebody else's code check the rules listed on the syllabus. However, you may seek help from CSS mentors or a TA or an instructor Problem statement For this program, you are to implement a simple machine-learning algorithm that uses a rule-based classifier to predict whether or not a particular patient has diabetes. In order to do so, you will need to first train your program, using a provided data set, to recognize a disease. Once a program is capable of doing it, you will run it on new data sets and predict the existence or absence of a disease. While solving this problem, you are to use a procedural approach in Java. Decompose your program into methods and use small lists where appropriate, i.e. you are only to use data types covered in chapters 1-6 and chapter 10 In order to train your program to recognize diabetes, you need to use a data set that contains both data and diagnoses (this is the learning phase). Your Training program is to ask the user to enter the name of the training file. You may assume that the file will be a txt file. Each line on that file constitutes one patient record. Each patient's record consists of 6 attributes and a numerical diagnosis. From our perspective, it does not matter much what these attributes signify. The only important observation here is that the attributes are floating point numbers delimited by tabs. If an attribute is missing, a question mark replaces a number. In your program, treat question marks as zeros. As far as diagnosis is concerned (the 7th value listed on a line), any value >= 0.65 indicates a presence of a disease, while a value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
