Advertisement
Guest User

Untitled

a guest
Aug 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <title>Page Title</title>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8.  
  9.  
  10. </head>
  11. <body>
  12. <script src="main.js"></script>
  13. <section>
  14. <h1>ATM Cash Disbursement Problem</h1>
  15. <p>
  16. An ATM asks for a given amount of money and gives its user a certain number of bills matching the given amount.
  17. </p>
  18. <p>
  19. Create a program that takes the amount asked by the user as an input (integer) and outputs what quantity is needed for each
  20. bill (see
  21. <a href="#types-of-bills">Types of bills</a>) so that the ATM can give the amount of money the user asked.
  22. </p>
  23. <h1>Example</h1>
  24. <samp>
  25. Input>
  26. <kbd>1550</kbd>
  27. <br/> Output:
  28. <br/> * 1× 1000
  29. <br/> * 1× 500
  30. <br/> * 1× 100
  31. <br/> * 1× 50
  32. <br/>
  33. </samp>
  34. <h1 id="types-of-bills">Available types of bills</h1>
  35. <ul>
  36. <li>1000
  37. <span id="bill2000"></span>
  38. </li>
  39. <li>500
  40. <span id="bill500" </span>
  41. </li>
  42. <li>100
  43. <span id="bill100" </span>
  44. </li>
  45. <li>50
  46. <span id="bill50" </span>
  47. </li>
  48. </ul>
  49. <aside>
  50. Note : if the amount can’t be fully split into bills, show an error message.
  51. </aside>
  52. </section>
  53. <section>
  54. <h1>Your solution</h1>
  55. <form>
  56. <input type="number" id="amount"></input>
  57. <button type="button" id="bogo">Submit</button>
  58. </form>
  59. </section>
  60. <!-- <div id="out"></div> -->
  61. <p id="output"></p>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement