Advertisement
Guest User

Untitled

a guest
Feb 8th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3.  
  4. PS C:\Users\rschubert> cd "c:\Users\rschubert\Documents\dev\" ; if ($?) { javac Polygon.java } ; if ($?) { java Polygon }
  5. Welcome to the Polygonal Property Calculator
  6.  
  7. Enter your first name:                  Barry
  8. Enter your last name:                   Wittman
  9. Enter the sides the property has:       7
  10. Enter the side length in meters:        10.4
  11. Enter property cost per square meter:   $3.50
  12. Enter fence cost per meter:             $6.75
  13.  
  14. Property Information for B. Wittman
  15. ****************************************************************
  16. Total area:                             393.044 square meters
  17. Total perimeter:                        72.800 meters
  18. Length of apothem:                      10.798 meters
  19. Interior angle:                         128.571 degrees
  20. Cost of land:                           $1375.65
  21. Cost of fencing:                        $491.40
  22. Total cost:                             $1867.05
  23.  
  24. Loan Information
  25. ****************************************************************
  26. Enter annual interest rate:             .05
  27. Enter length of loan in years:          10
  28. Total cost with interest:               $3041.23
  29. PS C:\Users\rschubert\Documents\dev> cd "c:\Users\rschubert\Documents\dev\" ; if ($?) { javac Polygon.java } ; if ($?) { java Polygon }
  30. Welcome to the Polygonal Property Calculator
  31.  
  32. Enter your first name:                  19993
  33. Enter your last name:                   48ugb38rarq99999999999999999999999999999999999999999999999999999999
  34. Enter the sides the property has:       g
  35. Exception in thread "main" java.util.InputMismatchException
  36.        at java.base/java.util.Scanner.throwFor(Scanner.java:939)
  37.        at java.base/java.util.Scanner.next(Scanner.java:1594)
  38.        at java.base/java.util.Scanner.nextInt(Scanner.java:2258)
  39.        at java.base/java.util.Scanner.nextInt(Scanner.java:2212)
  40.        at Polygon.main(Polygon.java:16)
  41. PS C:\Users\rschubert\Documents\dev> cd "c:\Users\rschubert\Documents\dev\" ; if ($?) { javac Polygon.java } ; if ($?) { java Polygon }
  42. Welcome to the Polygonal Property Calculator
  43.  
  44. Enter your first name:                  f
  45. Enter your last name:                   g
  46. Enter the sides the property has:       -2
  47. Enter the side length in meters:        3333333.41323123123323
  48. Enter property cost per square meter:   $-13
  49. Enter fence cost per meter:             $11
  50.  
  51. Property Information for f. g
  52. ****************************************************************
  53. Total area:                             0.000 square meters
  54. Total perimeter:                        -6666666.826 meters
  55. Length of apothem:                      -0.000 meters
  56. Interior angle:                         360.000 degrees
  57. Cost of land:                           $-0.00
  58. Cost of fencing:                        $-73333335.09
  59. Total cost:                             $-73333335.10
  60.  
  61. Loan Information
  62. ****************************************************************
  63. Enter annual interest rate:             0
  64. Enter length of loan in years:          0
  65. Total cost with interest:               $-73333335.10
  66. PS C:\Users\rschubert\Documents\dev> cd "c:\Users\rschubert\Documents\dev\" ; if ($?) { javac Polygon.java } ; if ($?) { java Polygon }
  67. Welcome to the Polygonal Property Calculator
  68.  
  69. Enter your first name:                  0
  70. Enter your last name:                   0
  71. Enter the sides the property has:       0
  72. Enter the side length in meters:
  73. 0
  74. Enter property cost per square meter:   $0
  75. Enter fence cost per meter:             $0
  76.  
  77. Property Information for 0. 0
  78. ****************************************************************
  79. Total area:                             NaN square meters
  80. Total perimeter:                        0.000 meters
  81. Length of apothem:                      NaN meters
  82. Interior angle:                         -Infinity degrees
  83. Cost of land:                           $NaN
  84. Cost of fencing:                        $0.00
  85. Total cost:                             $NaN
  86.  
  87. Loan Information
  88. ****************************************************************
  89. Enter annual interest rate:             0
  90. Enter length of loan in years:          0
  91. Total cost with interest:               $NaN
  92. PS C:\Users\rschubert\Documents\dev> 0
  93. 0
  94. PS C:\Users\rschubert\Documents\dev> 0
  95. 0
  96. PS C:\Users\rschubert\Documents\dev> 0
  97. 0
  98. PS C:\Users\rschubert\Documents\dev> cd "c:\Users\rschubert\Documents\dev\" ; if ($?) { javac Polygon.java } ; if ($?) { java Polygon }
  99. Welcome to the Polygonal Property Calculator
  100.  
  101. Enter your first name:                  1/2
  102. Enter your last name:                   1/2
  103. Enter the sides the property has:       1/2
  104. Exception in thread "main" java.util.InputMismatchException
  105.        at java.base/java.util.Scanner.throwFor(Scanner.java:939)
  106.        at java.base/java.util.Scanner.next(Scanner.java:1594)
  107.        at java.base/java.util.Scanner.nextInt(Scanner.java:2258)
  108.        at java.base/java.util.Scanner.nextInt(Scanner.java:2212)
  109.        at Polygon.main(Polygon.java:16)
  110. PS C:\Users\rschubert\Documents\dev>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement