Question: In this assignment you are developing a fraud detection system to detect fraudulent activities based on this Decision Three. Your program receives a comma separated

In this assignment you are developing a fraud detection system to detect fraudulent activities based on this Decision Three. Your program receives a comma separated transaction log with the below format as its input:

[amount],[# of transactions in last day],[area code],[transaction time] 

Your program should use string operations to decompose the transaction log and store its elements in variables of appropriate types. Then, based on the values of those attributes and the decision three, it attaches either a ",fraud" or ",no fraud" at the end of the transaction log and prints it to the console. (Note: Assume that the area code can only be 31451,42683,90902,10267

For example, if the input is:

1000,4,90902,0602 

The output will be:

1000,4,90902,0602,no fraud

import java.util.Scanner;

public class Main { public static void main(String[] args) { Scanner scnr = new Scanner(System.in);

/* Type your code here. */ int amount; int noOfTransactions; int areaCode; String transactionTime; } }

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!