-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReporting.java
More file actions
31 lines (26 loc) · 1008 Bytes
/
Copy pathReporting.java
File metadata and controls
31 lines (26 loc) · 1008 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import java.util.Date;
import java.util.Scanner;
public class Reporting {
// Constructor
public Reporting() {}
public void reportViolation(String description, String userId, String numberPlate) {
try (Scanner reportIssue = new Scanner(System.in)) {
System.out.println("Enter violation description: ");
description = reportIssue.nextLine();
System.out.println("Enter user ID: ");
userId = reportIssue.nextLine();
System.out.println("Enter the user's number plate: ");
numberPlate = reportIssue.nextLine();
}
}
public int userFines(int userId, String numberPlate) {
// Placeholder for fine calculation logic
return 0;
}
public void reportMaintenanceIssue(String location) {
// Placeholder for reporting maintenance issues
}
public void viewReportsByDate(Date date) {
// Placeholder for viewing reports by date
}
}