Question
Asked by:
jls7707
jls7707
Rating : No Rating
Questions Asked: 3
Tutorials Posted: 0
 

$30.00 Need help with c++ Solution

Q:
What is the best solution for this program?
 
Attachments:
project.doc (30K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
chetan2009
chetan2009
Rating (146): A
Questions Asked: 0
Tutorials Posted: 464, earned $2,832.42
 

$30.00 Compiled, Tested and Self Explanatory program

  • This tutorial hasn't been purchased yet.
  • Posted on Aug. 25, 2008 at 12:21:48AM
A:
Preview: ... {<br> cout<<"Size "<<size[shirt]<<" enter the number of t-shirts for team "<<(team+1)<<":";<br> cin>>inventory[shirt][team];<br> }<br> }<br><br> //Calculate sum for each size<br> for(shirt=0;shirt<4;shirt++) {<br> for(team=0;team<6;team++) {<br> sum_size[shirt]+=inventory[shirt][team];<br> }<br> }<br><br> ...

The full tutorial is about 68 words long plus attachments.

Attachments:
CHE_SF.zip (0K)
Posted by:
cxxliu
cxxliu
Rating (5): A
Questions Asked: 0
Tutorials Posted: 31, earned $100.78
 

$25.00 Well-documented C++ code, fully tested

  • This tutorial hasn't been purchased yet.
  • Posted on Aug 26, 2008 at 11:08:46PM
A:
Preview: ... ize[size] = total; // record the result in the array<br> }<br><br> ///////// Compute the total inventory for each team in all sizes<br> // for each team<br> for (int team = 0; team < NUM_TEAMS; team++) {<br> int total = 0; // initialize<br> // sum over all sizes<br> for (int size = 0; size < NUM_SIZES; size++) {<br> total = total + quantity[size][team];<br> }<br> total_for_each_team[team] = total; // record the result in the array<br> }<br><br> ///////// Compute the total inventory<br> total_inventory = 0; // initialize<br> // sum over all teams<br> for (int team = 0; team < NUM_TEAMS; team++) {<br> total_inventory = total_inventory + total_for_each_team[team];<br> }<br><br> //////////////////// OUTPUT /////////////////////<br><br> // Print title<br> cout << " Inventory Report\\\\n";<br> // Print table header<br> cout << "Size Team\\\\n" ...

The full tutorial is about 599 words long plus attachments.

Attachments:
main.cpp (4K)
Posted by:
modulo51
modulo51
Rating (110): A-
Questions Asked: 1
Tutorials Posted: 353, earned $2,117.64
 

$27.00 T-ShirtInventory.cpp, ScreenShot, & UseNotes

  • This tutorial was purchased 1 time and rated A+ by students like you.
  • Posted on Aug 28, 2008 at 8:11:09PM
A:
Preview: ... <cstdlib><br>#include <iostream><br>#include <string><br>#include <iomanip><br>using namespace std;<br><br>int ROWS = 4;<br>int COLS = 6;<br>int tShirts[4][6];<br>string sizeLbl[] = {" Small "," Medium"," Large "," XLarge"};<br>// Get inputs:<br>void getInputs(){<br> for(int r =0; r<ROWS; r++ ){<br> for( int c=0; c<COLS; c++ ){<br> cout<<sizeLbl[r]<<" size, "<<<br> "enter number of shirts for Team "<<(c+1)<<": ";<br> ...

The full tutorial is about 544 words long plus attachments.

Attachments:
T-ShirtInventory.cpp (2K)
ScreenShot.JPG (96K) (Preview)
UseNotes.txt (1K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty