You are on page 1of 3

/*************************************************

Name:MUHAMMAD HAFIDZUDIN BIN MOHD NOR HISHAM;


Date:30/3/19;
Filename:Assignment m/s 97;
*************************************************/
#include<iostream>
#include<math.h>
using namespace std;
int main()
{
int code,quantity;
float total,price,discount;
cout<<"\n\tPuteri Collection\n";
cout<<"\n\tCode"<<"\tTypes Of Clothes"<<"\t\tPrice(RM)\n";
cout<<"\n\t1"<<"\tBaju Kurung Tradisional"<<"\t\t210.90\n";
cout<<"\n\t2"<<"\tBaju Kurung Moden"<<"\t\t249.90\n";
cout<<"\n\t3"<<"\tKebaya"<<"\t\t\t\t310.90\n";
cout<<"\n\t4"<<"\tJubah"<<"\t\t\t\t250.90\n";
cout<<"_____________________________________________________________________
______________________________________\n";

cout<<"\nPlease Enter The Code:\t";


cin>>code;
cout<<"Quantity Of Clothes:\t";
cin>>quantity;

if(code==1)
{
cout<<"\nTypes Of Clothes:";
cout<<" Baju Kurung Tradisional";
price=210.90*quantity;
cout<<"\nThe Price is(RM):\t";
cout<<price;
}
else if(code==2)
{
cout<<"\nTypes Of Clothes:";
cout<<" Baju Kurung Moden";
price=249.90*quantity;
cout<<"\nThe Price is(RM):\t";
cout<<price;
}
else if(code==3)
{
cout<<"\nTypes Of Clothes:";
cout<<" Kebaya";
price=310.90*quantity;
cout<<"\nThe Price is(RM):\t";
cout<<price;
}
else if(code==4)
{
cout<<"\nTypes Of Clothes:";
cout<<" Jubah";
price=250.90*quantity;
cout<<"\nThe Price is(RM):\t";
cout<<price;
}
else
{
cout<<"The code is invalid";
}
if(price>=500)
{
discount=price*1/10;
cout<<"\nThe Discount is(RM):\t";
cout<<discount;
total= price - discount;
cout<<"\nTotal Price is(RM):\t";
cout<<total;
}
cout<<"\n\nThank You....Please Come Again";
return 0;
}

You might also like