I'm took an fundamental of C++ .
Here is my code, could you please help me to point out the error .
Thanks
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <string>
using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::fixed;
using std::setprecision;
int main()
{
int unit_of_desks = 0;
int Length = 0;
int Width = 0;
int Type_of_Wood;
int drawers = 0;
int Base_Cost;
int Area;
int Cost_per_drawers;
int Total_cost;
int Total_cost_all_desks;
char Mahogany = 'M';
char Oaks = 'O';
char Regular = 'R';
cout << "Input how many drawers: " ;
cin >> drawers ;
cout << "Input the Unit of desks: " ;
cin >> unit_of_desks ;
cout << "Input the Length: " ;
cin >> Length ;
cout << "Input the Width: " ;
cin >> Width ;
cout << "Input the Type of Wood: " ;
cin >> Type_of_Wood ;
Base_Cost = 250 + 0 ;
Area = Length * Width ;
if (drawers >0)
Cost_per_drawers = drawers *30;
else
if (Area >750 )
Total_cost =Base_Cost + 750;
else
if (Type_of_Wood = 'M' )
Total_cost = Total_cost + 150;
else
if (Type_of_Wood = 'O')
Total_cost = Total_cost + 125;
else
if (Type_of_Wood = 'R')
Total_cost = Total_cost ;
Total_cost = Total_cost + Cost_per_drawers;
Total_cost_all_desks = Total_cost * unit_of_desks;
cout << fixed <<setprecision(2) << endl;
cout << "Total amount:$ " << Total_cost_all_desks << endl;
system ("pause");
return 0;
}