Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,154,559 members, 7,823,457 topics. Date: Friday, 10 May 2024 at 10:26 AM

Temas's Posts

Nairaland Forum / Temas's Profile / Temas's Posts

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

Programming / Re: Caeser Cipher by Temas: 8:31am On Feb 23, 2013
lordZOUGA:
cin is not a function and white-space is not a null terminator

hey, i would appreciate when you criticize and give a concrete advise.not criticize to fell like a god
writing "cin" like a function is a typo mistake.
typical nigerian mentality
Programming / Re: Caeser Cipher by Temas: 12:17am On Feb 23, 2013
thanks javanian

finally resolved it. the issue has nothing to do with isalpha(); after stuffing the net to resolve this ,
i came across another syntax for getting input from the user
"gets()" .i just need to read more on when to use scanf() and gets().
the get() reads white space character in between strings while scanf sees it as a null terminator(from my observation).
or better still you can enlighten me on this if you have an idea.
am beginning to appreciate c++ more cos with "cin()" i wont have this problem.

really appreciate your time
Programming / Re: Caeser Cipher by Temas: 10:45pm On Feb 22, 2013
Thanks for your response, am using the isalpha to make sure the input or text are all alphabet. Will try ur suggestion and get back.
Programming / Re: Caeser Cipher by Temas: 9:19pm On Feb 22, 2013
// cesar cipher in c
// code by Temas84
#include <stdio.h>
#include <string.h>
#define SIZE 1000


int main()
{ int a,k;

printf("CAESAR CIPHER CODED BY TEMAS\n\n"wink;

char ourinput[SIZE];

int count=0;

printf("Please Enter Your text to be Encrypted Or Decrypted\n\n"wink;

scanf("%s",&ourinput);

printf("Please Choose 1 for Encrypting OR 2 for Decrypting\n\n"wink;

scanf("%d",&a);
printf("please Enter the number of shift you want\n"wink;
scanf("%d",&k);

switch (a)
{
case 1:
for(count=0;count<SIZE;count++)

{ int i;
if (isalpha(ourinput[count]))
{
ourinput[count]= tolower(ourinput[count]);

for (i=0;i<k;i++)
{
if (ourinput[count]=='z')
ourinput[count]='a';

else
ourinput[count]++;
}

}


}
printf("The encrypted data is %s", ourinput);
exit(0);
break;

case 2:
for(count=0;count<SIZE;count++)

{ int i;

if (isalpha(ourinput[count]))
{
ourinput[count]= tolower(ourinput[count]);

for (i=0;i<k;i++)
{
if (ourinput[count]=='a')
ourinput[count]='z';

else
ourinput[count]--;
}

}


}
printf("The Decrypted data is %s", ourinput);
exit(1);
break;


default:
printf("wrong selection\n"wink;
exit(3);
}

printf("The encrypted data is %s", ourinput);

getchar();
return 10;

}
Programming / Caeser Cipher by Temas: 7:29pm On Feb 22, 2013
hello house, i have a project am working on presently, its about using C language to encrypt data. the code has been written and working but my problem is this,

if i need to encrypt "how are you today" the program only takes the 1st string and encrypt it (how) and neglect the rest, but if
the strings are written together like this "howareyoutoday", the program will encrypt it perfectly. please C gurus in the house help!!!
Car Talk / Re: Car Falls Off 3rd Mainland Bridge Into The Lagoon by Temas: 1:55pm On Jan 26, 2013
oyibomoses: the pic i saw look like fisher men trying to cash fish or in a cash fish competition

but seriously!!!!! Seun needs to put up screening exercise for membership on this site.
Programming / Re: Don't Know Why This Simple Program Can't Work Well by Temas: 10:27pm On Jan 22, 2013
Movingcoil: #include <cstdlib>
#include <iostream>

using namespace std;
double weightInKilograms, heightInMeters, bMI; //variable declarations of height and weight

int main(int argc, char *argv[])
{
cout << "::::::::::: FROM THE DEPARTMENT OF HEALTH AND HUMAN SERVICES. :::::::::::::\n\n";
cout << " :::::::::::::: Body Mass Index (BMI) CALCULATOR. :::::::::::::::\n\n\n\n";

cout << "enter your weight in kilograms: ";//displays message to get weight
cin >> weightInKilograms;//gets the input for weight

cout << "\n";

cout << "enter your height in meters: ";//displays message to get height
cin >> heightInMeters;//gets the input for height

cout << "\n";

bMI = weightInKilograms / (heightInMeters * heightInMeters); //calculates the BMI

cout << "your weight in Kg is " << weightInKilograms << "kg \n" << endl;
cout << "your height in meters is " << heightInMeters << "m \n" << endl;
cout << "your body mass index is "<< bMI << endl;

if ( bMI < 18.5)
cout<<"you are underweight\n\n";

if ( 18.5 <= bMI && bMI == 24.9)
cout << "your BMI is normal\n";

if (25 >= bMI && bMI == 29.9)
cout << "you are overweight\n";

if ( bMI >= 30 )
cout << "you are obese!!\n";

cout << "::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::" << endl;
cout << "DISCLAIMER: Though this calculator is accurate according to the bmi calculation,\but it dosen't put to consideration your body build which may vary the initial\ gotten result. \n";
cout << "&&&&&&&&:::::::::: APP BUILT BY DIKACHI :::::::::::::&&&&&&&&\n" << endl;
system("PAUSE"wink;
return EXIT_SUCCESS;
}

//am stil a novice and am studying with the book, c++ how to program 8th edition. i just need corrections to why it is misbehaving



bro am a novice as well but this is the code in c language i hope it helps.
these are the mistakes i was able to see in your code.
1. An if ,else if statement is the best and for testing your conditions.
2.Then the statement should be in the format as shown in my code(i think)
3.float data type i think is the best cos u dealing with decimals here.
regards




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

float multi(float a,float b) // function prototype
{
float heightsquare;

heightsquare=a*b;

return heightsquare;

}

int main(int argc, char *argv[])
{

float weightInKilograms, heightInMeters, bMI;
float heightsquare;
printf("::::::::::: FROM THE DEPARTMENT OF HEALTH AND HUMAN SERVICES. :::::::::::::\n\n"wink;
printf(":::::::::::::: Body Mass Index (BMI) CALCULATOR. :::::::::::::::\n\n\n\n"wink,

printf("enter your weight in kilograms:"wink;
scanf("%f",&weightInKilograms);
printf("\n"wink;

printf("enter your height in meters:"wink;
scanf("%f",&heightInMeters);
printf("\n"wink;

heightsquare= multi(heightInMeters,heightInMeters);// function call
bMI = weightInKilograms / heightsquare;

printf("your weight in Kg is %.1fkg\n",weightInKilograms);

printf("your height in meters is %.1fm\n",heightInMeters);
printf("your height in square meters is %.1f\n",heightsquare);

printf("your body mass index is %.1f\n",bMI);


// testing conditions with if then else if

if ( bMI < 18.5)
{
printf("you are underweight\n\n"wink;
}

else if ( (bMI>=18.5) && (bMI <= 24.9))
{
printf("your BMI is normal\n"wink;
}

else if ((bMI>=25) && (bMI <= 29.9))
{
printf("you are overweight\n"wink;
}

else if ( bMI >= 30 )
{
printf("you are obese!!\n"wink;
}
printf("::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::\n" );

printf("DISCLAIMER: Though this calculator is accurate according to the bmi calculation\n"wink;

printf("but it dosen't put to consideration your body build which may vary the initial gotten result.\n"wink;

printf("&&&&&&&&:::::::::: APP BUILT BY DIKACHI :::::::::::::&&&&&&&&\n"wink;
getchar();
return 0;






}
Travel / Re: North Cyprus by Temas: 4:39pm On Jan 17, 2013
fados4sure:
Hw is life in North Cyprus? Like how much BTA will I come along with? I will be coming on Sunday


Life here is kool.very peaceful island...come with enough cash that can last u for year both for accomodation and feeding cos there is little or no job .schooling is great too if you are coming to EMU dnt knw for other sch. For the BTA I can't tell maybe $2000 should do the trick its only in MMA that u might be ask abt this......good luck happy landing
Travel / Re: North Cyprus by Temas: 3:37pm On Jan 17, 2013
9iteman: @WIP,please wht are d documents i need to go with,while goin for my interview at d turkish embassy.i got an admission into EMU, spring semester. Thanks
Best regards.
.
Bro congrat!!!! search for my post here using my username... I listed all the doc needed and also interview details with the consolar.its nt diffcult like other embassy though.. Schooling here is great.... Come with a lot of cash sha my two pence.
European Football (EPL, UEFA, La Liga) / Re: Guardiola Snubs Ronaldo's Handshake At Ballon d'Or Awards by Temas: 10:26pm On Jan 10, 2013
bigfat01: [size=15pt]O DEAR ...[/size]

Reason why i can blame Pep..... Ronald should have least show some respect in this pix.... medicine after death.. he deserved it

Travel / Re: North Cyprus by Temas: 7:28am On Dec 06, 2012
Chidexmania127: pjls some1 should please answer my questionl

my broda north cyprus is not where u rush come ooo... take ur time .. eat enough naiaj food... get enough dollas in ur pocket and come and enjoy ur studies here...
dnt fink u can meet up.. my own opinion though
Travel / Re: North Cyprus by Temas: 11:15pm On Nov 22, 2012
jraw: @wip,Greetins. Just wnt to know d chances of high scholarship 4 master in computer engineering in EMU,wen (B.eng-3.68 and diploma 3.85 both in computer engineering) r combined.Is it possble to stay back n hustle as I wouldn't want 2 come bak 2 Nigeria.

guy coming here for Msc com engine u wont regret.. am doing same course presently,..... like mr wip7 said this is not a place to hustle 100% studies
Religion / Re: Let's Talk About Sex (by Pastor E. A. Adeboye) by Temas: 8:42am On Oct 21, 2012
Ezeed: I love this!
Travel / Re: North Cyprus by Temas: 5:30am On Sep 12, 2012
wip7:

is not compulsory as NC immigration is not interested that you book roundtrip as a student but Immigration officials in Lagos or Abuja extort student with one way tickets. Also note that you can actually get refund for your other way. You will need to inform the traveling agent or Airline before you buy it and they will let you knoe the procedure. I havde done that alot of times tur Turkish Airline.

Wish you safe trip!



Good day sir, am already in trnc but having challenges with registration and accommodation!!!!! Pls will luv to meet u out of ur busy schedule. Kindly send ur name and personal phone number to temas842002@yahoo.com

Thankz
Education / Re: Ibadan Polytechnic 2012/2013 Session by Temas: 11:27pm On Sep 04, 2012
hello house, ma sister lost her pin but some1 from the school asked ha to check the status from the homepage i.e student login and we saw her name there!!! does that means she has been given admission? and how can we get another scratch card for the pin!! please help ooo omo yi ti pee ni ile oooo

@oga dotmond help me oooo
Education / Re: The Polytechnic, Ibadan 2012/2013 Admissions. ND/HND by Temas: 11:17pm On Sep 04, 2012
hello house, ma sister lost her pin but some1 from the school asked ha to check the status from the homepage i.e student login and we saw her name there!!! does that means she has been given admission? and how can we get another scratch card for the pin!! please help ooo omo yi ti pee ni ile oooo

@oga dotmond help me oooo
Travel / Re: North Cyprus by Temas: 3:28pm On Aug 23, 2012
evanscami: okay tnx,ll jst use ma aunt agent! Wen r u leavin?? Nd wen did u buy d ticket?


LEAVING 9TH SEPT.....YESTERDAY
Travel / Re: North Cyprus by Temas: 12:01pm On Aug 23, 2012
evanscami: hello Temas! Plz am a girl nt boy :-) thanks 4 d info,do u mean 1 xtra luggage is $150 or jst 1kg of d xces luggage?? have nt bought ma ticket yet so dnt kno hw much d ticket costs.since you went there,how much did u buy?? 4 d round trip,i fink its open 4 1yr!

sorry for the sex mixed up..lolz ok any extra kg apart from the 56kg will attract a fee of $150........got my ticket for 251k round-trip opened for one month but u can check with a guy here on the forum.....08155552510 he promised to get a cheap one for for 10k or thereabout less from 251k. u can call me on 08026158709
Travel / Re: North Cyprus by Temas: 7:50am On Aug 23, 2012
evanscami: @ mr wip and all that have travelld in turkish flight! Pls önly those that have travelld in turkish flight and are sure...how many kg do they accept for economy class of course..plss i need quick ans..how many kg do they accept for their luggages?? And how much do you think they will be collecting for like 2 additional luggages<pls estimation>?? Tnx all!


Bro I was at there office yesterday to book. U have 2luggage of 23kg each plus one have luggage of 10kg. Any addtional kg will cost you $150!!!

Please how much did u get ur ticket? One way or roundtrip and if round trip opened for how many mnths
Travel / Re: North Cyprus by Temas: 6:47pm On Aug 16, 2012
To God be the glory!!! Got my visa today. thanks to everybody on this forum that made it possible.
Travel / Re: North Cyprus by Temas: 10:36am On Aug 15, 2012
Omo no be small tin ooo
Went for the interview today..... This is for Msc student ooo
Got to the embassy 7am embassy opens by 9am
Appointment number doesn't really matter. its first com first serve
A guy collected my docs and arrange accordingly he also asked for the originals of my undergrad docs
Was called in by one of the security guys
Sat down inside waiting for my turn to meet the consular
Nw to the consular
Me....good am sir
Consular..good am
Consular..have ur sit
Me...thank you
Consular...can I have ur application.he meant my docs
Me...gave them to him
Consular...on wat purpose are u going to turkey
Me...studies sir
Consular....wat sch
Me..EMU
Consular.brought our a file checked my name the wrote sumtin on my visa applicatuon form.
How much did u pay
Me....$3000
Consular...wat are u going there to study
Me....msc physics option of bio medical optics
Consular...wic sch did u finish from here in nigeria and wat year

Me....university of lagos Akoka 2008
Consular..Can I see the original of ur university certificate?
Me...gave it to him
Consular....wats ur date of birth
Me...told him
Consular...wat dos ur father do
Me...lied ...civil servent...
Consular ...wic ministry...
Me ministry of environment...
Consular....can I have N10000 ur application fee?
Me gave it to him
Consular...ur application will be processed ,come back tomao for ur passport......end of story...will update here again how it goes tomao..hop it helps those that might be going next..if fact EMU candidate no get wahala...pardon me for any typo error
Travel / Re: North Cyprus by Temas: 6:22pm On Aug 13, 2012
Dbebo:
TURKEMBABUJA@GMAIL.COM

@blissbay, I fink its visa.turkembabuja@gmail.com
Travel / Re: North Cyprus by Temas: 6:55am On Jul 21, 2012
@oga wip, please how long does it take to get an appointment with the turkish embassy? Just applied yesterday. thanks
Travel / Re: North Cyprus by Temas: 7:10pm On Jul 14, 2012
wip7:

Your name is on number 7. Kindly apply for appointment at the Turkish embassy.
Travel / Re: North Cyprus by Temas: 7:09pm On Jul 14, 2012
wip7:

Your name is on number 7. Kindly apply for appointment at the Turkish embassy.


Thank you sir!!!
Travel / Re: North Cyprus by Temas: 4:58pm On Jul 14, 2012
wip7: FIRST BATCH OF NAMES HAS BEEN SENT TODAY TO TURKISH EMBASSY, EMU

WE have sent the names of all applicants that already paid their tuition fees and obtained their confirmation letters. The applicant can start applying for appointment After 15th July to Turkish Embassy. For those yet to make their payment, the last day for sending names to embassy is August 10th and any payment received after this day wont be send to embassy. For pre-arrival information, do not hesitate to contact us!


International center
EMU,skull4una@gmail.com


Thanks for the info sir !!! Been waiting for this for a long time. Kindly help me check if my name is included in the list sent. Asagunla Temitope
Travel / Re: Who Else Is Travelling To Cyprus By September by Temas: 4:33pm On Jul 08, 2012
Will be going to bro.still trying to gather my doc from my uncle as per sponsorship stuff.I might go to abuja towards ending of july.pls let me knw how it goes at the embassy.all the best.
Music/Radio / Usher And Chris Brown by Temas: 7:43am On Jun 12, 2012
Please house,who is the best dancer/steeper between usher and chris brown? This argument has been a thing of war between myself and my cousin.....for me its. Usher ol the way!!!!

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

(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. 52
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.