Question
Asked by:
achne07
achne07
Rating (1): A+
Questions Asked: 549
Tutorials Posted: 12, earned $51.65
 

$35.00 C++ assignment

  • From Computer-Science: General-CS
  • Closed, but you can still post tutorials
  • Due on Mar. 31, 2009
  • Asked on Mar. 28, 2009 at 12:21:45AM
Q:
C++ assignment in the attached file.
 
Attachments:
C++ assignment.doc (38K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
Arunthathi
Arunthathi
Rating : No Rating
Questions Asked: 0
Tutorials Posted: 1, earned $28.70
 

$35.00 Basics of arrays tutorial

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Mar. 28, 2009 at 06:55:31AM
A:
Preview: ... nderstand the conce ...

The full tutorial is about 17 words long plus attachments.

Attachments:
Basic Arrays.docx (200K) (Preview)
Posted by:
rainman
rainman
Rating (40): A+
Questions Asked: 2
Tutorials Posted: 174, earned $906.64
 

$25.00 Fully Commented C++ Code For Array Tutorial, Compiles and Works.

  • This tutorial was purchased 1 time and hasn't been rated yet.
  • Posted on Mar. 28, 2009 at 11:16:42AM
A:
Preview: ... n array of doubles, and an<br>//integer called fill by reference. The file for the input stream is opened in main<br>//and passed to the function. The array, data, is used to store all of the values from<br>//the file. The integer, fill, is passed by reference because we want to use the value<br>//the function sets it equal to because that is how many elements are in the data array.<br>void read_data(ifstream &datafile, double data[], int &fill)<br>{<br> //Lets display the input as we are reading it so we can see if how we are<br> //reading the file is correct.<br> cout << "INPUT" << endl;<br><br> //set the number of elements in the array to zero<br> fill = 0;<br><br> //while there is still stuff in the datafile to be read and 100 elements haven't been<br> //read yet store the input in the array use the integer, fill, to determine where it is<br> //placed. Increment fill by 1 so that the next pice of data is stored in the next place<br> //in the data array.<br> while (((datafile >> data[fill]) != NULL) && (fill <= 100))<br> {<br> cout << data[fill] << endl;<br> ++fill;<br> }<br><br> cout << endl << endl;<br><br>}<br><br>//This function writes the finalized data without the outliers to a texfile.<br>//The out file stream has already been created and passed to this function.<br>//We write the values in the data array to the file. The integer fill tells<br>//us how many values the array contains.<br>void write_data(ofstream &datafile, const double data[], int fill)<br>{<br> //lets display the output as we are writing it to check for correctness.<br> ...

The full tutorial is about 1651 words long plus attachments.

Attachments:
main.cpp (7K) (Preview)
Posted by:
tutor_ram
tutor_ram
Rating (24): A-
Questions Asked: 0
Tutorials Posted: 120, earned $407.29
 

$35.00 Completely solved - thoroughly tested.

  • This tutorial hasn't been purchased yet.
  • Posted on Mar. 29, 2009 at 02:18:24AM
A:
Preview: ... free to get back to me if you have any queries in a ...

The full tutorial is about 47 words long plus attachments.

Attachments:
C++ assignment.doc (36K) (Preview)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty