₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,329,534 members, 8,441,099 topics. Date: Wednesday, 08 July 2026 at 03:49 AM

Toggle theme

Adelolaa's Posts

Nairaland ForumAdelolaa's ProfileAdelolaa's Posts

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

RomanceRe: Why Are You Still Single? by adelolaa(m): 4:05am On Dec 29, 2013
still waiting for d right owner grin
PhonesRe: Applications On Your Phone That Does Amazing Things by adelolaa(m): 11:05pm On Dec 28, 2013
ganex: pl which app is de best for battery saver.
DX toolbox
PhonesRe: Applications On Your Phone That Does Amazing Things by adelolaa(m): 10:17pm On Dec 28, 2013
cycamera work grin

PhonesRe: Applications On Your Phone That Does Amazing Things by adelolaa(m): 12:29am On Dec 28, 2013
c4droid, cc tools, droidEdit, etc..
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 3:01pm On Dec 27, 2013
/* write a program that ask the user to
enter his or her age. then display the
age in months */

#include <iostream>
using namespace std;

void age_in_month(int);

int main()
{

int age;
cout << "Enter your age: ";
cin >> age;

age_in_month(age);


}

void age_in_month(int initial)
{
int month = initial * 12;

cout << initial << " year(s) of age(s) is " << month << " months";

}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 3:00pm On Dec 27, 2013
quadrangle: here is my code.
//Program: checkbook.cpp
//This program updates a checkbook
#include <iostream>
#include <iomanip>

using namespace std;

int main ()
{
char trans_type;
double start_bal, trans_amt, end_bal;
//Module for getting data
cout << "Enter your starting balance and press <Enter>" <<endl;
cin >> start_bal;
cout << "Enter your starting balance and press <Enter>" <<endl;
cin >> trans_amt;
cout << "Enter your trans_type 'W' (withdrawal) or 'D' (Deposit) and press <Enter>" <<endl;
cin >> trans_type;

// Perform computation
if(start_bal == 'w')
{
end_bal = start_bal - trans_amt;
}
else
{
end_bal = start_bal + trans_amt;
}
//Print result
cout << "Starting balance is " << start_bal << endl;
cout << "Transaction amount is " << trans_amt << setw(2) << trans_type << endl;
cout << "Ending balance is " << end_bal << endl;
}
nice work
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 11:10am On Dec 25, 2013
Kennybix: @ade, can you handle structures? You can use it to 'hold' fractions, and pass it as an argument to functions. It can even be used as a return type!

struct fraction {
int numerator;
int denominator;
};

fraction add(fraction a, fraction b)
{
fraction result;
result.denominator = a.denominator * b.denominator;

result.numerator= (a.numerator * b.denominator) + (b.numerator *a.denominator) ;
return result
}
thanks. I will use class
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 10:53pm On Dec 23, 2013
working on calculator4.cpp

what new:

more math functions
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 10:51pm On Dec 23, 2013
Kennybix: @adelolaa, you're running a nice thread o. I'm also a beginner, a lazy one though. Let's help each other out. A task for me pls
u welcome but don't be lazy oooo grin
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 7:22pm On Dec 23, 2013
// calculator3.cpp
// update to calculator 2:: here
// is loop calculator
// this small calculator program
// created by xarm™


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


void calculator_funct (double first_number, double second_number, string operation_type);
void add_number(double x, double y);
void multipl_number(double x, double y);
void subtract_number(double x, double y);
void divide_number(double x, double y);
void invalid_input();
void wrong_denominator();
void re_used();




int main()
{
double first_number;
double second_number;
string operation_type;


cout << "Enter the first number(numerator): ";
cin >> first_number;
cout << endl << endl;
cout << "Enter the second number(denominator): ";
cin >> second_number;
cout << endl << endl;
cout << "Enter the operation type(+,-,*,/): ";
cin >> operation_type;


calculator_funct (first_number, second_number, operation_type);
re_used();

}
void calculator_funct (double first_number, double second_number, string operation_type)
{

if (operation_type == "/" )
{

if(second_number == 0)

{
wrong_denominator();

}
else if (second_number !=0)

{

divide_number(first_number, second_number);
}
}

else if (operation_type == "+" )

{
add_number(first_number, second_number);

}
else if (operation_type == "-" )
{

subtract_number(first_number, second_number);
}

else if (operation_type == "*" )

{

multipl_number(first_number, second_number);

}

else if ((operation_type != "/" ) || (operation_type != "+" )
|| (operation_type != "-" ) || (operation_type != "*" ) )
{

invalid_input();

}




}

void add_number(double x, double y)
{
double result = x + y;

cout <<endl << endl << "Additon of the two numbers is: " << result;

}



void multipl_number(double x, double y)
{
double result = x * y;

cout <<endl << endl << "Multiplication of the two numbers is: " << result;

}



void subtract_number(double x, double y)
{
double result = x - y;

cout << endl << endl << "Subtraction of the two numbers is: " << result;

}


void divide_number(double x, double y)

{
double result = x / y;

cout << endl << endl << "Division of the two numbers is: " << result;

}

void invalid_input()
{

cout << endl << endl <<"Invalid input" << endl;

}

void wrong_denominator()
{
cout << endl << endl << "undefined! denominator can not be zero" << endl;
}

void re_used()
{

char re_use;
double first_number;
double second_number;
string operation_type;



cout << endl << endl << "Enter (y) to use again or (n) to quit: ";
cin >> re_use;
cout << endl << endl;

while(re_use != 'n')
{

if (re_use == 'n')
{
cout << "Thank you for using my calculator";
break;
}
cout << endl;
cout << "Enter the first number again (numerator): ";
cin >> first_number;
cout << endl << endl;
cout << "Enter the second number again(denominator): ";
cin >> second_number;
cout << endl << endl;
cout << "Enter the operation type again (+,-,*,/): ";
cin >> operation_type;


calculator_funct (first_number, second_number, operation_type);

cout << endl << endl << "Enter (y) to use again or (n) to quit: ";
cin >> re_use;
cout << endl << endl;

}


cout << "thank you for using this calculator" << endl;


}


/** xarm™ Project © Dec. 2013 **/
PhonesRe: Dear Tecno , Thanks But Your Phones Are Crap! by adelolaa(m): 10:12pm On Dec 20, 2013
just passing by with my surulere++ sha. #team_Tecno_m3


visit this for young c++ programmer https://www.nairaland.com/1536652/c-beginner-discussion-room-drop/3#20359305
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 6:33pm On Dec 20, 2013
// calculator2.cpp
// update to first calculator program
// this small calculator program
// created by xarm™


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


void calculator_funct (double first_number, double second_number, string operation_type);
void add_number(double x, double y);
void multipl_number(double x, double y);
void subtract_number(double x, double y);
void divide_number(double x, double y);
void invalid_input();
void wrong_denominator();




int main()
{
double first_number;
double second_number;
string operation_type;

cout << "Enter the first number(denominator): ";
cin >> first_number;
cout << endl << endl;
cout << "Enter the second number(denominator): ";
cin >> second_number;
cout << endl << endl;
cout << "Enter the operation type(+,-,*,/): ";
cin >> operation_type;


calculator_funct (first_number, second_number, operation_type);



}

void calculator_funct (double first_number, double second_number, string operation_type)
{
if (operation_type == "/" )
{

if(second_number == 0)

{
wrong_denominator();

}
else if (second_number !=0)

{

divide_number(first_number, second_number);
}
}

else if (operation_type == "+" )

{
add_number(first_number, second_number);

}
else if (operation_type == "-" )
{

subtract_number(first_number, second_number);
}

else if (operation_type == "*" )

{

multipl_number(first_number, second_number);

}

else if ((operation_type != "/" ) || (operation_type != "+" )
|| (operation_type != "-" ) || (operation_type != "*" ) )
{

invalid_input();

}




}

void add_number(double x, double y)
{
double result = x + y;

cout <<endl << endl << "Additon of the two numbers is: " << result;

}



void multipl_number(double x, double y)
{
double result = x * y;

cout <<endl << endl << "Multiplication of the two numbers is: " << result;

}



void subtract_number(double x, double y)
{
double result = x - y;

cout << endl << endl << "Subtraction of the two numbers is: " << result;

}


void divide_number(double x, double y)

{
double result = x / y;

cout << endl << endl << "Division of the two numbers is: " << result;

}

void invalid_input()
{

cout << endl << endl <<"Invalid input" << endl;

}

void wrong_denominator()
{
cout << endl << endl << "undefined! denominator can not be zero" << endl;
}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 5:08pm On Dec 20, 2013
// calculator.cpp

// this small calculator program
// created by xarm™


#include <iostream> // needed for input and output
#include <string> // needed for string input
using namespace std;


double calculator_funct (double first_number, double second_number, string operation_type); // declare calculator function

int main()
{
double first_number; // declare variable for numerator
double second_number; // declare variable for denominator
string operation_type; // declare variable for opration type

cout << "welome to xarm™ Calculator" << endl << endl << endl; //print out welcome note
cout << "Enter the first number(numerator): "; // ask for user first number
cin >> first_number; // assign user value to this variable
cout << "Enter the second number(denominator): "; // ask user for second value
cin >> second_number; // assign user second value to this variable
cout << "Enter the operation type(+,-,*,/): "; // ask for user operation type
cin >> operation_type; // assign user operation type to this variable


double answer = calculator_funct (first_number, second_number, operation_type); //calling calculator function

cout << "Your answer is: " << answer << endl; //print out the user answer

}

double calculator_funct (double first_number, double second_number, string operation_type) //defination of calculator function
{
if (operation_type == "/" ) // testing if operation type is division
{

if(second_number == 0) // testing user second number

{
return 0; //if second is zero. print this

}
else if (second_number !=0) // testing if operation type is not zero

{

return (first_number / second_number); //print out division of the both numbers
}
}

else if (operation_type == "+" ) // testing if operation type is plus

{
return (first_number + second_number); // print out if operation type is plus

}
else if (operation_type == "-" ) //testing if operation type is minus
{

return (first_number - second_number); // print this if condition meet
}

else if (operation_type == "*" ) // testing if user operation type is mult.

{

return (first_number * second_number); // print out if condition meet

}

// testing if user input wrong operation type

else if ((operation_type != "/" ) || (operation_type != "+" )
|| (operation_type != "-" ) || (operation_type != "*" ) )
{

return 0; // print this of condition meet

}


}


/******* END OF THE PROJECT. XARM™ © Dec. 2013 *******/
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op):
// Assignment::::: c++

// A red seed will grow into a flower
// when planted in soil temperatures above
// 75 degrees. Otherwise it will grow into
// a mushroom. Assuming the temperature meets
// the condtion for growing flower, planting
// seed in dry soil will produce dandelion
// and planting the red seed in wet soil will
// produce sunflower.



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

int main()
{

int temperature;
string soil_type;

cout << "Enter the soil temprature" << endl;
cin >> temperature;

if (temperature < 75)
{
cout << "Mushroom will grow" << endl;
}
else if (temperature > 75)

{
cout << "Enter the soil type (dry or wet)" << endl;
cin >> soil_type;

if (soil_type == "dry" )

{
cout << " Dandelion will grow" << endl;

}
if (soil_type == "wet" )

{

cout << "Sunflower will grow" << endl;

}




}

}

// update to the first one.....
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 3:01pm On Dec 19, 2013
wisemania: ill strongly adise you get dis book, just 8.1mb....am currently using the C version....

http://techedu.cu.cc/Programming/C++/Stephen%20Prata%20-%20C++%20Primer%20Plus,%206th%20Edition%20(2012).pdf

d link abv is broken..try dis
http://www.google.com/xhtml?q=C%20%20%20primer%20plus%28%36th%20edition%29%2cfiletype%3apdf&client=ms-opera_mb_no&channel=bh
thanks
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 7:40pm On Dec 18, 2013
raynold: 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 launch\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 Luanch 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 launch 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 breakfast will be served shortly\n" );
break;
}
if ( food >=6)
{
printf ( "\v\t\t invalid input try again\n" );
}
}


}
}
nice work. time to move on to chapter six
RomanceRe: Improve Your Dating Game Here.! See Inside. by adelolaa(m): 10:42pm On Dec 17, 2013
xxxtedyxxx: Nice one..u av done a great job. Dats gud. Saturday is stil quite far from now. So don't just hang in dere cos she said yes. Keep up wit her, till den..till dat very day. Check up wit calls n messages, wen chatting..u can talk abt d fun tins u r gona do togeda..n stuff like dat. Just make her more interested in d date..dat way..she won't flake wen saturday comes...

Friday nite..u can chat, and know d exact time u r guys r gona meet.

"So what time shud I expecting u dear"

Don't say.."Are u still coming, or are we still seeing"
thanks
RomanceRe: Improve Your Dating Game Here.! See Inside. by adelolaa(m): 9:51pm On Dec 17, 2013
@ Op

thanks. I asked the girl out to meet her again and she said yes. so we are meeting next Saturday. please I need some advice wink wink
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 5:21pm On Dec 17, 2013
//solution to Q3 chapter 5

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


#include <iostream>
using namespace std;

int main()
{
long firstInput;
long secondInput;


cout << "Enter your numbers! (0 for both to quit)" << endl << endl;
cout << "First number ";
cin >> firstInput;
cout << "Second number " ;
cin >> secondInput;

cout << "the sum of the both numbers is " << firstInput + secondInput << endl;

while ((firstInput && secondInput) != 0)
{
if ((firstInput && secondInput) == 0 )
{
cout << "Thank you!" << endl;
break;
}

cout << "enter another numbers ( 0 for both to quit)" << endl;
cout << "First number: ";
cin >> firstInput;
cout << "Second number: ";
cin >> secondInput;
cout << "the sum of the numbers is " << firstInput + secondInput << endl;


}

//accomplished

}
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 1:40pm On Dec 17, 2013
raynold: nice..
I'll try writting another
thanks. I will drop solution to question 2 dis nite
RomanceRe: Improve Your Dating Game Here.! See Inside. by adelolaa(m): 10:59am On Dec 17, 2013
xxxtedyxxx: U need to switch ...and use diversion. Wen a girl is saying no no no..don't pressure her again. U don't av to get a yes from her before u can start acting like her bf. Forget abt her reply..and just u care, and make sure she is investing too, she will invest, wen she automatically start seeing dat caring bf potential in U.

So don't pressure her abt her reply again, use teasing a lot, give her a nickname, wen u see her pics, or sth, tell her ow cute she is, how kissable her lips ow, and ow u appreciate her dress sense, tell her..." U look sweet, I just cant stop tinking abt a sexy hot gown on u, u looking amazing sweet...on a date wit me..with all d smiles on ur face, and ur hair looking so long n cute"

Just examples tho..u shud get where am goin now.
thanks
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 10:54am On Dec 17, 2013
screenshots

ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 10:41am On Dec 17, 2013
// 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
RomanceRe: Improve Your Dating Game Here.! See Inside. by adelolaa(m): 10:23am On Dec 17, 2013
@Op. please help
I met this girl on whatsapp group. so I asked her "I will like to meet". and we meet two weeks later, so I told her what is on mind. but she keep saying no up till now since October. though I normally run out of what to say and some little shyness in me. please I need help. I used some of the lesson here this morning for her (Morning sweet, hope u slept and had a happy wake) and I see some sign.
RomanceRe: Improve Your Dating Game Here.! See Inside. by adelolaa(m): 8:51am On Dec 17, 2013
DailyNews: ...and the girls/ladies are also reading all these open tactics to be used on themhuhgringrin

Poster, u shud have invited guys only into a secret room na for a private sessiongrin of course malaria keep changing form to counter the latest preventive measuresmiley

And there is one adage that says: when the hunter learns to shoot without missing, the bird will also learn to fly without perchinggringrin

So the fact that girls and ladies are also allowed to read all these tactics will soon make it inactive, which means: be yourself and u will meet your kind of girl someday at the right time, except u wanna be a player keeping numerous girls, dunno.

Nice thread all the same, well done @Opsmiley
maybe someone should create whatsapp group
PhonesRe: Tecno M7 Specifications And Features by adelolaa(m): 8:04am On Dec 17, 2013
please add me to m7 whatsapp group 08141161177
Jokes EtcRe: University Chick Statistics - Check That Of Your School Here by adelolaa(op): 9:41pm On Dec 16, 2013
davuvid: lols..@uniport babes

80% also don't spend d weekend in skul
grin
Jokes EtcRe: University Chick Statistics - Check That Of Your School Here by adelolaa(op): 8:57pm On Dec 16, 2013
add yours grin
Jokes EtcUniversity Chick Statistics - Check That Of Your School Here by adelolaa(op): 8:56pm On Dec 16, 2013
UNIVERSITY CHICK STATISTICS - CHECK THAT OF YOUR SCHOOL HERE

* 85% of FUTA chicks dont know what 'Sharwama' means.

* 90% of UNILAG chicks hasaborted a minimum of 5times before their final year.

* Only 20% of Nwafor Orizu College of edu. girls have actually seen an aeroplane.

* 60% of IMT chicks can open their legs for you if you offer them okpa and coke.

* 77% of Fed. Poly Oko chicks have never seen a BB before. (no wonder)

* 96 of LASU babes wear one pant for three months

* 88% of ESUT chicks have yam legs

* All the chicks in Covenant university hide their phones inside their panties to avoid detention

* 79% of DELSU chicks have orgasms as soon as they hear gun shots

* 98% of UNN chicks have hair on their chests and Nipples

* 80% of UNIPORT chicks carry their panties in their handbag cos they dont know where they will spend the night

* 90% of FUTO chicks look like Weird MC

* 71% of ABSU chicks wear second hand panties(I don witness this one)

* 67% of UNIJOS babes howl like witches during sex

* 90% of UNILAG chicks don't wear pant at all

* 74% of UNIILORIN chicks guzzle sperm like cold beer

* 80% of ANSU chicks don't sleep in their hostels during weekends.

* No UNICAL female student is a virgin.

* 70% of UNIBEN chicks live with their school boyfriends

* 60% of UNAAB girls have bushy vag*na

* 80% of UI girls have body odour

* 90% Of UNIOSUN Girls can't boast of N4000 in their Bank Account - Broke Ass.

True or False?
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op):
my q2 solution is ready but I need to fix so bugs their. coz I keep getting run time error.
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op): 11:03am On Dec 15, 2013
thank you all. I will post my solution to question 2 and 3 dis nite. question 1 and 4 is solve by u
ProgrammingRe: C++ Beginner Discussion Room: Drop Your Codes by adelolaa(op):
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!

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