Question: Need Help Writing a C++ code that will allow the user to input a threshold of 0.30 and use either 1 or 2 from the

 Need Help Writing a C++ code that will allow the user

Need Help Writing a C++ code that will allow the user to input a threshold of 0.30 and use either 1 or 2 from the threshold computaon method and take the numbers from a data file

Your program will read in the data from the text tile whse lomiat i gi u market.data 7 // # of transactions 1.3, apple, gum, Juice //transaction id. # of items in the transaction, item 1, item2 2, 2, banana, napkin 3, 4, napkin, apple, juice, bread 4, 1, bread 5, 3, utensil, toot brush, toot paste 6, 2, apple, bread 7, 5, banana, bread, gum, toot paste, juice Program will print the following: MENU THIS PROGRAM WILL COMPUTE ALL ASS!CATION RULES in the form A B Chose the threshold computation method: Enter 1 for #(A, B) / #A or 2 for (#(A, B) / #A)/#transactions Enter E to exit You have chosen the method to compute the threshold value for the rules. Please now enter the threshold value for the rules you want to see. Enter E to exit: Threshold: 0.30 Association rules banana -> apple, 0.30 napkinapple, 0.45 bread gum, 0.60 Your program will read in the data from the text tile whse lomiat i gi u market.data 7 // # of transactions 1.3, apple, gum, Juice //transaction id. # of items in the transaction, item 1, item2 2, 2, banana, napkin 3, 4, napkin, apple, juice, bread 4, 1, bread 5, 3, utensil, toot brush, toot paste 6, 2, apple, bread 7, 5, banana, bread, gum, toot paste, juice Program will print the following: MENU THIS PROGRAM WILL COMPUTE ALL ASS!CATION RULES in the form A B Chose the threshold computation method: Enter 1 for #(A, B) / #A or 2 for (#(A, B) / #A)/#transactions Enter E to exit You have chosen the method to compute the threshold value for the rules. Please now enter the threshold value for the rules you want to see. Enter E to exit: Threshold: 0.30 Association rules banana -> apple, 0.30 napkinapple, 0.45 bread gum, 0.60

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!