Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,783 members, 7,959,445 topics. Date: Thursday, 26 September 2024 at 05:20 PM |
Nairaland Forum / Science/Technology / Programming / Learning To Program With Java by the Fulaman (43186 Views)
How To Program Arduino Uno / How To Program With Your Android Phone Using Aide IDE Environment / Which Training Center Can Someone Learn How To Program Quickly (2) (3) (4)
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) ... (16) (Reply) (Go Down)
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 2:23am On Apr 25, 2016 |
macaranta: I will sir thank you. |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 2:28am On Apr 25, 2016 |
It's very late in the night (I should really morning) and I have been up all night working on some code for a project. In any case, I wanted to post a portion on the while loop. The while loop is just like the for loop except that it uses a different format to continue iteration. Below is the format for the while loop:
The while loop repeats a statement or group of statements while an expression is true. Let's look at some code and assess how it works.
|
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 2:31am On Apr 25, 2016 |
In the code segment given, an integer variable 'i' is declared and initialised to 0. After that a while statement is performed with the expression (i < 20), we tell the computer to output to the console "This is a test " with the value of i next to it. After we output, we increment the value of i by one via the 'i++'. The loop will repeat until i reaches 19 because the condition to be met in the expression is "i is less than 20". 1 Like 1 Share
|
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 2:37am On Apr 25, 2016 |
Assigned reading: http://codingbat.com/doc/java-for-while-loops.html Read this segment from start to finish to improve your knowledge regarding for and while loops. I will be giving you guys an assignment after a go over do-while loops. If you see anything regarding arrays, please kindly ignore it. |
Re: Learning To Program With Java by the Fulaman by Nobody: 9:02pm On Apr 25, 2016 |
any developer here conversant with c-sharp, mysql database to help me out please? |
Re: Learning To Program With Java by the Fulaman by hardebayho(m): 12:17am On Apr 28, 2016 |
Collinz2:That's probably because you have no one to learn with... Learning with people is more fun and easier that learning alone |
Re: Learning To Program With Java by the Fulaman by Collinz2(m): 9:46am On Apr 28, 2016 |
hardebayho:hmmm |
Re: Learning To Program With Java by the Fulaman by satmaniac(m): 12:58am On Apr 29, 2016 |
Fulaman198: We re grateful sir. We are gradually progressing in this journey |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 8:16am On Apr 29, 2016 |
satmaniac: Excellent I'll post an assignment today. Thanks! 1 Like 1 Share |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 7:06pm On May 01, 2016 |
Day 5 Cont: Greetings once again dear NL folk. I am sorry for not posting in a while. I hope that you understand that I have been busy with other stuff in my life. In any case, I don't want to go into other details. I will continue with the Day 5 tutorial. The 3rd iteration process that I would like to discuss is the do-while loop. It's structure is as follows:
Let us look at some code and assess how it works. |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 7:12pm On May 01, 2016 |
In the code sample below, I have created a very simple do-while loop to illustrate how it works.
|
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 7:13pm On May 01, 2016 |
The output is as follows: It looks until you see 99 which is less than 100.
|
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 7:25pm On May 01, 2016 |
Assigned reading: http://www.tutorialspoint.com/java/java_do_while_loop.htm If my tutorial isn't enough for you, please do this reading. Assignment: Write a programme(program) that Outputs a list from 1 - 5, where 1. convert some units from cm to inches (use the value of 2.54 cm = 1 inch), 2. that converts metres to feet (use the conversion rate of 1 metre = 3.28 feet) , 3. that converts Centigrade(Celsius) to Fahrenheit (the formula for that is (9/5)C + 32 = F) 4. Convert naira to euros (where 1 euro = 227.96 Naira), 5. Exit the application Use a combination of what you have learned thus far with conditional statements and looping/iteration statements. The application should keep looping until the user presses '5'. Once the user presses 5, the application terminates. The programme should be able to accept input e.g. if the user presses number 3 which converts degrees celsius to fahrenheit, the programme should do something like this: Please enter a value in degrees celsius that you would like to convert to degrees fahrenheit: 100 Output: 100 Degrees Celsius is the equivalent to 212 degrees Fahrenheit. Enjoy the assignment. I made it a bit harder this time, though for some of you, it's more than likely quite easy if you have done something like this in another language. |
Re: Learning To Program With Java by the Fulaman by Nobody: 8:35pm On May 01, 2016 |
Fulaman198:java is very similar to c++ |
Re: Learning To Program With Java by the Fulaman by Nobody: 8:58pm On May 01, 2016 |
Fulaman198: Hi, good evening, I CNT see java dev kit 8u77 in website you gave, only 8u91-8u92 should I download? |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 9:54pm On May 01, 2016 |
Sugarhugs: At the time that tutorial was edited, 8u77 was the latest version, it is perfectly ok to obtain the latest. Thanks! |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 9:54pm On May 01, 2016 |
Sugarhugs: At the time that tutorial was written, 8u77 was the latest version, it is perfectly ok to obtain the latest. Thanks! |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 9:56pm On May 01, 2016 |
MuhdG: That's correct little bro just like C++ and C#, it's a C-based language. |
Re: Learning To Program With Java by the Fulaman by Nobody: 10:43pm On May 01, 2016 |
Fulaman198:. Thanks 1 Like |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 11:04pm On May 01, 2016 |
Sugarhugs: No problem |
Re: Learning To Program With Java by the Fulaman by Nobody: 2:53am On May 02, 2016 |
1 Like |
Re: Learning To Program With Java by the Fulaman by ANTONINEUTRON(m): 7:48am On May 02, 2016 |
Gudmrning Fulaman, plz i will u show me how to create an 1. input box in java and 2. Declaring a java header (a link to d article might do) |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 8:01am On May 02, 2016 |
ANTONINEUTRON: Greetings little bro, can you please be more specific about input boxes are you talking about in a GUI? What do you mean declaring a Java header. Please be more specific. Thanks! |
Re: Learning To Program With Java by the Fulaman by Nobody: 8:59am On May 02, 2016 |
Fulaman198: Hi , good morning, I saw online that one should learn HTML and CSS before moving to java? |
Re: Learning To Program With Java by the Fulaman by ANTONINEUTRON(m): 9:33am On May 02, 2016 |
Fulaman198: 1.An Input box where users can insert/write down values, words e.t.c. 2. All those declarations done(import.Util, public class{}, string[args] e.t.c) i don't understand how they work, i will like to read an article on it. A link will do |
Re: Learning To Program With Java by the Fulaman by Nobody: 12:39pm On May 02, 2016 |
DONE.
|
Re: Learning To Program With Java by the Fulaman by Nobody: 1:05pm On May 02, 2016 |
Fulaman198:i'm learning c++ on my own when am done with it.. i'll go to python or java |
Re: Learning To Program With Java by the Fulaman by ANTONINEUTRON(m): 3:55pm On May 02, 2016 |
Diz is my answer...
...........T.B.C.... Check my next post. |
Re: Learning To Program With Java by the Fulaman by ANTONINEUTRON(m): 4:11pm On May 02, 2016 |
...Continue..?
That is my code Sir!!!! |
Re: Learning To Program With Java by the Fulaman by ANTONINEUTRON(m): 4:14pm On May 02, 2016 |
crotonite:Can i see sme of ur screenshot?? |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 4:46pm On May 02, 2016 |
ANTONINEUTRON: We will get to that soon but if you want to read ahead, I'll link an article later |
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 4:51pm On May 02, 2016 |
Sugarhugs: Hello, that's optional miss. If you want to get into web development then sure, however there is no particular order for learning anything. Java is a true object-oriented programming language HTML is a markup language and doesn't really teach one the concepts of programming. |
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) ... (16) (Reply)
Sultan Akintunde Set For Guinness World Record For Longest Software Coding Time / What Are The Best Laptops For Programmers And Hackers?! / Basil Okpara Jr, Biography, Age, Nigerian Programmer Who Built 30 Mobile Games
(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. 42 |