Become a part of the TranceAddict community!Frequently Asked Questions - Please read this if you haven'tSearch the forums
TranceAddict Forums > Main Forums > Chill Out Room > Calling all C++ nerds :)
Pages (3): [1] 2 3 »   Last Thread   Next Thread
Share
Author
Thread    Post A Reply
PSi
Come to Daddy



Registered: Feb 2001
Location: Fort McMurray, AB
Exclamation Calling all C++ nerds :)

Guys plz help me out with this lab...i need help desperately because i have a low brain cell count so please HELP


This lab is a matter of life and death for me!!!!!


http://www2.mtroyal.ab.ca/~cjefferi...ssign/lab_3.htm

Old Post Oct-12-2001 21:12  Canada
Click Here to See the Profile for PSi Click here to Send PSi a Private Message Add PSi to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Eugene
EURO-Hard-Trance-Addict



Registered: May 2001
Location: Maryland USA

I refuse to help you because you just called me a "nerd"


___________________

Download all my EuroHardTrance traxx & learn more about me ("Kompulsor"):
www.kompulsor.com

Old Post Oct-12-2001 21:21  Russia
Click Here to See the Profile for Eugene Click here to Send Eugene a Private Message Visit Eugene's homepage! Add Eugene to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Fraggle
trancEaddict Neverland



Registered: Mar 2001
Location: Sydney, AUSTRALIA

hmm...well i flunked c++!!!

heheehhe


anyway...prolly some &^%$%# recursive solution will do it very simply


___________________
Peace 'n Love! • Mikey • Sydney, Australia.

Old Post Oct-13-2001 04:20  Australia
Click Here to See the Profile for Fraggle Click here to Send Fraggle a Private Message Visit Fraggle's homepage! Add Fraggle to your buddy list Report this Post Reply w/Quote Edit/Delete Message
SmackdowN
Supreme tranceaddict



Registered: Jan 2001
Location: here


"I'll be back"

Old Post Oct-13-2001 07:13  Madagascar
Click Here to See the Profile for SmackdowN Click here to Send SmackdowN a Private Message Add SmackdowN to your buddy list Report this Post Reply w/Quote Edit/Delete Message
hypronix
[presence.of.absence]



Registered: May 2001
Location: in the heart of a Flaming June

dude, I think I can help U with part A, I mean it is pretty easy. but I don't understand everything the lab asks for, I can write a program that does the shit (to make the two means)
the thing is that I have an example version of C++ (Borland C++ Lite) so U wouldn't be able to use the .exe file.
plus, a lil C++ practice wouldn't kill... tell me if U want me to start working on it (but I can start it on Monday only)


___________________
Kultified TrancEr

Old Post Oct-13-2001 07:22  Romania
Click Here to See the Profile for hypronix Click here to Send hypronix a Private Message Add hypronix to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Tranzmit
AUTA Ninja Worryer



Registered: May 2001
Location: Melbourne

I know everything about pc's (I'm a technician) but nothing about programming, sorry. I never could be bothered with it as it wasn't my interest, i was always fascinated by CPU archtecture and chipset design and 3D API's and GPU's instead LOL!!!

Sorry about that!


___________________

Visit the secret Ninja site!! here
https://www.facebook.com/jon.hellyer

Old Post Oct-14-2001 01:11  Australia
Click Here to See the Profile for Tranzmit Click here to Send Tranzmit a Private Message Visit Tranzmit's homepage! Add Tranzmit to your buddy list Report this Post Reply w/Quote Edit/Delete Message
trancaholic
Danish Prophet of Doom



Registered: Oct 2000
Location: Aalborg

Please don't take this the wrong way, but...
The problem seem rather trivial. If you have a working compiler environment I can't see how you can fail at this. If, however, you have no knowledge of how to do simple arithmetics such as sqrt(int), and you're already giving up at this challenge, then you're probably in the wrong class, and further pursuit of this career will result in frustration and inferiority-problems.
You're entitled to deem me a stupid prejudist, but judging from the difficulty level of this problem, I guess you're at your first year of programming experience and if you think this is an overwhelming problem there's other aspects of computer science that might appeal more to you.

Though, if you have other reasons for solving this problem, than passing some programming-course, I'll be more than happy to help you out, but if this is your motive, you really ought to solve it yourself.

Old Post Oct-14-2001 02:42  Denmark
Click Here to See the Profile for trancaholic Click here to Send trancaholic a Private Message Add trancaholic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
phasedout
Senior tranceaddict



Registered: Apr 2001
Location: Santa Barbara, CA

for the first part of inputing the numbers into an array, i would use a do while

do {
blahblahblah
}while(x!=999);

but of course there are a whole set of different ways to go about that first part

Old Post Oct-14-2001 23:19  United States
Click Here to See the Profile for phasedout Click here to Send phasedout a Private Message Add phasedout to your buddy list Report this Post Reply w/Quote Edit/Delete Message
jzmhed1
Supreme tranceaddict



Registered: Feb 2001
Location: SANDOG, CA

quote:
Originally posted by trancaholic
Please don't take this the wrong way, but...
The problem seem rather trivial. If you have a working compiler environment I can't see how you can fail at this. If, however, you have no knowledge of how to do simple arithmetics such as sqrt(int), and you're already giving up at this challenge, then you're probably in the wrong class, and further pursuit of this career will result in frustration and inferiority-problems.
You're entitled to deem me a stupid prejudist, but judging from the difficulty level of this problem, I guess you're at your first year of programming experience and if you think this is an overwhelming problem there's other aspects of computer science that might appeal more to you.

Though, if you have other reasons for solving this problem, than passing some programming-course, I'll be more than happy to help you out, but if this is your motive, you really ought to solve it yourself.


dont listen to this guy, djpsi. i bombed c++ the first time i took it with a D. then i took it at a community college and got an A+. the moral of the story: It's all about how good the teacher is.

anyway, here you go. learn from it, godammit.

#include
#include
#include

int main()
{
int n = 0;
double x;
double h = 0;
double hsum = 0;
double gmean;
double hmean;
double sum = 0;

while(x!=999){
// if ( x==999)
// break;
cout << "Enter a number ( 999 to end )\n";
cin >> x;
sum+= x;

h = 1.0 / x;
hsum+= h;

if( x != 999)
n++;

}
gmean = pow( sum - 999, 1.0/n );
hmean = n / hsum;

cout << "The geometric mean is " << setprecision(2)
<< setiosflags( ios::fixed | ios::showpoint ) << gmean << endl;
cout << "The harmonic mean is " << setprecision(2)
<< setiosflags( ios::fixed | ios::showpoint ) << hmean << endl;

Old Post Oct-15-2001 05:39  Philippines
Click Here to See the Profile for jzmhed1 Click here to Send jzmhed1 a Private Message Add jzmhed1 to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Coup
Retired



Registered: May 2001
Location: England, UK

*head explodes*

Old Post Oct-15-2001 06:10  England
Click Here to See the Profile for Coup Click here to Send Coup a Private Message Add Coup to your buddy list Report this Post Reply w/Quote Edit/Delete Message
trancaholic
Danish Prophet of Doom



Registered: Oct 2000
Location: Aalborg

quote:
Originally posted by jzmhed1


dont listen to this guy, djpsi. i bombed c++ the first time i took it with a D. then i took it at a community college and got an A+. the moral of the story: It's all about how good the teacher is.

anyway, here you go. learn from it, godammit.

Source here...



IMO the gain from being handed full solutions is no match for putting things together for yourself from small examples in your textbook/teaching material. It's like peeing your pants when it's freezing: It will provide you with warmth for a while, but suddenly it will make you more cold than before. Again IMO.

Old Post Oct-15-2001 08:20  Denmark
Click Here to See the Profile for trancaholic Click here to Send trancaholic a Private Message Add trancaholic to your buddy list Report this Post Reply w/Quote Edit/Delete Message
Cru54d3r
got caffeine?



Registered: Feb 2001
Location: UK

quote:
It's like peeing your pants when it's freezing: It will provide you with warmth for a while, but suddenly it will make you more cold than before. Again IMO.

HAhah! Nice1

Crusader

Old Post Oct-15-2001 11:46  England
Click Here to See the Profile for Cru54d3r Click here to Send Cru54d3r a Private Message Add Cru54d3r to your buddy list Report this Post Reply w/Quote Edit/Delete Message

TranceAddict Forums > Main Forums > Chill Out Room > Calling all C++ nerds :)
Post New Thread    Post A Reply

Pages (3): [1] 2 3 »  
Last Thread   Next Thread
Click here to listen to the sample!Pause playbackName That Tune! [2010] [1]

Click here to listen to the sample!Pause playbackPF Project - "Choose Life (Tour de Force Remix)" [2003]

Show Printable Version | Subscribe to this Thread
Forum Jump:

All times are GMT. The time now is 10:12.

Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
HTML code is ON
vB code is ON
[IMG] code is ON
 
Search this Thread:

 
Contact Us - return to tranceaddict

Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
Support TA!