Please give the code for this program. Write a program (in C/C++) to implement a simple Naive Bayes classifier with four attributes. 1. To make it simple, all the attributes are nominal, but denoted by integers starting from 0. For example, if the domain of first attribute has four different possible values, then the values are denoted by 0, 1, 2, 3. 2. Read the first input file (inp1.data) into an array. The input file contains the number of records, domain sizes for the four attributes and class, and the records of training data: first line is the number of records. Second line contains five integers for the domains of the four attributes and class. In the rest of the file (except the last line), each line contains four integers (values for four nominal attributes) and one integer (value for its class). The last line is the question for you to tell what class it is. In this line, it has only four values for the four attributes (no class value). 3. According to the Naive Bayes classifier, give the output of the class, and its probability.
A sample input file is shown below: 5 3 3 2 2 3 0 1 1 1 1 2 2 1 0 0 1 0 0 1 0 1 2 1 0 1 1 1 1 0 2 1 1 1 1 Please give code for this. As early as possible

