Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,154,474 members, 7,823,104 topics. Date: Friday, 10 May 2024 at 01:08 AM |
Nairaland Forum / Kaykay100's Profile / Kaykay100's Posts
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 9:36pm On Mar 05, 2019 |
Please op; there is a problem with login. When registering for class you are not prompted for password but when you are trying to login you are been asked for password . i have had to register twice now , and I have to register the third time if i want to view the rest of the class. Kindly help in that regards. |
Programming / Re: Javascript,html Help by kaykay100(f): 9:08pm On Mar 05, 2019 |
stanliwise: Yes it did work ,thank you so much . Here is the code. But the only thing that is not working is ,when the user clicks the "disabled" button. There should a message telling them they should enter 3 digits. How do I do that? var number, btn; number = document.getElementById("inputnum" btn = document.getElementById("checkbtn" btn.disabled = true; //events number.onkeyup = () => { if (number.value.length === 3) { btn.disabled = false; } else { btn.disabled = true; } } //inline method of onclick event handler for check button btn.onclick = () =>{ Armstrong(number.value); } function Armstrong(number){ var flag,remainder,addition = 0; flag = number; while( number > 0 ){ remainder = number % 10; addition += remainder * remainder * remainder; number = parseInt( number/10 ); } if(addition == flag){ window.alert("-The inputed number is Armstrong" }else { window.alert("-The inputed number is not Armstrong" } } |
Programming / Re: Javascript,html Help by kaykay100(f): 8:55pm On Mar 05, 2019 |
Thank you much for breaking it down more. Nairaland did not give ma a notification that someone answered my question ,I am truely sorry for the late reply. I ran the code but when i click the button it does not work BECAUSE the function has not been called anywhere in the HTML code. Below is the code; <--- HTML---> <html> <body> <center> <h1>The Armstrong Detector App</h1> Enter your value: <br/> <input id="inputnum" type="text" class="input"> <button class="button" id="checkbtn" >Check</button> </center> </body> </html> <---- JAVASCRIPT---> function Armstrong(number){ var flag,remainder,addition = 0; flag = number; while( number > 0 ){ remainder = number % 10; addition += remainder * remainder * remainder; number = parseInt( number/10 ); } if(addition == flag){ window.alert("-The inputed number is Armstrong" }else { window.alert("-The inputed number is not Armstrong" } } |
Jobs/Vacancies / Re: Andela: IT Training And Job by kaykay100(f): 6:30pm On Mar 05, 2019 |
girlking: girlking(f) and prolastics , please send me an email as I tried sending you both emails but it is not going through. prolastics: I did armstrong too. |
Programming / Javascript,html Help by kaykay100(f): 11:25pm On Mar 03, 2019 |
I am new to coding and I am working on this exercise. I am writing program to check whether an integer is Armstrong number or not. Example: 371 is an Armstrong number since 3 * * 3 + 7 * *3 + 1 * * 3 = 371. Almost done but need to be able to have the following. 1- a div to display the result. If the number is not a 3 digit integer, the button should be deactivated and if the user tries to click on it while deactivated, a message should appear explaining why the button can’t be clicked. 2. A div to display the result So far I have been a screen alert to make sure I see my function is working fine. Which it is but need to sort out these 2 mentioned above. Here is my code; javascript function Armstrong() { var flag,number,remainder,addition = 0; number = Number(document.getElementById("inputnum".value); btn = document.getElementById("checkbtn" btn.disabled = true; number.onkeyup = () => { if ( number.length === 3) { btn.disabled = false; } else { btn.disabled = true; } } flag = number; while(number > 0) { remainder = number%10; addition = addition + remainder*remainder*remainder; number = parseInt(number/10); } if(addition == flag) { window.alert("-The inputed number is Armstrong" } else { window.alert("-The inputed number is not Armstrong" } } -- HTML--- <html> <body> <center><h1>The Armstrong Detector App</h1> Enter your value: <input id="inputnum" type="text" class="input" > <center><button onclick="Armstrong()" class="button" id="checkbtn" >Check</button> <br /> </body> </html> |
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 2:08pm On Mar 02, 2019 |
Aiight. Kool.Understood,Thanks. |
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 12:34am On Mar 02, 2019 |
Please add me +447921516524 Please I just got a domain ,web hosting and installed wordpress. How do I transfer my html and css files into the domain . So it can be viewed online. I know we haven't gotten there yet. But I have wanted to build a website for so long and studied a bit before coming accross your tutorial and few others. I will be glad if you can put me through. -Also what is the difference btw .php and .html file. I was checking a friends website "Editor" section on wordpress and all the files are .php |
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 8:50pm On Feb 27, 2019 |
when is the next set of tutorials coming up? |
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 8:18am On Feb 26, 2019 |
kreativemind: I sorted it out using your exact instruction url(../images/image) . I was just overthinking it before. Thanks for your response. |
Programming / Re: Web Design, Web Development And Mobile App Development Tutorial by kaykay100(f): 6:16pm On Feb 25, 2019 |
kreativemind: Thanks a great deal for the tutorial,look forward today's class. I have a question about background image. All my files are in an external drive, how do I access it for the background image. How do I point the css to that image. body { font-family: sans-serif; font-size: 89%; background-image: url(D:../images/kakakiibg.jpg" } // Here is where my file is; " D:\kakakee\HTML&CSS\images" |
NYSC / How Do One Register For NYSC If Living Abroad by kaykay100(f): 9:38pm On Feb 19, 2019 |
how do one register for NYSC if living abroad?Also what is the maximum age? Does it matter if you schooled abroad? |
Programming / Need Help With Javascript Question by kaykay100(f): 1:38am On Feb 18, 2019 |
I want a solution to this question in javascript as I am new to coding. Below is my attemp but it is not working. Question; Write a function that counts how many different ways you can make change for an amount of money, given an array of coin denominations. For example, there are 3 ways to give change for 4 if you have coins with denomination 1 and 2: 1+1+1+1, 1+1+2, 2+2. The order of coins does not matter: 1+1+2 == 2+1+1 .Also, assume that you have an infinite amount of coins.Your function should take an amount to change and an array of unique denominations for the coins: countChange(4, [1,2]) // => 3 my code attempt,but not working; function countChange(coins, money) { var m = money; var n = coins.length; var dp = Array(m + 1).fill().map(() => Array(n).fill(0)); // Fill the entries for money = 0 for (var i = 0; i < n; i++) dp[0][i] = 1 for (var i = 1; i <= m; i++) { for (var j = 0; j < n; j++) { // Count of solutions inculding coins[j] var x = i - coins[j] >= 0 ? dp[i - coins[j]][j] : 0 // Count of solutions excluding coins[j] var y = j > 0 ? dp[i][j - 1] : 0 dp[i][j] = x + y } } return dp[m][n - 1] } console.log(countChange); |
Programming / Re: Learn Google Golang & Web Programming For Free by kaykay100(f): 1:35am On Feb 18, 2019 |
+447921516524 |
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 26 |