Shayri.com  

Go Back   Shayri.com > Personal Messages > Chit-Chat & General Discussion Forum

Reply
 
Thread Tools Rate Thread Display Modes
not to be read
Old
  (#1)
kaafila
Jeena Isi ka Naam Hai
kaafila is on a distinguished road
 
Offline
Posts: 40
Join Date: Jul 2002
Location: Raanchi
Rep Power: 0
not to be read - 4th November 2002, 10:48 PM

#include <iostream.h>

int determine(int limit);

int main()
{
char food,grad;
int credit, room;

cout<< "How many credits are you taking? ";
cin >> credit;


if ((determine(credit))==1)
{
cout << "\nRegular(1) or air conditioned room(2)(Choose between 1 and 2)? ";
cin >> room;

cout << "Do you want campus food?(y/n)? ";
cin >> food;

cout <<"Are you going to graduate(y/n)? ";
cin >>grad;
}
else
{
cout <<"You need to have a valid amount of credits"; << endl;

return 0;
}

int determine(int limit)
{
if (limit<12 || limit>21)
return 0;
else
return 1;
}
int proper(r, f, g)
if (r==1 || r==2 && f==
--------------------------------------
#include <iostream.h>
#include <iomanip.h>

double salary(double, double);
void display(double, double, double);

int main()
{
double dollars,y1, y2, y3;

cout << "What is your current salary? ";
cin >> dollars;

y1=salary(dollars, .07);
y2=salary(y1, .06);
y3=salary(y2, .05);

display(y1, y2, y3);
return 0;
}

double salary(double money, double percent)
{
return ((money*percent) + money);
}

void display(double year1, double year2, double year3)
{
cout<< setiosflags(ios::fixed) << setprecision(2)
<<"\n\nYear:" << setw(16) <<"Salary:"
<<"\n-----" << setw(16) <<"-------"
<< "\nYear 1" << setw(9) <<"$"<< year1 <<"\nYear 2"
<<setw(9)<<"$"<<year2<<"\nYear 3"<<setw(9)
<<"$"<<year3 << endl;
}


Ishwar ho ya Allah sab insaan ka bhalla karte hain
Woh insaan hai jo ek doosre ka galla kaatte hain
  Send a message via Yahoo to kaafila Send a message via AIM to kaafila  
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Must read urdu sher from "Mirga Zhalib" 8-)... Read & enjoy.... Tausif shaikh Humourous Shayri 7 23rd June 2010 11:15 AM
A Must Read Story!!!spare Few Mins And Read It! farhana General Stories 8 25th December 2009 09:52 PM
Please Read it ! baba Aapki Shayri 2 6th January 2004 01:27 PM
Please Read it ! baba Shayri-e-Dard 2 5th January 2004 05:03 PM
Don't read it mohit Humourous Shayri 13 25th September 2003 05:33 PM



Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com