a million thanks to u all guys...
Here r some program i hv wrote..and i am stuck.....LoneWolf071 said:we can't write the program for you... if you give us what you already have, we can help you with a problem, but we cannot just make the program...
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
double ISDN ;
char title;
float price;
int continues;
char ans;
cout<<"---Welcome To Billy's Bookshop---\n";
cout<<"Please enter the ISDN: ";
cin>>ISDN;
if (ISDN==12)
{
cout<<"The Title is C++ How to Program"<<endl<<"The Price is RM 108.90"<<endl;
}
if (ISDN==98)
{
cout<<"The Title is Introduction to Java Programming"<<endl<<"The Price is RM 89.60"<<endl;
}
else
{
cout<<"Not Valid"<<endl;
}
do
{
cout<< "Do you want to continue (Y/N)?\n";
cout<< "You must type a 'Y' or an 'N'.\n";
cin >> ans;
}
while((ans !='Y')&&(ans !='N')&&(ans !='y')&&(ans !='n'));
return 0;
}