-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSendersRider.java
More file actions
38 lines (28 loc) · 929 Bytes
/
SendersRider.java
File metadata and controls
38 lines (28 loc) · 929 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
32
33
34
35
36
37
import java.util.Scanner;
public class SendersRider{
public static void main(String[]args){
Scanner input = new Scanner(System.in);
String delivery =("""
COLLECTION RATE AMOUNT PER PERCEL BASE PAY
less than 50% 160 5,000
50 - 59% 200 5,000
60 - 69% 250 5,000
> = 70% 500 5,000
""");
int wages = 0;
System.out.print("Enter number of successfull delivery maid for the day: ");
if(delivery < 50){
wages = delivery * 160 + 5000;
System.out.print("wages");
}else if(delivery >= 60 && delivery <= 69){
wages = delivery *200 + 5000;
System.out.print("wages");
}else if(delivery > 70 && delivery >= 70){
wages = delivery * 250 + 5000;
System.out.print("wages");
//}else if(delivery == 0){
// System.out.print("go and rest");
//
}
}
}