NEED HELP WITH PROGRAM!!!

Im making a program but I try to get the answer with tax am unable to. ANYONE HELP!!




#include<iostream>
#include<string>
using namespace std;
int main()
{
int uanswer,answer,telescope,telescopebdis, shuttle,shuttlebdis, star,starbdis, strength, answerbdis,answerafdis1,answerafdis2,answeraftax1,answeraftax2,item ;
double tax=.06,percent=10;
string state, name;

char (answer='y'||'Y') ;
cout<<"\t\tWelcome to the SYFY Store"<<endl;
cout<<"\tProduct\t\t\t\tPrice"<<endl;
cout<<"\tTelescope\t\t\t$100.00\n\tSpace Shuttle model\t\t$35.00\n\tStar Trek DVD\t\t\t$20.00\n";

cout<<"\n1. Every 6th Star Trek DVD is Free!\n2. Buy two or more space shuttle models for $30 each\n3. If your total is over $200.00 before tax, get 10% off your total"<<endl;
cout<<"\nPlease enter your name:";
cin>>name;
cin.sync();
cout<<"\nPlease enter your state "<< name<<":";
cin>>state;
cin.sync();

cout<<"\nHow many Telescopes would you like to purchase:";
cin>>telescope;
(telescopebdis=telescope*100);

cout<<"\nHow many space shuttle models would you like to purchase:";
cin>>shuttle;
(shuttlebdis=shuttle*35);

cout<<"\nHow many Star Trek DVD's would you like to purchase:";
cin>>star;
if((star+1)%6==0)
{

cout<<"Would you like to have a 6th DVD free(Please enetr a Y(yes) or a N(no)?\n";
cin>>uanswer;
if(uanswer=='Y'||'y')
{
(star++);
}
else
{
cout<<"Ok sounds good here is the rest of your order."<<endl;
(star--);
}
}
(starbdis=star*20);


//showing what they bought before discounts
cout<<"\n\nNumber of Items\t\tItem\t\tCost Before Discounts"<<endl;
cout<<telescope<<"\t\t\tTelescopes\t\t\t$"<<telescopebdis<<".00"<<endl;
cout<<shuttle<<"\t\t\tShuttles\t\t\t$"<<shuttlebdis<<".00"<<endl;
cout<<star<<"\t\t\tDVD's\t\t\t\t$"<<starbdis<<".00"<<endl;
(answerbdis=telescopebdis+shuttlebdis+starbdis);
cout<<"Your total before discounts is:$"<<answerbdis<<endl;
if(answerbdis>200)
{
cout<<"\n\nNumber of Items\t\tItem\t\tCost After Discounts"<<endl;
(answerafdis1=answerbdis/percent);
cout<<telescope<<"\t\t\tTelescopes\t\t\t$"<<telescopebdis<<".00"<<endl;
cout<<shuttle<<"\t\t\tShuttles\t\t\t$"<<shuttlebdis<<".00"<<endl;
cout<<star<<"\t\t\tDVD's\t\t\t\t$"<<starbdis<<".00"<<endl;
cout<<"Your total dicounts is:-$"<<answerafdis1<<".00\n"<<endl;
(answerafdis2=answerbdis-answerafdis1);

(answeraftax1=answerafdis2*tax);
(item=shuttle+star+telescope);

cout<<item<<"items\t\tTotal:\t\t$"<<answerafdis2<<".00"<<endl;
cout<<"\t\tTax:\t\t$"<<answeraftax1<<".00"<<endl;
(answeraftax2=answeraftax1+answerafdis2);
cout<<"\t\tTotal:\t\t$"<<answeraftax2<<".00"<<endl;
system("pause");
}


}
Use code tag. What is your problem?
Topic archived. No new replies allowed.