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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started