No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
This is what I have thus far. [code] # include <iostream> using namespace std; double miles( double miles, double gallons, double mpg); int main () { const int ARRAYSIZE = 10; // fixed array with 10 items double miles[ARRAYSIZE]={240.5, 300.0, 189.6, 310.6, 280.7, 216.9, 199.4, 160.3, 177.4, 192.3}; double gallons[ARRAYSIZE]={10.3, … | |
I have the code written, compiling and no errors, I just need it to write to a file now. This is the code I have. Is the header piece correct? [code] #include <iostream> #include <string> #include <fstream> #include <cstdlib> using std::ofstream; using namespace std; class finalgrade { char firstName[20]; //to … | |
I can't seem to get it working properly. Here's what I have thus far. #include <string> #include <iostream> class Student_t { char firstName[20]; //to hold the first name char lastName[20]; //to hold the last name int exam1; //to hold Exam-1-Grade int exam2; //to hold Exam-2-Grade int homeworkavg; //to hold Homework-Average … | |
I have an assignment of the following. Create a class named Fractions having two integer data members named for a fraction’s numerator and denominator. The Class’s default constructor should provide both data members with default values of 1 if no explicit user initialization is provided. The constructor must also prohibit … |
The End.