₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,265 members, 8,449,483 topics. Date: Tuesday, 21 July 2026 at 08:50 PM

Toggle theme

Jacob05's Posts

Nairaland ForumJacob05's ProfileJacob05's Posts

1 2 3 4 5 6 7 8 ... 22 23 24 25 26 27 28 29 30 (of 37 pages)

ProgrammingRe: Python Programming by jacob05(op): 11:54pm On Mar 31, 2011
{Going through my posts}
EventsRe: What Would You Really Appreciate As Valentine Gift? by jacob05(m): 9:20am On Feb 13, 2011
peace !
BusinessRe: Tobechi Onwuhara: The King Of Home Equity Fraud by jacob05(m): 6:10pm On Jan 26, 2011
Wow!
ProgrammingRe: Python Programming by jacob05(op): 11:37am On Nov 17, 2010
nope. Hi @ll. All my pythonic fellows whats on. Always love see a programming world dominated by PYTHON. All the best
ProgrammingRe: Would You End Up Needing Glasses? by jacob05(m): 12:06pm On Nov 15, 2010
sacrifice to make for hardcore programmers, Most Programmer Ended up Using Glasses But Who Cares ALmost Every Body Need Glasses at some Certain Age,
ComputersRe: Strictly Internet Speed Screen Shots v2 by jacob05(m): 5:24pm On Oct 13, 2010
Mobinga:
sad I regret paying for 5gb bundle cry cry cry Where's that IWP grin sef/// Runs and checks his library for his dumped modem/// Cleans it// Picks up the phone// Calls DC/// cry cry silly MTN!!! angry angry angry angry
That's It Man !!!!
ComputersRe: Strictly Internet Speed Screen Shots v2 by jacob05(m): 11:52am On Oct 13, 2010
You People won kill person with this your speeds oooo. which i can get such speed on my sys undecided. Me self dey Manage 41 k/b download 4 my MTN fr)) Bro***ing cool.
HealthRe: Lead Poisoning Kills 400 Children In Zamfara State by jacob05(m): 8:33am On Oct 07, 2010
embarassed embarassed embarassed embarassed Tooo Sad 400 Abokis Just Die Like That embarassed embarassed embarassed embarassed embarassed where Government Dey Self. May there souls rest in peace
TV/MoviesRe: Nollywood Now Second Largest Movie Industry In The World by jacob05(m): 3:35pm On Oct 06, 2010
Naija 2 too Much, All You Have to do is Improving the quality of your videos.
SportsRe: Nigerian Has Won The First Gold Of The 2010 Commonwealth Games In Delhi - Pic by jacob05(m): 8:41pm On Oct 05, 2010
17 huh she looks 30
PoliticsRe: New Bomb Threat In Abuja - Nnpc Building. by jacob05(m): 3:09pm On Oct 05, 2010
politicians playing Games
CrimeRe: Nigeria's Senate Website Hacked by jacob05(m): 10:48pm On Oct 01, 2010
oop's. Nice one.lol
CrimeRe: Lover Boy Crushes Okada Rider Over Girlfriend by jacob05(m): 12:29pm On Sep 29, 2010
ode Sunday. three MUMU guys.
Nairaland GeneralRe: What Have You Gained From Nairaland? by jacob05(m): 8:56pm On Sep 22, 2010
Nairaland you too much. Found a place for my SIWES placement on nairaland. Learn good programming techniques on nairaland too much on nairaland
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 9:39pm On Aug 09, 2010
turag:
@jacob05, 1I wasn't trying to teach anyone, was just trying to help 'joyce' out with her work.2 My calculations are not for static variables, they are for variables that changes. 3My variable names are poor, cos I was trying to pin-point each step, but I should be blamed for that, cos I wasn't following the rules. 4I used the the variables 'a' and 'e', check it well, u will see it. [/color] As for my maths calculations, it goes like this cubes / 2 = ans(150), then ans * 1500 = ans1(225000)

I guess I tried making the working simpler than urs.
1. But the whole world is reading this right now!. You are not only teaching her you are teaching ALL. To teach her alone Call her to a private lesson.

2. Ok.

3. Thank goodness you know this. But trying to "pin-point" to her the bases would require a little more detail about what she is learning.

4. WURU WuRu TO THE ANSWER. this is a dubious math . But check chukxy's calculations. And i've not yet seen where you used a and e in your CALCULATION O. Think i need a GLASS.
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 2:32pm On Aug 09, 2010
chukxy:
#include <stdio.h>
#include <conio.h>


int main()
{
  int noBottle,noStudent,sugar,cubePerMonth;   //declaration of variables
   noStudent = 1500;
  sugar = 300;
 
printf("\n Please enter the no of bottle consumed by each student in week \n"wink;
   scanf("%d",&noBottle);     //gets the value from user


while(noBottle< 0)         //validates the user input
{
  printf("\n Please enter a valid value\n"wink;
scanf("%d",&noBottle);
}

cubePerMonth = (noBottle*noStudent*sugar*4)/24;

printf("The no of cube consumed in a month =%d",cubePerMonth);


-getche();
return 0;


}

@ oga jacob05, if it is  this way you want the code to be, then I would sack you as your employer because of the following reason:
1. you have not justified your pay as a programmer, ordinary calculator or smart phone would accomplish the task ahead faster.
2. you have not implemented in your code the concept or re-usability,scalability,maintainability etc.
3. you did not think outside the box to know the relevance of this task to your employer(in this case coca cola)
4. Finally, you did not consider that you are working as a team of developers/programmers.


Thinking  Differently:


The relevance of this task to your employer includes among others the following:
1. to be able to calculate the total number of bottles they need for their production in a month not just the one consumed by the school in question but also from other customers.
2. to calculate the no of crates they need for the production in a month.
3.to calculate the total amount of sugar the need and the total cost of production.
4. to generate the reports, graphs for  management personnel.


When you are thinking differently, you would know that for you to accomplish the task list above, you only need to call the functions I defined in my former code and loop through them with certain values and your objective would be achieved. Also other member of your team can import the file and use any of the function to accomplish the set task. Doing it the way I did it before, automation is achieved and not just to do input and output as reflected  in the second code.

Oga jacob do you understand where I am coming from now?
kia all this for me ?? .
oga ke, who be oga, me ?? Jacob05 is still a teen age BOY o and searching badly for SIWES Placement o.

Sack ME Ke, Pls O, What Have i Done Wrong ?? Crime to Correct Mistakes or What huh

know let break your comments down

I never for once hate [size=13pt]modular [/size]programming, i try as  much as possible to break my program segments into modules. i would never ever Advice you to Program Like This. OK?

I love the Spirit of Group Coding (Although Not in One Before) and Breaking Down Your Work would help in Easy division of the Work to Be Done (From What i Read). OKhuh?

The main point i was trying to make was that your function name is rather too long and making your code look UGLY GET THAT !!!! ?

e g : calcutate_no_cube_per_month(int  no_crate)

using this Style Can Get YOU into big trouble when dealing with larger Programs and even debugging. GET THAT ?? (lol)

i strongly apologize if i have offended you OK? especially in the calculation aspect OK? (Using Another Simple But Clear logic on PAPER.)

Make Things As Simple As Possible But Not Simpler .
By Albert Einstein
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 8:52am On Aug 09, 2010
turag:
From 1 Abraham Isesele Omobhude
need more solutions? hook me up-(abrahamomobhude@yahoo.com)


#include<iostream>
using namespace std;
int main()
{
2 int a, b, c, d, e, x, y, ans;


cout << "How many bottles of coke are there in a crate?: ";
cin >> a;


cout << "How many numbers of student?: ";
cin >> b;

cout << "How many cubes of sugar are required to make a crate?: ";
cin >> c;

cout << "Ration of student to one bottle\n";

cout << "Student = ";
cin >> d;

3 cout << "Bottle(s) = ";
cin >> e;


4 x = d * 4;
y = c / 2;
ans = y * b;


cout << ans << "cube(s) of sugar is required to satisfy the demand for coke on a monthly basis" << endl;
system("pause"wink
return 0;
}

Correct errors if any.
Thanks
1. Nice meeting you. My 'names' are Oyebanji jacob mayowa. Pleased to me you.

2. You ARE TEACHING US MAN NOT YOURSELF !. your variable names are very poor . I was complaining earlier about too long and ugly variables , NOW too short and unself-documentating variable names are used. Try to correct this man.

3. You requested for variable a and e but you never used them i your program. If you are not using the why requesting for them ?

4. WRONG !!! do your math very well.

@chuxy
waiting for your modified solution. Love the way you did yours.

Oops! I'm becoming a critic. Hope you are not annoyed. Should have posted my solution but my laptop adapter got faulty.
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 8:51am On Aug 09, 2010
turag:
From 1 Abraham Isesele Omobhude
need more solutions? hook me up-(abrahamomobhude@yahoo.com)


#include<iostream>
using namespace std;
int main()
{
2 int a, b, c, d, e, x, y, ans;


cout << "How many bottles of coke are there in a crate?: ";
cin >> a;


cout << "How many numbers of student?: ";
cin >> b;

cout << "How many cubes of sugar are required to make a crate?: ";
cin >> c;

cout << "Ration of student to one bottle\n";

cout << "Student = ";
cin >> d;

3 cout << "Bottle(s) = ";
cin >> e;


4 x = d * 4;
y = c / 2;
ans = y * b;


cout << ans << "cube(s) of sugar is required to satisfy the demand for coke on a monthly basis" << endl;
system("pause"wink
return 0;
}

Correct errors if any.
Thanks
1. Nice meeting you. My 'names' are Oyebanji jacob mayowa. Pleased to me you.

2. You ARE TEACHING US MAN NOT YOURSELF !. your variable names are very poor . I was complaining earlier about too long and ugly variables , NOW too short and unself-documentating variable names are used. Try to correct this man.

3. You requested for variable a and e but you never used them i your program. If you are not using the why requesting for them ?

4. WRONG !!! do your math very well.

@chuxy
waiting for your modified solution. Love the way you did yours.

Oops! I'm becoming a critic. Hope you are not annoyed. Should have posted my solution but my laptop adapter got faulty.
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 3:39pm On Aug 08, 2010
chukxy:
Hi jacob05, 1 i know I omitted scanf("%d",",&no_b) in my while loop. 2Again I broke the calculations to different functions for the person
I am communicating to understand.
I can use three functions to achieve this task or even lump everything in the main function; 3but this would make it difficult for the reader to understand. The code is long because is set to automate the task; not just to calcutate for three bottles consumed in a week but any amount consumed,that is the reason it is  program at the first instance. If it is meant to just solve the problem at hand, 6 lines of code can solve it.


4Always watch your statement in a public forum. If you know it vey well, all you could do is do the right thing rather than rubbishing someones effort ok?
Also point out where I made mistake in my calculation or better still paste your own version of the soultion.
1. Thank God you saw that, hope you correct it quickly

2. 3 functions would be better and much more understanding to the user you are presenting it to.

3. The naming you give your functions are obviously too long for me and makes your code looks ugly. You should have used comments for proper documentation of the function.

4. Hmm reserve my words.
ProgrammingRe: I Have Dis Question Dat I Really Need Help With C++ by jacob05(m): 12:02am On Aug 08, 2010
chukxy:
I would tackle this  challenge this way:

#include <stdio.h>
#include <conio.h>

  #define  CUBE_PER_CRATE  300
#define   TOTAL_NO_STUDENT 1500
int get_no_bottle_per_week();

int  calculate_no_crate_per_month(int no_bottle);

int calcutate_no_cube_per_month(int  no_crate);

void print_result(int cube_per_mont);



int main(void) {

     int no_bottle_per_student,no_crate_per_month,no_cube_per_month;

    no_bottle_per_student =get_no_bottle_per_week();
   no_crate_per_month =calculate_no_crate_per_month(no_bottle_per_student );
   no_cube_per_month =calcutate_no_cube_per_month( no_crate_per_month);
   print_result(no_cube_per_month );


   _getche();
return 0;
}
     int get_no_bottle_per_week(){
        int no_b;

      printf("\n Please enter the no  of bottle consumed by a student in a week \n"wink;
    scanf("%d",&no_b);
    while(no_b<0)
    {
        printf("\n Please enter a valid value \n"wink;

dead end for invalid answer
    }


return no_b;
}

  int  calculate_no_crate_per_month(int no_bottle)
{

     int no_crate, no_bottle_per_month;

    no_bottle_per_month= TOTAL_NO_STUDENT *no_bottle*4;
   no_crate =no_bottle_per_month/24;

  return  no_crate;

}


int calcutate_no_cube_per_month(int  no_crate) {

    return no_crate*CUBE_PER_CRATE  ;
  }


void print_result(int cube_per_mont)
{


printf("\n The no cube consumed in a month is %d \n",cube_per_mont);

}
    the ans using C programming is shown on the screen shot attached. It is assumed that  we hv 4 weeks in month(fact). You can relate to c++. I think what you to need to change is the input and output function.
your solution is obviously not efficient enough (you did too much calcutations not needed). You also made some mistakes in your calculations hope you correct them when you cross check your solution.
Christianity EtcRe: What's Your Favorite Bible Verse(s) ? by jacob05(m): 2:07pm On Aug 04, 2010
proverbs     PUT YOUR WORKS ONTO THY LORD, AND YOUR THOUGHT SHALL BE ESTABLISHED
WebmastersRe: Php Picture Uploader by jacob05(m): 8:03pm On Jul 17, 2010
Nice one
FoodRe: What Did You Eat Today? by jacob05(m): 7:44pm On Jul 17, 2010
Moje bread ati ewa (beans).
FoodRe: What Are You Eating/drinking Right Now? by jacob05(m): 7:41pm On Jul 17, 2010
Garri and epa.with cowbell milk(lol)
FoodRe: why do people hate pap (Ogi) so much? by jacob05(m): 7:36pm On Jul 17, 2010
y me:
<b>most people hate it because its too light</b>,just like water
and its popularly called admission food in naija
i love it with akara but will go for the custard anyday anytime cheesy
Love the AKARA side of it. Prefer it to Custard since it can also be taken with milk.
ProgrammingRe: Writing A Program To Process Students Result (using Basic) by jacob05(m): 11:20pm On Jun 20, 2010
More Info About the program. Did BASIC in My
First Semester in Poly.
ProgrammingRe: Python Programming by jacob05(op): 10:00pm On Jun 03, 2010
Wow!. These is wonderful . PYTHON in Nigeria !!. But so sad i won't be there(in school). But wish all the best. Hope Python would be fully recognised and be thought in Nigerian universities and polytechnics.
ProgrammingRe: Is There Any Statement Like C System''pause'' For Python Cos It Dissappears Immediately I run the co by jacob05(m): 6:24pm On May 31, 2010
hmm. python me love,
ProgrammingRe: Python Programming by jacob05(op): 10:03pm On May 27, 2010
@kla same here. any code or app to share?
ProgrammingRe: Python Programming by jacob05(op): 8:29am On Apr 20, 2010
Learn Python.And be forever happy with your programming career. Hi all. Longest time.
ProgrammingRe: A Comprehensive Tutorial On Vb 6.0 by jacob05(m): 10:02am On Jan 20, 2010
God bless Man!. learning BASIC in school, maybe it could be of help.
ProgrammingRe: Python Programming by jacob05(op): 1:18am On Jan 20, 2010
nice framework!. python on the move

1 2 3 4 5 6 7 8 ... 22 23 24 25 26 27 28 29 30 (of 37 pages)