Skip to content

Commit 8f0a000

Browse files
committed
Create gh-pages branch via GitHub
1 parent ce41778 commit 8f0a000

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

index.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ <h3>
6565
<p>Implement a JavaScript function that will convert a given number to its word representation. The number can be assumed to be an JavaScript integer, in the range [1 - 999,999,999,999], but it would be nice if the function gave/threw out an error message that the input is invalid. Note that there's no need to handle negative numbers - but they should be detected as invalid input.
6666
The textual representation should be done in English - and you can test with these valid examples:</p>
6767

68-
<h1>
69-
<a id="-english" class="anchor" href="#-english" aria-hidden="true"><span class="octicon octicon-link"></span></a>| English</h1>
70-
71-
<p>--|----------
68+
<p>Number | English
69+
--|----------
7270
1 | "One"
7371
2 | "Two"
7472
11 | "Eleven"
@@ -89,10 +87,8 @@ <h1>
8987

9088
<p><strong>Bonus:</strong> - Да се направи истото за македонски јазик</p>
9189

92-
<h1>
93-
<a id="-------Македонски" class="anchor" href="#-------%D0%9C%D0%B0%D0%BA%D0%B5%D0%B4%D0%BE%D0%BD%D1%81%D0%BA%D0%B8" aria-hidden="true"><span class="octicon octicon-link"></span></a>| Македонски</h1>
94-
95-
<hr>
90+
<h2>
91+
<a id="number---------Македонски" class="anchor" href="#number---------%D0%9C%D0%B0%D0%BA%D0%B5%D0%B4%D0%BE%D0%BD%D1%81%D0%BA%D0%B8" aria-hidden="true"><span class="octicon octicon-link"></span></a>Number | Македонски</h2>
9692

9793
<p>1 | "Еден"
9894
2 | "Два"

params.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"Sedc4-javascript","tagline":"Homeworks and assignments for the SEDC CodeCademy 2015/2016","body":"# Homework 1\r\n## JavaScript calculator\r\nYou must create a functional HTML / JavaScript calculator (CSS is allowed, but not mandatory).\r\nIt must have:\r\n- a output display where the result is displayed\r\n- buttons for the digits (0-9)\r\n- buttons for the operations (+, -, *, /)\r\n- button for operation execution (=)\r\n- *optional* button for clearance (C)\r\n\r\nThe design of the buttons and the display is not subject to evaluation - but make it look pretty if you know how :) \r\n\r\nThe calculator must support doing operations on (at least) single digit numbers.\r\n\r\nThe division operator must do integer division (9/4 = 2, not, 2.25) \r\n\r\nThe result of the operation must be displayed in the output display - displaying the operation and operands are not required \r\n\r\nThere is a referent implementation at [this location](Homework/Referent/Calculator/calculator.html) \r\n\r\nNote that the referent implementation is just for design overview, as the code is intentionally more complicated than neccessary.\r\n\r\n**Bonus:** - Make the calculator work from the keyboard (number keys enter numbers, enter calculates, escape clears)\r\n\r\n# Homework 2\r\n## Number to words\r\n\r\n### Description:\r\nOur user needs to print invoices for some trinkets she will be selling. She is not good at reading numbers, so we must help her. She wants to enter a number that should be invoiced, and to receive the text that should be put in the \"with words\" part of the invoice. You must help her print the invoices.\r\n\r\nImplement a JavaScript function that will convert a given number to its word representation. The number can be assumed to be an JavaScript integer, in the range [1 - 999,999,999,999], but it would be nice if the function gave/threw out an error message that the input is invalid. Note that there's no need to handle negative numbers - but they should be detected as invalid input.\r\nThe textual representation should be done in English - and you can test with these valid examples:\r\n\r\n# | English\r\n--|----------\r\n1 |\t\t\t\"One\"\r\n2 |\t\t\t\"Two\"\r\n11 |\t\t\t\"Eleven\"\r\n21 |\t\t\t\"Twenty one\"\r\n192 |\t\t\t\"One hundred ninety two\"\r\n1187 |\t\t\"One thousand one hundred eighty seven\"\r\n2000 |\t\t\"Two thousand\"\r\n21011 |\t\t\"Twenty one thousand eleven\"\r\n12341678 |\t\"Twelve million three hundred forty one thousand six hundred seventy eight\"\r\n128341679901 | \"One hundred twenty eight billion three hundred forty one million six hundred seventy nine thousand nine hundred one\".\r\n\r\nThe result should be returned from the function as a result - not displayed directly to the user, alerted or logged to the console. You must use the following signature of the method:\r\n\r\n```javascript\r\nfunction toWords(number) {\r\n // your code here\r\n return result;\r\n}\r\n```\r\n\r\n**Bonus:** - Да се направи истото за македонски јазик\r\n\r\n#\t|\t\tМакедонски\r\n----------------------------------\r\n1\t|\t\t\"Еден\"\r\n2\t|\t\t\"Два\"\r\n11\t|\t\t\"Единаесет\"\r\n21\t|\t\t\"Дваесет и еден\"\r\n192\t|\t\t\"Сто девеесет и два\"\r\n1187\t|\t\"Илјада сто осумдесет и седум\"\r\n2000\t|\t\"Две илјади\"\r\n21011\t|\t\"Дваесет и една илјада единаесет\"\r\n12341678|\t\"Дванаесет милиони триста четериесет и една илјада шестотини седумдесет и осум\"\r\n128341679901| \"Сто дваесет и осум милијарди триста четериесет и еден милион шестотини седумдесет и девет илјади девестотини и еден\"\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}
1+
{"name":"Sedc4-javascript","tagline":"Homeworks and assignments for the SEDC CodeCademy 2015/2016","body":"# Homework 1\r\n## JavaScript calculator\r\nYou must create a functional HTML / JavaScript calculator (CSS is allowed, but not mandatory).\r\nIt must have:\r\n- a output display where the result is displayed\r\n- buttons for the digits (0-9)\r\n- buttons for the operations (+, -, *, /)\r\n- button for operation execution (=)\r\n- *optional* button for clearance (C)\r\n\r\nThe design of the buttons and the display is not subject to evaluation - but make it look pretty if you know how :) \r\n\r\nThe calculator must support doing operations on (at least) single digit numbers.\r\n\r\nThe division operator must do integer division (9/4 = 2, not, 2.25) \r\n\r\nThe result of the operation must be displayed in the output display - displaying the operation and operands are not required \r\n\r\nThere is a referent implementation at [this location](Homework/Referent/Calculator/calculator.html) \r\n\r\nNote that the referent implementation is just for design overview, as the code is intentionally more complicated than neccessary.\r\n\r\n**Bonus:** - Make the calculator work from the keyboard (number keys enter numbers, enter calculates, escape clears)\r\n\r\n# Homework 2\r\n## Number to words\r\n\r\n### Description:\r\nOur user needs to print invoices for some trinkets she will be selling. She is not good at reading numbers, so we must help her. She wants to enter a number that should be invoiced, and to receive the text that should be put in the \"with words\" part of the invoice. You must help her print the invoices.\r\n\r\nImplement a JavaScript function that will convert a given number to its word representation. The number can be assumed to be an JavaScript integer, in the range [1 - 999,999,999,999], but it would be nice if the function gave/threw out an error message that the input is invalid. Note that there's no need to handle negative numbers - but they should be detected as invalid input.\r\nThe textual representation should be done in English - and you can test with these valid examples:\r\n\r\nNumber | English\r\n--|----------\r\n1 |\t\t\t\"One\"\r\n2 |\t\t\t\"Two\"\r\n11 |\t\t\t\"Eleven\"\r\n21 |\t\t\t\"Twenty one\"\r\n192 |\t\t\t\"One hundred ninety two\"\r\n1187 |\t\t\"One thousand one hundred eighty seven\"\r\n2000 |\t\t\"Two thousand\"\r\n21011 |\t\t\"Twenty one thousand eleven\"\r\n12341678 |\t\"Twelve million three hundred forty one thousand six hundred seventy eight\"\r\n128341679901 | \"One hundred twenty eight billion three hundred forty one million six hundred seventy nine thousand nine hundred one\".\r\n\r\nThe result should be returned from the function as a result - not displayed directly to the user, alerted or logged to the console. You must use the following signature of the method:\r\n\r\n```javascript\r\nfunction toWords(number) {\r\n // your code here\r\n return result;\r\n}\r\n```\r\n\r\n**Bonus:** - Да се направи истото за македонски јазик\r\n\r\nNumber\t|\t\tМакедонски\r\n----------------------------------\r\n1\t|\t\t\"Еден\"\r\n2\t|\t\t\"Два\"\r\n11\t|\t\t\"Единаесет\"\r\n21\t|\t\t\"Дваесет и еден\"\r\n192\t|\t\t\"Сто девеесет и два\"\r\n1187\t|\t\"Илјада сто осумдесет и седум\"\r\n2000\t|\t\"Две илјади\"\r\n21011\t|\t\"Дваесет и една илјада единаесет\"\r\n12341678|\t\"Дванаесет милиони триста четериесет и една илјада шестотини седумдесет и осум\"\r\n128341679901| \"Сто дваесет и осум милијарди триста четериесет и еден милион шестотини седумдесет и девет илјади девестотини и еден\"\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."}

0 commit comments

Comments
 (0)