Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. ude <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4. using namespace std;
  5.  
  6.  
  7. int main() {
  8. cout << setiosflags(ios::left);
  9. cout << resetiosflags(ios::adjustfield);
  10. double interest, month, deposit;
  11.  
  12.  
  13. cout << "Insert Money Deposited:" << endl;
  14. cin >> deposit;
  15.  
  16.  
  17.  
  18. if(deposit >= 10000)
  19. {
  20. cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
  21. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  22. cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
  23. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  24. cin >> month;
  25. if(month == 1)
  26. {
  27. cout << "Insert the exact amount of months\n";
  28. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  29. cin >> month;
  30. interest=(deposit*month)/100;
  31. cout << "Interest is:" << interest;
  32. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  33. }
  34. if(month == 2)
  35. {
  36. cout << "Insert the exact amount of months\n";
  37. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  38. cin >> month;
  39. interest=(deposit*month)/100;
  40. cout << "Interest is:" << interest;
  41. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  42. }
  43. if(month == 3)
  44. {
  45. cout << "Insert the exact amount of months\n";
  46. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  47. cin >> month;
  48. interest=(deposit*month)/100;
  49. cout << "Interest is:" << interest;
  50. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  51. }
  52. if(month == 4)
  53. {
  54. cout << "Insert the exact amount of months\n";
  55. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  56. cin >> month;
  57. interest=(deposit*month)/100;
  58. cout << "Interest is:" << interest;
  59. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  60. }
  61. if(month == 5)
  62. {
  63. cout << "Insert the exact amount of months\n";
  64. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  65. cin >> month;
  66. interest=(deposit*month)/100;
  67. cout << "Interest is:" << interest;
  68. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  69. }
  70. if(month == 6)
  71. {
  72. cout << "Insert the exact amount of months\n";
  73. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  74. cin >> month;
  75. interest=(deposit*month)/100;
  76. cout << "Interest is:" << interest;
  77. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  78. }
  79. }
  80. else if(deposit <= 10001 && deposit >= 100000)
  81. {
  82. cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
  83. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  84. cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
  85. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  86. cin >> month;
  87. if(month == 1)
  88. {
  89. cout << "Insert the exact amount of months\n";
  90. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  91. cin >> month;
  92. interest=(deposit*month)/100;
  93. cout << "Interest is:" << interest;
  94. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  95. }
  96. if(month == 2)
  97. {
  98. cout << "Insert the exact amount of months\n";
  99. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  100. cin >> month;
  101. interest=(deposit*month)/100;
  102. cout << "Interest is:" << interest;
  103. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  104. }
  105. if(month == 3)
  106. {
  107. cout << "Insert the exact amount of months\n";
  108. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  109. cin >> month;
  110. interest=(deposit*month)/100;
  111. cout << "Interest is:" << interest;
  112. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  113. }
  114. if(month == 4)
  115. {
  116. cout << "Insert the exact amount of months\n";
  117. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  118. cin >> month;
  119. interest=(deposit*month)/100;
  120. cout << "Interest is:" << interest;
  121. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  122. }
  123. if(month == 5)
  124. {
  125. cout << "Insert the exact amount of months\n";
  126. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  127. cin >> month;
  128. interest=(deposit*month)/100;
  129. cout << "Interest is:" << interest;
  130. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  131. }
  132. if(month == 6)
  133. {
  134. cout << "Insert the exact amount of months\n";
  135. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  136. cin >> month;
  137. interest=(deposit*month)/100;
  138. cout << "Interest is:" << interest;
  139. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  140. }
  141. }
  142. else if(deposit <= 100001)
  143. {
  144. cout << "Match the correseponding duration the money has been in the bank with a number 1-6" << endl;
  145. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  146. cout << "1. 1-11 Months\n2. 12-23 Months\n3. 24-35 Months\n4. 36-47 Months\n5. 48-59 Months\n6. 60-120 Months" << endl;
  147. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  148. cin >> month;
  149. if(month == 1)
  150. {
  151. cout << "Insert the exact amount of months\n";
  152. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  153. cin >> month;
  154. interest=(deposit*month)/100;
  155. cout << "Interest is:" << interest;
  156. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  157.  
  158. }
  159. if(month == 2)
  160. {
  161. cout << "Insert the exact amount of months\n";
  162. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  163. cin >> month;
  164. interest=(deposit*month)/100;
  165. cout << "Interest is:" << interest;
  166. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  167. }
  168. if(month == 3)
  169. {
  170. cout << "Insert the exact amount of months\n";
  171. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  172. cin >> month;
  173. interest=(deposit*month)/100;
  174. cout << "Interest is:" << interest;
  175. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  176. }
  177. if(month == 4)
  178. {
  179. cout << "Insert the exact amount of months\n";
  180. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  181. cin >> month;
  182. interest=(deposit*month)/100;
  183. cout << "Interest is:" << interest;
  184. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  185. }
  186. if(month == 5)
  187. {
  188. cout << "Insert the exact amount of months\n";
  189. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  190. cin >> month;
  191. interest=(deposit*month)/100;
  192. cout << "Interest is:" << interest;
  193. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  194. }
  195. if(month == 6)
  196. {
  197. cout << "Insert the exact amount of months\n";
  198. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  199. cin >> month;
  200. interest=(deposit*month)/100;
  201. cout << "Interest is:" << interest;
  202. cout << setfill ('-') << setw (80) << "" << setfill(' ') << setw (1) << "" << endl;
  203. }
  204.  
  205. }
  206. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement