-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathC2P9.java
More file actions
22 lines (20 loc) · 853 Bytes
/
C2P9.java
File metadata and controls
22 lines (20 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.Scanner;
public class C2P9 {
public static void main(String[] args) {
double ha, yarda2, rod2, acre, homestead, milla2;
Scanner lee = new Scanner(System.in);
System.out.print("\nIngrese el número de hectáreas de la estancia: ");
ha = lee.nextDouble();
yarda2 = ha * 10000 / 0.83612736;
rod2 = yarda2 / 30.25;
acre = rod2 / 160;
homestead = acre / 160;
milla2 = homestead / 4;
System.out.println("\nLa estancia tiene: \n");
System.out.printf("%.2f yardas cuadradas \n", yarda2);
System.out.printf("%.2f rods cuadrado \n", rod2);
System.out.printf("%.2f acres \n", acre);
System.out.printf("%.2f homesteads \n" , homestead);
System.out.printf("%.2f millas cuadradas \n", milla2);
}
}