-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice.java
More file actions
45 lines (37 loc) · 1.61 KB
/
Copy pathpractice.java
File metadata and controls
45 lines (37 loc) · 1.61 KB
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
38
39
40
41
42
43
44
45
import java.util.Scanner;
public class practice {
public static void main(String[]args){
Scanner input = new Scanner(System.in);
//System.out.println("Please enter the number of days to be converted into minutes:");
//int enteredDays = input.nextInt();
//int minutes = enteredDays * 24 * 60;
//System.out.println(enteredDays+"Days equals "+ minutes+"mins");
//System.out.println("please enter distance in m");
//double distance = input.nextDouble();
//System.out.println("please enter time in s");
//double time = input.nextDouble();
//double speed = distance/time;
//System.out.printf("Speed: %.2f m/s", speed);
boolean is_convert = true;
while (is_convert){
System.out.println("Enter the amount of dollar to be converted: ");
double dollar = input.nextDouble();
double euro = Math.round((dollar * 0.88)*100);
System.out.println(euro/100.0 + "Euros");
}
input.close();
//double a = Math.round(((2.0/6)*100))/ 100.0;
//System.out.println(a);
//System.out.println(Math.ceil(4.53));
//System.out.println(Math.ceil(3.1));
//System.out.println(Math.rint(4.53));
//System.out.println(Math.rint(3.1));
//System.out.println(Math.floor(4.53));
//System.out.println(Math.floor(3.1));
//System.out.println(Math.round(4.53));
//System.out.println(Math.round(3.1));
//String name = "Daniel";
//String name3 = "Danie";
//System.out.println( name. contains(name3));
}
}