๋ฏธ๊ตญ ๋ฐฐ๋น์ฃผ ์ฌํ๊ณ์ฐ๊ธฐ
์๋ก
์ ๋ฒ ์ผ์ฃผ์ผ ๋์์๋ ์ค์ ๋ก ๋ ๋ ค๋จน์
GitHub ๋ ํ์งํ ๋ฆฌ ๋ฐ์ดํฐ๋ฅผ ์ด๋ฆฌ๊ณ
์ด์ Hexo ๋ธ๋ก๊ทธ ๊ฐ ์ด๋์ ๋ ์์ฑํด์
์ด์ ์์ผ ์ฒซ ๊ฒ์๊ธ์ ์์ฑํด๋ณธ๋ค.
๋ณธ๋ก
์ฌํ๊ณ์ฐ๊ธฐ
์ฌํ๊ณ์ฐ๊ธฐ(JP)
๋๋ ๊ฐ๊น์ด ๋ฏธ๋ ๋ฏธ๊ตญ ๋ฐฐ๋น์ฃผ ์ฃผ์์
๊ณํ ํ๊ณ ์๋ค.
๊ทธ๋์ ์์๊ธ์ก ๋ฑ๋ฑ ๊ณ์ฐ์ ํ ๋ ค๊ณ
๊ณ์ฐ๊ธฐ๋ฅผ ์ฐพ๊ณ ์์๋๋ฐ
๋๋ถ๋ถ ๋๋ฌด ๋ณต์กํ๊ณ ๋ด๊ฐ ์ํ๋ ๊ณ์ฐ๊ธฐ๊ฐ
์์ด์ ๊ทธ๋ฅ ๋ด๊ฐ ์ฝ๋ฉ์ผ๋ก ๋ง๋ค์ด ๋ณด๊ธฐ๋ก ํ๋ค.
(๋์ ์๋ ์ ์ฒด์ฑ์ ์ฝ๋ฉ ์ด๋ ํ์ดํธํด์ปค์ด๋ค.)
(์ฌํ
๊น์ง ๋๋ ์ทจ๋ฏธ๋ก ๊ทธ๋ฆผ์ ๊ทธ๋ฆฐ๋ค.)
์ผ๋ด ๋จ์ํ ๊ณ์ฐ์์ ์ด๋ ๋ค.
-๋ชจ์๋ณผ ์ฃผ ร ์์ ๋ฐฐ๋น๊ธ
-1์ฃผ ๊ฐ๊ฒฉ ร ๊ตฌ์
ํ์ฃผ
์ด๋ฐ ํ์์ ๊ณ์ฐ๊ธฐ๊ฐ ๋์๊ฒ ํ์ํ๋ค
์ ์ด์ ๋ฐ๋ก ์๋ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋๋ฅผ ๋ณด์
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> function calculate() { const num = parseFloat(document.getElementById('num').value); const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); const num3 = parseFloat(document.getElementById('num3').value); if (isNaN(num) || isNaN(num1) || isNaN(num2) || isNaN(num3)) { document.getElementById('output').innerHTML = "โ ๏ธ ๋ชจ๋ ์
๋ ฅ๋์ ์ฑ์์ฃผ์ธ์!"; return; } const YB = num * num1; const afterTax = YB * (1 - 0.154); const ZG = num2 * num3; document.getElementById('output').innerHTML = `์ด ์์ ๋ฐฐ๋น๊ธ: <strong>${YB.toLocaleString()}์</strong><br>` + `์ธํ ์์ ๋ฐฐ๋น๊ธ (15.4% ๊ณต์ ): <strong>${afterTax.toLocaleString()}์</strong><br>` + `์ด ์์ ๊ตฌ์
๊ฐ๊ฒฉ: <strong>${ZG.toLocaleString()}์</strong>`; } </script>
|
์ ์ฝ๋๋ ๋ฐ๋๋ผ ์๋ฐ์คํฌ๋ฆฝํธ ๋ค.
์์ ์๋ฐ์คํฌ๋ฆฝํธ ์ฝ๋๋ก ์ฝ๋ฉ์ ํด๋ดค๋ค.
์์ฃผ ์ค๋์ ์ ์ง์
ํ๋ จํ๊ต ๋ ๋ฐฐ์๋ ์๋ฐ์คํฌ๋ฆฝํธ๊ฐ
๋น์ ๋ฐํ๋ ๋ฏํ๋ค. ์๋ฌดํผ ๊ฒฐ๊ณผ๋ฌผ์ ์๋ ์ฌ์ง.1

์๊ฐ๋ณด๋ค ๊ฒฐ๊ณผ๋ฌผ์ ๋งค์ฐ ๋ง์กฑํ๋ค .
์ด์ ๊ฐ๊น์ด ๋ฏธ๋ ์ ๋ฏธ๊ตญ ๋ฐฐ๋น์ฃผ ์ฃผ์ ์์ํ ๋
ํฐ ๋์์ด ๋์ง ์ถ๋ค.
๋ง์ง๋ง ์๋ ์ฝ๋๋ ์ ์ฒด ์ฝ๋์ด๋ค.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
| <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>์ฌํ ๋ฐฐ๋น์ฃผ ๊ณ์ฐ๊ธฐ(์ํ)</title> <style> body { font-family: 'Segoe UI', sans-serif; background-color: #f4f4f4; padding: 2em; max-width: 600px; margin: auto; } h1 { color: #2c3e50; font-size: 1.8em; } label, input { display: block; margin-bottom: 1em; font-size: 1rem; width: 100%; } input { padding: 0.5em; box-sizing: border-box; border-radius: 5px; border: 1px solid #ccc; } button { width: 100%; padding: 0.8em; font-size: 1rem; border: none; background-color: #3498db; color: white; border-radius: 6px; cursor: pointer; margin-top: 1em; } button:hover { background-color: #2980b9; } .result { margin-top: 2em; font-weight: bold; word-break: keep-all; } .wrap-container { margin-top: 2em; text-align: center; } .home-image { width: 100%; max-width: 300px; height: auto; } footer { text-align: center; margin-top: 3em; font-size: 0.9em; color: #777; } @media (max-width: 480px) { body { padding: 1em; } h1 { font-size: 1.4em; } button { font-size: 0.9em; } } </style> </head> <body> <label> <br><font size=6 style="font-weight:900;">๐น ์ฌํ ๋ฐฐ๋น์ฃผ ๊ณ์ฐ๊ธฐ(์ํ)</font> <a style="color: #33d45b">ver 0.0.5</a></br> </label> <label> <a style="color: #37b7fe">๋ชจ์๋ณผ ์ฃผ:</a> <input type="number" id="num" placeholder="์: 22691"> </label> <label> <a style="color: #37b7fe">์์ ๋ฐฐ๋น๋ฝ:</a> <input type="number" id="num1" placeholder="์: 1158"> </label> <label> <a style="color: #37b7fe">1์ฃผ๋น ๊ฐ๊ฒฉ:</a> <input type="number" id="num2" placeholder="ํ์ฌ 1์ฃผ๋น ๊ฐ๊ฒฉ"> </label> <label> <a style="color: #37b7fe">๊ตฌ์
ํ ์ฃผ:</a> <input type="number" id="num3" placeholder="๊ตฌ์
ํ ์ฃผ์ ์"> </label> <button onclick="calculate()">๊ณ์ฐํ๊ธฐ</button> <div class="result" id="output"></div> <script> function calculate() { const num = parseFloat(document.getElementById('num').value); const num1 = parseFloat(document.getElementById('num1').value); const num2 = parseFloat(document.getElementById('num2').value); const num3 = parseFloat(document.getElementById('num3').value); if (isNaN(num) || isNaN(num1) || isNaN(num2) || isNaN(num3)) { document.getElementById('output').innerHTML = "โ ๏ธ ๋ชจ๋ ์
๋ ฅ๋์ ์ฑ์์ฃผ์ธ์!"; return; } const YB = num * num1; const afterTax = YB * (1 - 0.154); const ZG = num2 * num3; document.getElementById('output').innerHTML = `์ด ์์ ๋ฐฐ๋น๊ธ: <strong>${YB.toLocaleString()}์</strong><br>` + `์ธํ ์์ ๋ฐฐ๋น๊ธ (15.4% ๊ณต์ ): <strong>${afterTax.toLocaleString()}์</strong><br>` + `์ด ์์ ๊ตฌ์
๊ฐ๊ฒฉ: <strong>${ZG.toLocaleString()}์</strong>`; } </script> <div class="wrap-container"> <div class="home-container"> </div> </div> <script width="5px" height="5px" type="text/javascript" src="https://cdnjs.buymeacoffee.com/1.0.0/button.prod.min.js" data-name="bmc-button" data-slug="Luna0x03" data-color="#BD5FFF" data-emoji="" data-font="Cookie" data-text="Buy me a coffee" data-outline-color="#000000" data-font-color="#ffffff" data-coffee-color="#FFDD00" ></script> </body> by. <a href="https://github.com/luna00110010">luna00110010</a> <footer> <small>Copyright © Kurai Luna(Luna0x03)</small> </footer> </html>
|
ํด, ๋ง์ ๋ป์ง์ด์๋คใ
กใ
;;
์๋ฌดํผ ์๋ ์ฌ์ง.2 ์ฒ๋ผ ์ผ๋ณธ ๋ฒ์ ๋ ๋ณด์ฌ์ฃผ๊ณ ์ด๋ง ๋๋ง์น๋ค.

P.s.
์ผ๋ณธ๋ฒ์ ๋ ๋ง๋ค์ด๋ณด๋๊น
์ผ๋ณธ์์ ์ด ๋ฐฐ๋น๊ธ ์ธ๊ธ์ด 28.28% ์ฌ์ค์
๋๋ผ์ ๋ค, ๊ฐ์ธ์ ์ผ๋ก ์ผ๋ณธ์ ๊ธ์ต์ ์์ด์๋
๋ง์ด ์์ฌ์ด ๋ถ๋ถ์ด๋ค.