Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. MP3 worksheet
  2.  
  3. Comments:
  4.  
  5.  
  6.  
  7. ***************** newton *****************
  8. Enter value to find square root: 200
  9. Newton(200.0) = 14.142135623730955
  10. Math.sqrt = 14.142135623730951
  11.  
  12. ____________________________________
  13.  
  14.  
  15.  
  16.  
  17. *****************string_methods *****************
  18. Enter the desired String:
  19. Aardvarks get big and bigger as You feed them big and bigger ants who Feed on apples.
  20. *************************************
  21. Analyzing: myStr = Aardvarks get big and bigger as You feed them big and bigger ants who Feed on apples.
  22. Number of upper case letters = 3
  23. Number of lower case letters = 65
  24. Number of big is 4
  25. Number of a is 7
  26. *************************************
  27. Analyzing: myStr = Parked in a van down by the river bank .... The van evan vanished near a lot of other vans
  28. Number of upper case letters = 2
  29. Number of lower case letters = 65
  30. Number of van is 5
  31. Number of a is 10
  32. *************************************
  33. Analyzing: myStr = the elephant in the room wouldn't budge
  34. Number of upper case letters = 0
  35. Number of lower case letters = 32
  36. Number of the is 2
  37. Number of i is 1
  38. ____________________________________
  39.  
  40.  
  41.  
  42.  
  43. ***************** ATM Simulation *****************
  44.  
  45. Main menu:
  46. 1: Check Balance
  47. 2: Withdraw
  48. 3: Deposit
  49. 4: Exit
  50. Enter a choice: 1
  51. You have $100 in your account.
  52.  
  53. Main menu:
  54. 1: Check Balance
  55. 2: Withdraw
  56. 3: Deposit
  57. 4: Exit
  58. Enter a choice: 2
  59. Enter the amount you'd like to withdraw: 200
  60. Amount entered exceeds current account balance. Transaction declined.
  61.  
  62. Main menu:
  63. 1: Check Balance
  64. 2: Withdraw
  65. 3: Deposit
  66. 4: Exit
  67. Enter a choice: 2
  68. Enter the amount you'd like to withdraw: 50
  69. $50 has been withdrawn from your account.
  70.  
  71. Main menu:
  72. 1: Check Balance
  73. 2: Withdraw
  74. 3: Deposit
  75. 4: Exit
  76. Enter a choice: 3
  77. Enter the amount you'd like to deposit: 200
  78. $200 has been deposited into your account.
  79.  
  80. Main menu:
  81. 1: Check Balance
  82. 2: Withdraw
  83. 3: Deposit
  84. 4: Exit
  85. Enter a choice: 1
  86. You have $250 in your account.
  87.  
  88. Main menu:
  89. 1: Check Balance
  90. 2: Withdraw
  91. 3: Deposit
  92. 4: Exit
  93. Enter a choice: 4
  94. Have a nice day.
  95. ____________________________________
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement