c++ is boring
.. cause the class i'm taking is so damn easy. i thought it would be more challenging:dunno: i'm working on this:
http://www.cs.uwm.edu/~cs153/homewor...signment_2.htm
i thought we were going to be makin video games or something in this class
[/rant]
http://www.cs.uwm.edu/~cs153/homewor...signment_2.htm
i thought we were going to be makin video games or something in this class

[/rant]
That IS really easy, although I can't remember specifically how to do it. I took C++ my freshman year in HS and I've forget it all. It looks more fun now that I know what half the stuff means, I'm going to take a few courses in college on it.
c++ is boring, but it really lets u use ur logic. i took it for a year, and it was boring. we made simple computer games and graphic programs. analyzing millions of lines of code isnt my thing. even thought it pays good money, i dunno how people take this booring job.
You think C++ is boring, try VAX Assembly sometime. It's an old programing language that does nothing for you. Want a structure, create the damn thing from scratch, memory block by memory block. I had to write a virtual network program with 7 nodes and my program was 57 printed pages in code.
__________________
Andy - Reinstated Hybrid Forum Moderator
'06 Subaru Legacy Spec B - Stock, for now
'98 Civic EX - CTR headlights and grill, Kosei K1's, for sale
'90 240SX - SR20DET that will never get installed, project car.
Andy - Reinstated Hybrid Forum Moderator
'06 Subaru Legacy Spec B - Stock, for now
'98 Civic EX - CTR headlights and grill, Kosei K1's, for sale
'90 240SX - SR20DET that will never get installed, project car.
well, this was actually interesting
it actually took me an hour to do
h:. i kept getting compiler errors. it turned out that i needed to include the <manip> thing at the top.
it actually took me an hour to do
h:. i kept getting compiler errors. it turned out that i needed to include the <manip> thing at the top.
# include <iomanip>
# include <iostream>
using namespace std;
int main () {
float counter;
float workers;
float wage;
float hours;
counter = 0;
cout << "How many workers?" << endl ;
cin >> workers ;
while ( counter < workers ) {
cout << "Hours worked by worker #" << setprecision (0) << fixed << counter + 1 << "?" << endl;
cin >> hours;
cout << "What is the wage of worker #" << counter + 1 << "?" << endl;
cin >> wage;
if ( hours <= 40)
cout << "The salary is $" << setprecision (2) << fixed << wage * hours << endl;
else
cout << "The salary is $" << setprecision (2) << fixed << (wage*40) + (hours - 40)*(wage*1.5) << endl;
counter += 1; }
return 0;
}
# include <iostream>
using namespace std;
int main () {
float counter;
float workers;
float wage;
float hours;
counter = 0;
cout << "How many workers?" << endl ;
cin >> workers ;
while ( counter < workers ) {
cout << "Hours worked by worker #" << setprecision (0) << fixed << counter + 1 << "?" << endl;
cin >> hours;
cout << "What is the wage of worker #" << counter + 1 << "?" << endl;
cin >> wage;
if ( hours <= 40)
cout << "The salary is $" << setprecision (2) << fixed << wage * hours << endl;
else
cout << "The salary is $" << setprecision (2) << fixed << (wage*40) + (hours - 40)*(wage*1.5) << endl;
counter += 1; }
return 0;
}


