₦airaland Forum

Welcome, Guest: Join Nairaland / LOGIN! / Trending / Recent / New
Stats: 2,317,735 members, 5,108,910 topics. Date: Wednesday, 21 August 2019 at 11:28 PM

Learning To Program With Java by the Fulaman - Programming (14) - Nairaland

Nairaland Forum / Science/Technology / Programming / Learning To Program With Java by the Fulaman (29782 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) ... (11) (12) (13) (14) (15) (Reply) (Go Down)

Re: Learning To Program With Java by the Fulaman by hardebayho(m): 7:40pm On Jun 25, 2016
To learn COMPLETE Java, you'll have to use up to a year or more with full dedication and seriousness. Although, if you're alerady a developer, then it'll take you less
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 10:42pm On Jun 25, 2016
satmaniac:


My teacher, I submitted a corrected version of my code. You can check it in my last post.


Correction, advice, tips are needed.

I'll check it just very tired sorry

1 Like

Re: Learning To Program With Java by the Fulaman by Collinz2(m): 10:44pm On Jun 25, 2016
hardebayho:
To learn COMPLETE Java, you'll have to use up to a year or more with full dedication and seriousness. Although, if you're alerady a developer, then it'll take you less
nobody can teach complete java except the basics, i beleive thoes advanced developers learn the basics and start programming for the rest of their life which made them know java like abc.
Re: Learning To Program With Java by the Fulaman by awolola26(m): 3:26pm On Jun 26, 2016
fulaman...please i have a few questions to ask you and i dont want to derail this thread, please can i get your email address or whatsapp number so i can lay my complain to you??...Thanks sir in anticipation of your reply
Re: Learning To Program With Java by the Fulaman by DJHANDSOME(m): 1:35pm On Jun 27, 2016
.
Re: Learning To Program With Java by the Fulaman by hardebayho(m): 3:42am On Jun 28, 2016
Collinz2:
nobody can teach complete java except the basics, i beleive thoes advanced developers learn the basics and start programming for the rest of their life which made them know java like abc.

I never said anyone could teach you complete Java. All I said was for u to take your time.
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 7:06am On Jun 28, 2016
There will be another serious update to this thread again soon. Please bare with me. There will be some updated graded assignments as well. Thanks for your undying patience.

2 Likes

Re: Learning To Program With Java by the Fulaman by Collinz2(m): 6:47pm On Jul 01, 2016
Java easy challenge

write a multiplication time table program that accept user input, the inputed value will be for the time table. Time table should be from 1 to 12. Use for loop.

example
5 times 1 is 5
5 times 2 is 10
5 times 3 is 15

just like that.
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 1:49am On Jul 06, 2016
Sorry ladies and gents, before I go to sleep tonight, I will go ahead and check the work of a few of you and give you tips for improvement also I want to post my solution to this problem. I kept it simple for the level this class is thus far. This problem has taken too long so I'm posting my solution. Please compare it with your own and feel free to execute it as well. As aforementioned, it's not complex. Thanks!

Solution:

import java.util.Scanner;

public class TestScores {

public static void main(String[] args) {
Scanner userInput = new Scanner(System.in );
int [] testScores = new int[10];
int total = 0;
int testAvg;
int i = 0;

do {
System.out.println("Please enter Test Score: " );
testScores[i] = userInput.nextInt();
total += testScores[i];
if (testScores[i] < 0 || testScores[i] > 100) {
System.out.println("Please enter a valid Test Score!" );
} else {
i++;
}

} while (i < 10);

testAvg = (total / testScores.length);
System.out.println("Student's average is " + testAvg );
}

}
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 1:56am On Jul 06, 2016
satmaniac:



I didn't, but when I tested it yesterday, I have this wrong start of expression error. I think i have an idea where the problem is. the code will be modified in my last code.

MODIFIED:

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

/**
*
* @author ABDULL
*/

import java.util.Scanner;

public class Array {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here

int i=0;
int[]Scores;
double average=0;
int total=0;


System.out.println("This program collect Scores of students in ten subjects and also display their average."wink;
Scores = new int[10];

Scanner stdio = new Scanner(System.in);



for(i=0;i<Scores.length;i++){

System.out.println("Please enter Test Score" + i + ":"wink;
Scores[i] = stdio.nextInt();
if(Scores[i]<0 || Scores[i]>100){
System.out.println("Score is less than zero, or greater than 100, please, enter a valid score!"wink;

Scores[i] = stdio.nextInt();

}





total+=Scores[i];

}




average=total/Scores.length;
System.out.println("Your average is:" + " " + average);



}

}

Very good and much better this time, your programme does what it does as instructed. You should be proud of yourself and how far you have come along. Well done! Please take a look at the solution I posted as well as it's an alternate means of doing it. Thanks!
Re: Learning To Program With Java by the Fulaman by satmaniac(m): 9:36am On Jul 06, 2016
Fulaman198:


Very good and much better this time, your programme does what it does as instructed. You should be proud of yourself and how far you have come along. Well done! Please take a look at the solution I posted as well as it's an alternate means of doing it. Thanks!

Thanks? I should be the one thanking you. You know, teaching is one hell of a difficult job, especially, when your student are not assimilating what you teaches them properly. Also, if one look at the number of student you have on this thread and one consider the fact that you have to go through our code line by line, then one can begin to comprehend what an arduous task it is.

Your code.......how come I did not consider using the do while loop? I just realised how simple it would have been, had I used the do while loop.

I noticed how you put all the code that will get the user input and also the code that will ask the user to input the correct score, when the user input a score that is less than zero or greater than hundred, in the do block. NOTED.

You are really a good teacher, thanks.
Re: Learning To Program With Java by the Fulaman by khaynoni(m): 6:32pm On Jul 07, 2016
Fulaman, you're doing a very nice job here. Well done! Hope I did not resume late?
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 6:43pm On Jul 07, 2016
khaynoni:
Fulaman, you're doing a very nice job here. Well done! Hope I did not resume late?

Not at all, you are not late to the game cheesy Just have to play catch-up and you have some time to do so. I MIGHT be posting another tutorial before Saturday. So do as much as you can until then.

1 Like

Re: Learning To Program With Java by the Fulaman by Nobody: 7:46pm On Jul 07, 2016
OMG... i have been away for a while, did i miss any assignment?
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 1:44am On Jul 08, 2016
crotonite:
OMG... i have been away for a while, did i miss any assignment?

No Crotonite, you are doing well. How are things with you and your lady friend that you admire from afar?
Re: Learning To Program With Java by the Fulaman by Nobody: 6:49am On Jul 08, 2016
Fulaman198:


No Crotonite, you are doing well. How are things with you and your lady friend that you admire from afar?

Things are fine over here and for the lady i feel more confident conversing with her now. 'nagode so sai so sai'.
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 10:34am On Jul 08, 2016
crotonite:

Things are fine over here and for the lady i feel more confident conversing with her now. 'nagode so sai so sai'.

I'm happy to hear that

1 Like

Re: Learning To Program With Java by the Fulaman by Collinz2(m): 11:15am On Jul 08, 2016
Fulaman198:


I'm happy to hear that
bro please when u enter java methods and classes throw more light on it. This topic is kinda confusing. I started my learning all over again and now i understand multidimensional array.
Re: Learning To Program With Java by the Fulaman by khaynoni(m): 11:24am On Jul 08, 2016
Fulaman198:


Not at all, you are not late to the game cheesy Just have to play catch-up and you have some time to do so. I MIGHT be posting another tutorial before Saturday. So do as much as you can until then.

Does the "as much as you can" involve submitting those assignments too?
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 4:37pm On Jul 08, 2016
khaynoni:


Does the "as much as you can" involve submitting those assignments too?

If you wish dear friend
Re: Learning To Program With Java by the Fulaman by khaynoni(m): 4:54pm On Jul 08, 2016
Fulaman198:


If you wish dear friend

I've laid my hands on some already. Thanks for the selfless service.

1 Like

Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 4:55pm On Jul 08, 2016
khaynoni:


I've laid my hands on some already. Thanks for the selfless service.

Thank you for reading, it's great to have more viewers.
Re: Learning To Program With Java by the Fulaman by hardebayho(m): 10:08pm On Jul 10, 2016
Collinz2:
Java easy challenge

write a multiplication time table program that accept user input, the inputed value will be for the time table. Time table should be from 1 to 12. Use for loop.

example
5 times 1 is 5
5 times 2 is 10
5 times 3 is 15

just like that.
import java.util.*;

public class Main
{
public static void main(String[] args)
{

Scanner input = new Scanner(System.in);

System.out.println("Please enter a number:"wink;
int x = input.nextInt();

for(int a = 1; a <= 12; a++){

System.out.println(x + " x " + a + " = " + x * a);
}

}
}
Re: Learning To Program With Java by the Fulaman by Nobody: 11:23am On Jul 11, 2016
@ fulaman.. Can i use android studio as an alternative to jdk. I'm new here
Re: Learning To Program With Java by the Fulaman by hardebayho(m): 12:56pm On Jul 11, 2016
samyomz:
@ fulaman.. Can i use android studio as an alternative to jdk. I'm new here

Alternative to jdk? Please make your question clear ooo
Re: Learning To Program With Java by the Fulaman by Nobody: 4:34pm On Jul 11, 2016
hardebayho:


Alternative to jdk? Please make your question clear ooo
jdk is java development kit right And it's used to develop apps right??... I don't have jdk but i have android studio.. My question is... Can i use android studio to learn here or should i go and get jdk?? Tnx
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 5:55pm On Jul 11, 2016
samyomz:
jdk is java development kit right And it's used to develop apps right??... I don't have jdk but i have android studio.. My question is... Can i use android studio to learn here or should i go and get jdk?? Tnx

If you have Android studio and you are able to write Java code and import different Android Java libraries like the Application class then you do have JDk installed. Go to command line and type "Java -version" to see what Java version you have
Re: Learning To Program With Java by the Fulaman by hardebayho(m): 9:41pm On Jul 11, 2016
samyomz:
jdk is java development kit right And it's used to develop apps right??... I don't have jdk but i have android studio.. My question is... Can i use android studio to learn here or should i go and get jdk?? Tnx
Okay. You need to download the jdk.
Re: Learning To Program With Java by the Fulaman by Collinz2(m): 12:18am On Jul 12, 2016
hardebayho:

import java.util.*;

public class Main
{
public static void main(String[] args)
{

Scanner input = new Scanner(System.in);

System.out.println("Please enter a number:"wink;
int x = input.nextInt();

for(int a = 1; a <= 12; a++){

System.out.println(x + " x " + a + " = " + x * a);
}

}
}
You code almost get me confused but its correct.
Re: Learning To Program With Java by the Fulaman by Nobody: 8:56am On Jul 12, 2016
Fulaman198:


If you have Android studio and you are able to write Java code and import different Android Java libraries like the Application class then you do have JDk installed. Go to command line and type "Java -version" to see what Java version you have



Hello my teacher. Longest time kiss
Re: Learning To Program With Java by the Fulaman by enigma2007(m): 2:07pm On Jul 12, 2016
Is there a way to enforce code formatting here? This will help in reading the codes been posted.

For example, Fulaman198 last posted code was perfectly formatted and made it attractive to read...
Re: Learning To Program With Java by the Fulaman by Fulaman198(m): 6:13pm On Jul 13, 2016
Sugarhugs:




Hello my teacher. Longest time kiss

Hey beautiful goddess long time indeed. Your picture looks amazing kiss

(1) (2) (3) ... (11) (12) (13) (14) (15) (Reply)

Nigerian Teen Girls Win International Award With Their Waste Disposal App / A Thread For Tutorial On Python Programming / Ethical Hackers

(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: (0) (1) (2) (3) (4) (5) (6) (7) (8) (9)

Nairaland - Copyright © 2005 - 2019 Oluwaseun Osewa. All rights reserved. See How To Advertise. 119
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.