₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,107 members, 8,448,698 topics. Date: Monday, 20 July 2026 at 05:25 PM

Toggle theme

Raynold's Posts

Nairaland ForumRaynold's ProfileRaynold's Posts

1 2 3 4 5 6 7 8 9 10 (of 12 pages)

European Football (EPL, UEFA, La Liga)Re: Liverpool FC Fan Zone: 20 Times Champions of England! by raynold(m): 1:08pm On Dec 23, 2013
alekside: Wow!!! I won't believe this till I read same from a more credible source grin.

Oh! I've just gone through @indykaila's timeline. I think he's just an attention seeking tool.
lol he got some transfers right last window..
European Football (EPL, UEFA, La Liga)Re: Arsenal Fans Thread: The Red & White Army: 2025/2026 EPL Champions! by raynold(m): 9:28pm On Dec 22, 2013
LMAO

European Football (EPL, UEFA, La Liga)Re: Liverpool FC Fan Zone: 20 Times Champions of England! by raynold(m): 7:42pm On Dec 22, 2013
indykaila News @indykaila 2h
Breaking News: 43 million bid
submitted
for Diego Costa. More details coming
up.
You will be surprised.
WHAT DO U TINK ABT DIS TWEET
GUYS.
European Football (EPL, UEFA, La Liga)Re: Liverpool FC Fan Zone: 20 Times Champions of England! by raynold(m): 5:26pm On Dec 22, 2013
4llerbuntu: waaaoow

u mean these pple get thread for NL?
chineke.

resurrection miracle. suarez is a miracle worker cheesy
4ller just to let you know by tomorrow you will be sitting in 4th place..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:20pm On Dec 21, 2013
wisemania: https://m.facebook.com/aimedame?ref_component=mbasic_home_header&ref_page=%2Fwap%2Fprofile_timeline.php&refid=17
just added you
European Football (EPL, UEFA, La Liga)Re: Liverpool Vs Cardiff City (3 - 1) On 21st December 2013 by raynold(m): 2:38pm On Dec 21, 2013
mukina2: el rabbit cool
keep hating oo..
European Football (EPL, UEFA, La Liga)Re: Liverpool FC Fan Zone: 20 Times Champions of England! by raynold(m): 11:08am On Dec 21, 2013
hurricaneChris: If we can hang on this first/second position till January, we will smile come May.

With Suarez signing a new contract, the arrival of 3 new faces imminent in January (M'med Salah, Fernando Reges and Will Hughes). Don't forget Sturridge and Gerrard+Enrique..... Let's win the title sef.

Who agrees?
we all do my bro.. a win 2day, and a draw or lose for arsenal will see us top of the league
TV/MoviesRe: What Is The Scariest Movie You Have Ever Watched? by raynold(m): 10:10am On Dec 21, 2013
the conjuring.. for this year
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:33am On Dec 21, 2013
wisemania: I wish i kud get an oportunity to really study C inept.....@raynold dont worry,we're moving forward....i saw ur notification,buh am findin it diff to check my mail..
Add me up on fb #david joshua
just searched your name now to many David Joshua
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:24pm On Dec 20, 2013
ATM SERVICE PROGRAM GOT IT FROM FACEBOOK AWESOME STUV

# include<stdio.h>
#include<conio.h>
void main(void)
{
unsigned long amount=1000,deposit,withdraw;
int choice,pin=0,k=0;
char another='y';
while(pin!=1234)
{
clrscr();
gotoxy(30,25);
printf("Enter pin:" );
scanf("%d",&pin);
}
clrscr();
do
{
printf("********Welcome to ATM Service**************\n" );
printf("1. Check Balance\n" );
printf("2. Withdraw Cash\n" );
printf("3. Deposit Cash\n" );
printf("4. Quit\n"wink;
printf("*********************************************\n\n" );
printf("Enter your choice: " );
scanf("%d",&choice);
switch(choice)
{
case 1:
printf("\nYour Balance is Rs : %lu
",amount);
break;
case 2:
printf("\nEnter the amount towithdraw: " );
scanf("%lu",&withdraw);
if(withdraw%100!=0)
{
printf("\nPlease enteramount in multiples of 100" );
}else if(withdraw>(amount-500))
{
printf("\nInsufficient Funds" );
}else
{
amount=amount-withdraw;
printf("\n\nPlease collect cash" );
printf("\nYour balance is %lu",amount);
}
break;
case 3:
printf("\nEnter amount to deposit" );
scanf("%lu",&deposit);
amount=amount+deposit;
printf("Your balance is%lu",amount);
break;
case 4:
printf("\nThank you for using ATM" );
break;
default:
printf("\nInvalid Choice" );
}
printf("\n\n\nDo you want another
transaction?(y/n): " );
fflush(stdin);
scanf("%c",&another);
if(another=='n'||another=='N')
k=1;
}while(!k);
printf("\n\nHave a nice day" );
getch();
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 5:27pm On Dec 19, 2013
wisemania: http://mirror7.meh.or.id/Magazines/hakin9/Packtpub.Metasploit.Penetration.Testing.Cookbook.Jun.2012.pdf

http://adrem.ua.ac.be/sites/adrem.ua.ac.be/files/sqlinjbook.pdf

http://library.back2hack.cc/books/Hacking/Syngress_-_XSS_Attacks_[]_(2007)_en.pdf

http://mirror7.meh.or.id/ebooks/11_TheWeb%20Application%20Hackers%20Handbook.pdf

dizzzz books r basically about web hacks and security.....i hope it wont prevent u 4rm fulfillin ur Android/iOS dev ..... Stil av mor...bt download dizzzz first....i av on objective-c aswell.....objective-c codes r lovely and lighter dan java u kw.... grin
thanks.. developing an app is something I've always wanted to do nothing can put me off now.. I'll send you an email..don't want to derail the thread..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 4:41pm On Dec 19, 2013
wisemania: sure y not!
same here bro......am also in sch aswell, studyin pet engine(Uniben)...i also av d same vision as urs...dats y i opted for C in d first place....
Coz ive got som ebooks on hackin, embedded systems, webdesign and iOS development....
Durin my NDI(comp engineerin) days we wer introduced to BASIC programming durin d 1st semester, den c++ during d second semseter...i did preety well in a my programming courses....bt i av to face reality,...and let Cpp lie low for now...coz ill be nidin C greatly in all aspect of my endaevours....
Coz am still gona venture in2 iOS app dev(apple platform) and a huge amount of d knowledge of objecive-c programming language wud be highly needed...dats y am takin C very criously....so bro ull av 2 google it out..2 kw d importance of Cpp...so ull get prepared....*my 2 cents*....u be my broda sha....awon geologist aye!...olenu gan o
lol.. me I'm kind of leaning towards android definitely won't mind IOS development.. can you share some of your ebooks. especially the hacking one..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 3:40pm On Dec 19, 2013
need you guys help please.. I've been writing programs now for up to 3 months now for fun and now am just thinking of being a app/software developer. I was wondering if I can make something out of it(like a job etc).. currently studying geology in school..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 2:32pm On Dec 19, 2013
wisemania: thanks bro....u inspired it...
U alreedy kw dat "scanf("%d", order)" tells d compiler to prompt d user to enter one digit number...
Putting it in a while loop tells d compiler to kip on requesting for a digit number..so once a digit is entered, the reamaing nested "if" loop is being trigered.....
Bt if a non digit number is entered,...eg characters like (a-z,; . : - = @ etc) dat arnt numbers(dont fit into the scanf() digit format specifier"%d"wink den d inner if loops wont be executed....thus the program is terminated....
*dazall*
thanks.. am not really fun of while loop.. thanks for explaining it..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 11:57am On Dec 19, 2013
Leopantro: have got my eye on this thread for a while it says for beginners and i'm in the class below dumm.ies. was wondering if i could utilize any of the codes above in the android app "c4droid" to learn c++?
yes its kinda possible but note not all the codes here are c++.. it will be alot easier if u get the books tho like jumping into c++..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 11:18am On Dec 19, 2013
"while(scanf("%d", &order))"
this part kinda confused me a bit, had no idea it was possible
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 11:06am On Dec 19, 2013
wisemania: //soln in C to the menu program
//make una no vex say he long o
//bear with me grin
//code inspired by raynold

#include <stdio.h>
void menu(void);
int main()
{
int order, i;
i = 0;

printf("Welcome to xarm's restaurant.\n" );
printf("Buy four bottles of drinks and get an extra drink for FREE!\n" );

a: printf("enter a digit from one through seven(1 - 7) to place an order(enter a to quit)\n" );

menu(); //callin the menu
//function

printf("your order please: " );

while(scanf("%d", &order)){
if( order > 0){
i++;
if (order == 1)
printf("here is your bottle of Coca-cola\n" );

if (order == 2)
printf("here is your bottle of Fanta\n" );

if (order == 3)
printf("here is your bottle of Pepsi\n" );

if (order == 4)
printf("here is your bottle of Koko-Malt\n" );

if (order == 5)
printf("here is your bottle of Malta-Guiness\n" );

if (order == 6)
printf("here is your bottle of Amstel-Malta\n" );

if (order == 7){
c: printf("Invalid selection!\n" );
printf("\n" );
goto a;
}
}

else{
printf("Invalid selection" );
printf("\n" );
goto a;
}
printf("\n" );
printf("Your next order please(enter a to quit): " );
}
if (i > 0){

printf("Thanks alot for your patronage\n" );
printf("You ordered for %d botles, and that includes your free drink\n", i+1 );
printf("see the cashier on your way out to pick up your tab\n" );
goto b;
}
else{
printf("Please endeavour to patronize us when next you visit.We do love you!\n" );
goto d;
}
b: printf("We do hope you'd call back at our restaurant some other time.Bye for now we love you!\n" );

d: printf("Program terminated!\n" );
return 0;
}
void menu(void){

printf("1.Coca-cola(#70)\t2.Fanta(#70)\n3.Pepsi(#70)\t4.Koko-Malt(#100)\n5.Malta-Guiness(#120)\t6.Amstel-Malta(#120)\n7.Sprite(#70).\n" );
}
really nice program. love the way a customer is able to order more than one drinks unlike mine..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m):
i just finished writing this program in c
\\ restaurant menu program


#include<stdio.h>
#include<stdlib.h>

main()
{
int food;
int choice;
printf ("\t\t WELCOME TO AKPOS RESTAURANT\n" );
printf ("\t\t Menu for today\n" );

printf ("\t\t Enter category\n \t\t -1 Breakfast\n \t\t -2 lunch\n \t\t -3 dinner\n" );
scanf ("%d",&choice);
for (int num = 1; num <= 4; num++)
{

if ( choice == 1)
{
printf ("\v\t\t Breakfast Menu\n" );
printf ("\t\t -1 tea and bread only\n \t\t -2 tea, bread and egg\n \t\t -3 cup of coffee\n \t\t -4 fried chips with fish\n \t\t -5 fried chips with beef\n" );

scanf ("%d",&food);
if ( food == 1 || food == 2 || food == 3 || food == 4 || food == 5)
{
printf ("\t\t Thank you, your order has been recieved\n\t\t your breakfast will be served shortly\n" );
break;
}
if ( food >=6)
{
printf ( "\v\t\t invalid input try again\n" );
}
}
if ( choice == 2)
{
printf ("\v\t\t Lunch Menu\n" );
printf ("\t\t -1 rice and stew with beef \n \t\t -2 rice and stew with chicken\n \t\t -3 rice and stew with fish\n \t\t -4 garri and egusi soup\n \t\t -5 garri and okro soup\n" );
scanf ("%d",&food);
if ( food == 1 || food == 2 || food == 3 || food == 4 || food == 5)
{
printf ("\t\t Thank you, your order has been recieved\n\t\t your lunch will be served shortly\n" );
break;
}
if ( food >=6)
{
printf ( "\v\t\t invalid input try again\n" );
}
}
if ( choice == 3)
{
printf ("\v\t\t DINNER MENU\n" );
printf ("\t\t -1 fried yam and stew\n \t\t -2 fried yam and ketchup\n \t\t -3 fried potato chip with ketchup\n \t\t -4 spaggetti\n \t\t -5 macaroni\n" );
int food;
scanf ("%d",&food);
if ( food == 1 || food == 2 || food == 3 || food == 4 || food == 5)
{
printf ("\t\t Thank you, your order has been recieved\n\t\t your dinner will be served shortly\n" );
break;
}
if ( food >=6)
{
printf ( "\v\t\t invalid input try again\n" );
}
}


}
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 12:35pm On Dec 17, 2013
adelolaa: // solution to question 2 chapter five

//write a menu program that let the user
//select from a list of options, and if the
//input is not one of the options, reprint
//the list.

#include <iostream>
#include <string>
using namespace std;

int main()
{

string type = " ";

cout << "Welcome to xarm softdrinks shop" << endl << endl;

cout << "choose your order below! (a - n)" << endl << endl;
cout << "a - Coca-Cola \t\t b - Sprite" << endl;
cout << "c - Fanta \t\t d - Limca" << endl;
cout << "e - Mountain Dew \t f - Pepsi" << endl;
cout << "g - 7-Up \t\t h - Maltina" << endl;
cout << "i - Mirinda \t\t j - Malta Guiness \t" << endl;
cout << "k - Malt \t\t l - Amstel Malta \t" << endl;
cout << "m - maltina" << endl << endl;

cout << "Your order: ";

getline (cin, type);

while ((type != "a" ) || (type != "b" ) || (type != "c" ) || (type != "d" ) || (type != "e" ) || (type != "f" ) || (type != "g" ) || (type != "h" ) || (type != "i" ) || (type != "j" ) || (type != "k" ) || (type != "l" ) || (type != "m" ) )
{
cout << endl;

if ((type == "a" ) || (type == "b" ) || (type == "c" ) || (type == "d" ) || (type == "e" ) || (type == "f" ) || (type == "g" ) || (type == "h" ) || (type == "i" ) || (type == "j" ) || (type == "k" ) || (type == "l" ) || (type == "m" ) )

{

cout << "Thanks! i will order that for you!" << endl;
break;

}

cout << endl;

cout << "Invalid order! " << endl << endl;
cout << "Choose from a - m only " << endl << endl;

cout << "a - Coca-Cola \t\t b - Sprite" << endl;
cout << "c - Fanta \t\t d - Limca" << endl;
cout << "e - Mountain Dew \t f - Pepsi" << endl;
cout << "g - 7-Up \t\t h - Maltina" << endl;
cout << "i - Mirinda \t\t j - Malta Guiness \t" << endl;
cout << "k - Malt \t\t l - Amstel Malta \t" << endl;
cout << "m - maltina" << endl << endl;

cout << "Your order again: ";

cin >> type;



}

//done

}

bug fixed
nice..
I'll try writting another
European Football (EPL, UEFA, La Liga)Re: Arsenal Fans Thread: The Red & White Army: 2025/2026 EPL Champions! by raynold(m): 6:49pm On Dec 15, 2013
4ller oo.. where is my friend.. up Liverpool
European Football (EPL, UEFA, La Liga)Re: Tottenham Vs Liverpool (0 - 5) On 15th December 2013 by raynold(m): 5:41pm On Dec 15, 2013
goal hendo
European Football (EPL, UEFA, La Liga)Re: Tottenham Vs Liverpool (0 - 5) On 15th December 2013 by raynold(m): 5:21pm On Dec 15, 2013
mod ooo lfc winning
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 4:31pm On Dec 15, 2013
wisemania: sur boss...
U can remove:
#define TWENTY 20 from d program, and use just "20" 4ur test in d if stat...
And also d pow() function ...u sure can use just "num * num"
........
//Soln in C to Q 6--using a "do while " loop.

#include <stdio.h>
int main()
{
int num, i;
i = 0;
num = 0;
printf("numbers squares\n" );

do{
printf("%2d %10d", num, num * num) ;
i++, num++;
}
while (i < 20) ;
return 0;
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 2:36pm On Dec 15, 2013
wisemania: //Soln in c to Q 6--Square program

#include <stdio.h>
#include <math.h> //include d math header file, so as to invoke d pow() function

#define TWENTY 20 // sybolic
constant
int main()
{

int num, counter;

printf("this program prints the squares of the first 20 numbers(0-19)\n"wink;

printf("numbers | squares\n"wink;

for (counter = 0, num = 0 ; counter < TWENTY; counter++, num++)
printf("%2d %12d\n", num, pow(num, 2));

return 0;
}
nice.. any other to do this??
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 12:31pm On Dec 15, 2013
wisemania: @raynold, its better u just stick to one lang,if its c ,den let it be, if its cpp den let it be....coz i kw u wudnt like me to com here creating awearness dat i kw html,css,javascript,c,cpp....
I kud aswell ryt all d programs in js,c and cpp if i so wish,bt it wudnt be a good idea.....i beg!
Ur codes pure sha....nize wrk....
lol.. not like that o, a guy posted he only knows C here so am just trying to like solve the questions for those that are only into c programming my guy no vex o.. I'll only post in c++ from now.. am actually planning to stick to one programing lang, don't knw which yet.. thanks trying my best..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 11:54am On Dec 15, 2013
adelolaa: thank you all. I will post my solution to question 2 and 3 dis nite. question 1 and 4 is solve by u
thanks mate.. really want to see how u did your number 3 and I don't understand question 6 and 7
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 9:43am On Dec 15, 2013
number 1 in while loop for both c and c++


#include <stdio.h>
main()
{
int num=1;
int beer=0;
while (num <= 99)
{
num++;
beer++;
printf (" %d bottle of beer\n",beer);
}
}


in c++

#include <iostream>
main()
{
int num=1;
int beer=0;
while (num <= 99)
{
num++;
beer++;
cout<< beer<< "bottle of beer\n";
}
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 9:31am On Dec 15, 2013
answer to question 1 in c++
please note I've only compiled the program in c and its working well if any error kindly lemme know

#include <iostream>
using namespace std;
main()
{
int num;
int beer=0;
for( num =1; num <=99; num++)
{
beer++;
cout<< beer<< "bottles of beer\n";
}
}

answer to question number 1 in c
working fine


#include <stdio.h>
main()
{
int num;
int beer=0;
for( num =1; num <=99; num++)
{
beer++;
printf (" %d bottle of beer\n",beer);
}
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m):
number 4 in c++
i really hope no errors in this one, my laptop is a bit faulty can't compile c++ for now

#include <iostream>
using namespace std;
main()
{
int password;
int num;
for ( num =1; num <=3; num++)
{
cout<< " \t\t\t\v\v please enter password : ";
cin>> password;
if (password == 1234)
{
cout<< " \t\t\t\v\v login successful\n";
break;
}
if (password != 1234)
{
cout<< " \t\t\t\v\v incorect password TRY AGAIN!\n";
}
if ( num == 2)
{
cout<< "\t\t\t\v\vWARNING:: you have one(1) last attem\n\t\t\t\t\n";
}
if (num == 3)
{
cout<< "\t\t\t \v\vsorry you entered wrong passwords\n \t\t\t in all three attempts\n";
}
}
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:10am On Dec 15, 2013
here is number 4 in c, I wrote it I think 3 days back.. I'll post in c++ later


#include <stdio.h>
main()
{
int password;
int num;
for ( num =1; num <=3; num++)
{
printf (" \t\t\t\v\v please enter password : " );
scanf ("%d",&password);
if (password == 1234)
{
printf (" \t\t\t\v\v login successful\n" );
break;
}
if (password != 1234)
{
printf ( " \t\t\t\v\v incorect password TRY AGAIN!\n" );
}
if ( num == 2)
{
printf ("\t\t\t\v\vWARNING:: you have one(1) last attem\n\t\t\t\t\n" );
}
if (num == 3)
{
printf ("\t\t\t \v\vsorry you entered wrong passwords\n \t\t\tin all three attempts\n" );
}
}
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:03am On Dec 15, 2013
adelolaa: join me to solve this seven questions this week



Assignment for chapter five (while loop, for loop, do-while loop)

HOD: ALEX ALLAIN

STUDENT: XARMZON

COURSE: JUMPING INTO C++


Q1: write a program that prints out then entire lyrics to a full rendition of "99 bottles of beer"

Q2: write a menu program that let the user select from a list of options, and if the input is not one of the options, reprint the list.

Q3: write a program that compute a running sum of inputs from the user, terminate when the gives an input of zero (0)

Q4: write a password prompt that give a user only a certain number of password entry attempts, so that the user cannot easily write a password cracker.

Q5: try writing each practise problem with each kind of loop, notice which loops work well for each kind problem.

Q6: write a program that displays first 20 square numbers.

Q7: write a program that provides the option tallying up the result of a poll with 3 possible values. First input to the program is the poll question; the next three input are the possible answers. The first answer is indicated by 1, the second by 2, the third by 3, the answers are tailed until a zero (0) is entered. The program should then show the results of the poll try making a bar graph that show the results properly scale to fit on your screen no matter how many results were entered.

Good luck!!!!!!
I'll start 1 and 2 this morning
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by raynold(m): 7:00am On Dec 15, 2013
adelolaa: there is so many error in ur codes. av corrected it though . eg. nothing like endln and u forgot to put end ( " ) quote for some string.





here is d corrected one



#include<iostream>
using namespace std;
int main()
{
int a, b, c, num;
int choice;
cout<< "\t\t\t welcom choose your operation\n";
for ( num = 1; num <= 7; num++)
{
cout<< "\t\t\t -1 addition\n \t\t\t -2 substraction\n \t\t\t -3 multipication\n";
cout<< "\t\t\t -4 exit\n ";
cin>> choice;
if (choice == 1)
{
cout<< "enter first value :";
cin>> a;
cout<< "enter second value :";
cin>> b;
c = a+b;
cout<< " addition is" << c<<endl;
}
if (choice == 2)
{
cout<< "enter first value :";
cin >> a;
cout<< "enter second value :";
cin >> b;
c = a - b;
cout<< " the subtraction is" << c<<endl;
}
if (choice == 3)
{
cout<< "enter first value :";
cin>> a;
cout<< "enter second value :";
cin>> b;
c = a * b;
cout<< " the multiplication is" << c<<endl;
}
if (choice == 4)
{
cout<< "\t\t\t thanks for using mini calcultor bye\n";
break;
}
if ( choice >= 5)
{
cout<< "\t\t\t invalid choice try again\n";
}
}
}
thanks bro..

1 2 3 4 5 6 7 8 9 10 (of 12 pages)