: error C2064: term does not evaluate to a function taking 1 arguments Please he
ID: 3656216 • Letter: #
Question
: error C2064: term does not evaluate to a function taking 1 arguments Please help me solve this error. #include #include #include #include using namespace std; int main () { int tsize; // size of tiles in inches int tiles= 0; int num_rooms; int w_inches; // inches of width of rooms int l_inches; // inches of length of rooms int w_feets; // feet of width of rooms int l_feets; // feet of length of rooms int total_w_inches; // total width of rooms in inches int total_l_inches; // total length of rooms in inches int len; // number of tiles needed for the length int wid; // number of tiles needed for the width int bo; // number of boxes cout << "Enter number of rooms" << endl; cin >> num_rooms; cout << "Enter size of tiles in inches" << endl; cin >> tsize; while ( num_rooms > 0 ) { cout << "Enter room width (feet and inches, separated by a space):" << endl; cin >> w_feets; cin >> w_inches; total_w_inches = w_inches + ( w_feets * 12 ); cout << "Enter room length (feet and inches, separated by a space):" << endl; cin >> l_feets; cin >> l_inches; total_l_inches = l_inches + ( l_feets * 12 ); wid = total_w_inches / tsize; if ( total_w_inches % tsize ) wid++; len = total_l_inches / tsize; if ( total_l_inches % tsize ) len++; tiles = tiles ( len + wid ); cout << "Room requires " << ( wid + len ) << " tiles" << endl; } cout << "Total tiles required is " << tiles << endl; cout << "Number of boxes needed is " << bo << endl; bo = tiles / 20; if ( tiles % 20) bo++; cout << "There will be " << bo * 20 - tiles << " tiles left" << endl; system ("pause"); return 0; }Explanation / Answer
#include using namespace std; int main () { int tsize; // size of tiles in inches int tiles= 0; int num_rooms; int w_inches; // inches of width of rooms int l_inches; // inches of length of rooms int w_feets; // feet of width of rooms int l_feets; // feet of length of rooms int total_w_inches; // total width of rooms in inches int total_l_inches; // total length of rooms in inches int len; // number of tiles needed for the length int wid; // number of tiles needed for the width int bo; // number of boxes cout w_inches; total_w_inches = w_inches + ( w_feets * 12 ); cout > l_inches; total_l_inches = l_inches + ( l_feets * 12 ); wid = total_w_inches / tsize; if ( total_w_inches % tsize ) wid++; len = total_l_inches / tsize; if ( total_l_inches % tsize ) len++; tiles = tiles /( len + wid ); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.