Duki 552 Nearly a Posting Virtuoso

you get a gallon of coffee


i put in a clothing store

Duki 552 Nearly a Posting Virtuoso

you get a dragon

i put in a quarter

Duki 552 Nearly a Posting Virtuoso

boiling, tar layers saved desolated sailor MONKIES, ruthlessly.

Duki 552 Nearly a Posting Virtuoso

yeap yeap

Duki 552 Nearly a Posting Virtuoso

When I was about that age I applied everywhere, and even got told by the assit. mngr that she would tell the owner about me... And i went back like 6 times asking about the position... every time being told not to worry about it. they hired someone else, a guy who was actually younger than I. I didn't know what to think... i had applied to about 8 places none of which showing interest...

But God had a better plan, and not a month or so later I got an interview doing IT work for $8/hr starting. How much better was that than selling ice cream or clothes? I was truly blessed, but didn't know it until the time had come...

hang out... I'm sure God has something in store for you.

Duki 552 Nearly a Posting Virtuoso

you get a coke

i put in the color white

Duki 552 Nearly a Posting Virtuoso

blood -> vampire

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

Not sure if this has been tried yet, but this is a game I play with my mom and brother over email...

Very simple, just scramble up a word, and the first person to guess the word gets to go next.

note that it won't go as fast as the others, you spammers :P

Rules:

* Word length can not excede 10 letters
* Only one word at a time
* Wait for confirmation before posting your scrambled word
* If someone guesses a word, and it is not confirmed within 24 hours, it is automatically their turn.
* Be resonible... Don't try to stop the game =P
* Please bold your scrambled word
* Refrain from using purals (i.e., shoes instead of shoe)
* Check the spelling of your words!
* Make sure you have included every letter!

Hope this works our good.

I'll start:


niprtre

Duki 552 Nearly a Posting Virtuoso

boiling, tar layers SAVED shrivelled sailor children, ruthlessly.

Duki 552 Nearly a Posting Virtuoso

you get a physics book

i put in dental insurance

Duki 552 Nearly a Posting Virtuoso

you get a brass ignot ;)

i put in an ice crystal

Duki 552 Nearly a Posting Virtuoso

You get a paper snow-flake.

I put in powerade.

mattyd commented: great avatar-- firefox vs. IE ;) +3
Duki 552 Nearly a Posting Virtuoso

you get tickets to the Bahamas


i put in a blade of grass

Duki 552 Nearly a Posting Virtuoso

you get a t-shirt

i put in some misc. computer parts

Duki 552 Nearly a Posting Virtuoso

My suggestion would be to get certified... often companies consider that over a degree if it's specific to the task at hand. If you can teach yourself enough to get certified in Java, C++, C#... you'll be in good hands. Even a certification in MCSD?

Java:
http://www.sun.com/training/certification/java/index.xml

MCSD:
http://www.microsoft.com/learning/mcp/mcsd/requirementsdotnet.mspx

note: I'm not a programmer... i'm sure you'll get more in depth replies soon enough.
note2: Do not attempt a boot camp in order to gain certifications faster... they are useless. Boot camps work well for people who are a month or so from taking the test and want to brush up... They are quite expensive too. =/

Duki 552 Nearly a Posting Virtuoso

you get garlic cloves


i put in Bill Gates

Duki 552 Nearly a Posting Virtuoso

Alright, not a problem at all... I was just curious.

It doesn't bug me enough to not support DaniWeb =p

Thanks for the reply...

Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I'm not trying to complain at all... I love this forum... I come here at least 5 times a day.

I was just wondering if the new feature (not sure how new it is) with the key words, popping up ads when the cursor is hovered over them is adjustable? I don't expect the ads to be removed, as I support DaniWeb and understand the need for finances, this being a free forum.

Though I was curious if there was an adjustment that could be made to maybe make the adds wait for a could seconds before popping up? It seems like if I just accidentally throw my mouse over it while scrolling a thread, I get popups that block what I'm reading have to click out of them. Could a setting be made that forced the adds to wait for 2 seconds or something, to make sure that yes the reader is interested in seeing more information?

Or do I have this entire concept mixed up?
-Caleb :cheesy:

ps) Or is intelliTXT just a feature in Firefox that I can disable?

Duki 552 Nearly a Posting Virtuoso

Also, check if there is something in the router that says Enable RIP_1 or something to that effect... a wap I recently worked on had two drop down boxes with information pertaining to RIP.

RIP will automatically talk with other routers on your network, and periodically recieve updated information from them...

if i'm off key here, let me know...

Duki 552 Nearly a Posting Virtuoso

Just curious, why would you need T1 for 4 computers?

No, you do not need sever2003... you only need an extra workstation to act as the file server... you can just put XP on it and share the non OS drives that will be used for storage.
A workgroup can (smoothly) manage ~10 workstations.

External hard drives will work fine for your situation...
Tip: purchase two drives and switch them out every night; take one home at the end of the day every day. This will prevent the loss of data if the building burns down or something of the sort.

Not really sure what you mean by pseudo server, but i'm assuming you're refering to a workstation/server. This is perfect for what you've described... a small business network. And you are right, you don't need to route the internet through the "pseudo server", you could simply use a router w/a builtin switch.

You can remote in from anywhere using http://www.gotomypc.com


hope this helps...

Duki 552 Nearly a Posting Virtuoso

heheh, thanks!

btw: I was using a computer at school, which has "show file extensions" turned off. So I was looking for a inData.txt file but the file was actually called inData.txt.txt

silly computers.. >.<

Duki 552 Nearly a Posting Virtuoso

dang i missed the break; statements


I also moved the infile >> to under the while () statement... everything is working fine now.


Joe: Now I understand what you were trying to tell me earlier lol. Thanks for the help


thanks everyone for the help... this one is solved :D

Duki 552 Nearly a Posting Virtuoso

Ok, I took a break, and I've tried again; this time doing some pseduocode first.

Here's what I've got:

#include <iostream>
#include <iomanip>
#include <fstream>

using namespace std;

int main()
{
    const double INT_RATE = 0.05;
    const double MIN_BAL = 1000.00;
    const double SVC_CHG = 25.00;

    int totWd = 0 ;
    int totDep = 0 ;
    int acctNo ;

    double begBal ;
    double bal ;
    double wdAmt = 0.0 ;
    double depAmt = 0.0 ;
    double xactAmt ;
    double intPaid = 0.0;

    char xactCode ;

    bool svcChgd = false ;

    ifstream infile ;
    ofstream outfile ;

    infile.open("inData.txt") ;
    if (!infile)
    {
        cout << "!! INVALID INPUT FILE !!" << endl;
        return 1;
    }
    outfile.open ("outData.txt") ;

    infile >> acctNo >> begBal ;
    bal = begBal ;
    infile >> xactCode >> xactAmt ;

    while (infile)
    {
        switch (xactCode)
        {
        case 'D': case 'd':
            bal += xactAmt ;
            depAmt += xactAmt ;
            totDep++ ;
        case 'I': case 'i':
            bal += xactAmt ;
            intPaid += xactAmt ;

        case 'W': case 'w':
            bal -= xactAmt ;
            wdAmt += xactAmt ;
            totWd++ ;
            if ((bal < MIN_BAL) && (svcChgd = false))
            {
                bal -= SVC_CHG ;
                svcChgd = true ;
            }
        default:
            outfile << endl << "!! INVALID TRANSACTION CODE !!" << endl << endl ;
        }
    }

        cout << fixed << showpoint << setprecision(2) ;

        cout << setfill('.') << left << setw(30) << "Account Number:  " << setfill(' ') << right << setw(10) << acctNo << endl << endl ;
        cout << setfill('.') …
Duki 552 Nearly a Posting Virtuoso

Maybe this will help; here is a sample inData file:


66476521 2375.44
w 250.00
W 156.73
D 1200
w 102.35
w 75.13
d 1023.29
w 19.46
W 249.89
q 567.88
w 109.37
i 12.45


am i useing the while statement wrong?

Duki 552 Nearly a Posting Virtuoso

Hey guys,

I need help again :sad:. I'm doing really well in the class, it just seems like these past couple assignments have been really rushed (i.e., we went over chapter 5 the day after I finished reading chapter 4 =/). I'm getting sort of discouraged, because up to now I've been able to do everything right, and have actually had a few people ask me questions. I hope I can stop bothering everyone with questions twice a day. Anyways, here's the problem. Maybe someone could diagnose the logic error, as it compiles smoothly. I continue to get the defaul case in the switch...

Also, I know it's very sloppy, but if you have any tips on how to keep it neat, please let me know!! :mrgreen:

#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>

using namespace std;

int main()
{
    const double INT_RATE = 0.05;
    const double SVC_CHGE = 25.00;
    const double MIN_BAL = 1000.00;

    double begBal, wAmt, dAmt, xactAmt, intPaid, bal;
    int acctNo, totWd, totDep;
    char xactCode;

    totWd = totDep = 0;
    bool svcChgd = false;

    ifstream inFile;
    ofstream outFile;

    inFile.open("inData.txt");
    /*if (inFile != "inData.txt")
        return 1;*/
    outFile.open("outData.txt");
    outFile << fixed << showpoint << setprecision(2);

    inFile >> acctNo >> begBal >> xactCode >> xactAmt;
    if (begBal < MIN_BAL)
    {
        begBal -= SVC_CHGE;
        svcChgd = true;
    }

    bal = begBal;

    while (!inFile.eof())
    switch (xactCode)
    {
        case 'D': case 'd':
            bal += xactAmt;
            totWd++;

        case 'I': case 'i':
            bal += xactAmt;
            intPaid = xactAmt;
        case 'W': case 'w':
            bal …
Duki 552 Nearly a Posting Virtuoso

oh ok thanks!

Duki 552 Nearly a Posting Virtuoso

ah, ok... very clever.


only problem is, we haven't gone over any of this:
( my_var.find_first_not_of (allowed_chars) != string::npos )

Duki 552 Nearly a Posting Virtuoso

oops, can someone delete the other thread? deffinately didn't mean to do that :(

Duki 552 Nearly a Posting Virtuoso

Hey all, here is the part of my code I need help with:

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    int acctNo, dayMin, nightMin, tmin;
    double amtDue;
    char serviceCode;

    cout << "Account Number:  " << flush;
    cin >> acctNo;

What I'm wanting to do is, if someone inputs anything other than an int, output an Invalide Service Code error... here is the rest of my code.

#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
    int acctNo, dayMin, nightMin, tmin;
    double amtDue;
    char serviceCode;

    cout << "Account Number:  " << flush;
    cin >> acctNo;

    cout << "\nService Type:  " << flush;
    cin >> serviceCode;
    cout << endl;

    switch (serviceCode)
        case 'r': case 'R':
        {
        cout << "Please input total minutes used:  " << flush;
        cin >> tmin;

        amtDue = 10.00 + ( (tmin - 50) * 0.20 );

        cout << endl << fixed << showpoint << setprecision(2);
        cout << left << "Account:  " << acctNo << endl << endl;
        cout << setfill('.') << setw(25) << left << "Service Type: " << right << " Regular" << endl;
        cout << setfill('.') << setw(25) << left << "Total Minutes Used " << right << " " << tmin << endl;
        cout << setfill('.') << setw(25) << left << "Amount Due: " << right << " $" << amtDue << endl;
        break;

        case 'p': case 'P':

            cout << "Total Day Time Minutes (6:00am-6:00pm):  " << flush;
            cin >> dayMin;
            cout << "Total Night Time Minutes (6:00pm …
Duki 552 Nearly a Posting Virtuoso

Hello all,

I'm looking for a good VB.NET book. I know a little about c++ and am looking for something along the lines of a text book.

Anyone have any good suggestions?

Duki 552 Nearly a Posting Virtuoso

close: When result is 0 the equation reduces to -b/2a because the square root of 0 is 0.

if (x == 0)
    {
        result1 = -b / (2 * a);
        cout << "Two repeated roots of:  " << result1 << endl;
    }

ah ok! fixed it... thanks!

Duki 552 Nearly a Posting Virtuoso

Here's what I got... Look right?

//header files
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    //declared variables
    double a, b, c, x, result1, result2;

    //prompt for input; initialize variables
    cout << "Enter value of a:  " << flush;
    cin >> a;
    cout << "\nEnter value of b:  " << flush;
    cin >> b;
    cout << "\nEnter value of c:  " << flush;
    cin >> c;
    cout << endl;

    //calculate pow(b,2)-4ac
    x = pow(b,2) - 4 * a * c;

    //set conditions and output roots
    if (x == 0)
    {
        result1 = ( -b + sqrt(x) ) / (2 * a);
        cout << "Two repeated roots of:  " << result1 << endl;
    }
    if (x < 0)
        cout << "Two complex roots; (-) under the radical:  " << endl;
    if (x > 0)
    {
        result1 = ( -b + sqrt(x) ) / (2 * a);
        result2 = ( -b - sqrt(x) ) / (2 * a);
        cout << "Two real roots of :  " << result1 << " and " << result2 << endl;
    }
}
Duki 552 Nearly a Posting Virtuoso

call clock() before starting the code you want to profile then again after the code finished. The difference is the approximate executation time. Since the code runs very quickly you probably have to run it quite a few times to get any measurable results. In his example he ran the print function 1,000,000 times. If you want the execution time per iteration then just make the simple division. (total time / number of iterations).

ah ok. i set it to fixed and showpoint, which gave more input for smaller apps.

could you explain the code to me? Sorry I'm asking you to tutor me, but I'm just interested in this.

mainly this part:
diff = ( std::clock() - start ) / (double)CLOCKS_PER_SEC;


but i'm also lost on how the timer works... what does what in the code? it looks like a lot of uninitialized variables, but can't be because it works? :eek:

Duki 552 Nearly a Posting Virtuoso
#include <iostream>
#include <cstdio>
#include <ctime>

int main()
{
  std::clock_t start;
  double diff;

  start = std::clock();
  for ( int i = 0; i < 1000000; i++ )
    printf ( "iamthwee" );
  diff = ( std::clock() - start ) / (double)CLOCKS_PER_SEC;

  std::cout<<"printf: "<< diff <<'\n';
}

How will I use this? part at the beginning and part at the end or what? :) thanks! :mrgreen:

Duki 552 Nearly a Posting Virtuoso

>>(Hint: Use the function pow from the header file cmath to calculate the square root.)

That is in error. the pow() function raises X to the power of Y. you need to use the sqrt() function to get the square root of a number.

In the equation
(-b +/- √b^2 – 4ac ) / 2a


first find the value of b^2-4ac using the pow() function to get b^2. Then use sqrt() to get the square root of that result. That gives you
(-b +/- sqrt(result)) / 2a where result is the previous computation.

Now you need to make two computations to get the findl result
(-b + sqrt(result)) / 2a
and
(-b - sqrt(result)) / 2a

Note1: that when the term b^2 – 4ac = 0, then the equation has a single (repeated) root. -- which means you do only one final computation, not two as described above because the value of result will be 0 making the result of both final computations the same. (-b + result)/2a is reduced to -b/2a

Note2: when b^2-4ac < 0 you can not do any of the other computations because the square root of a negative number is a complex number, not a real number. Most c programs can not deal with complex numbers, althrough there are advanced math libraries which can. But you are not at that level, so don't worry about it. I would just display a message that the root results in a complex …

Duki 552 Nearly a Posting Virtuoso

1. Don't use void main. Use int main
2. Keep using double that ok.
3. Split the quad equation into parts. Do each part at a time.
4. Don't know how to use pow. Check the following:

http://cplusplus.com/reference/clibrary/cmath/pow.html

Thanks,

I started out using int main but we haven't been using any returns so i quit until i need it again. I guess i should get into a habbit of using it though.

I'm really not even sure what the question is asking for? Maybe if I knew that I would know where else I have to go and what I'm doing wrong.

Duki 552 Nearly a Posting Virtuoso

Hi all

I am new to C++ and have a few questions if that is ok.

I would like to get into good habbits early (i.e., using switch instead of 12 if else statments) and was wondering if anyone knew right off how to get a timer to time the compilation and execution of the program? I would like to test and tweak my work just to see what will make it faster and smoother. My prof said he knew there was one available but he couldn't think of it right off... any clue?

Also, I am looking for an extra credit problem. I was told that I might try writing programming "pearls" - techniques that elegantly solve common problems. If anyone has an idea of something creative please let me know. Note that I only have knowledge on iostream, fstream, iomanip, cmath, and control structures. Not sure how creative I can get with so little under my belt.

Thanks everyone!

Duki 552 Nearly a Posting Virtuoso

hm, lots of build errors... i'll let you know what happens

thanks

Duki 552 Nearly a Posting Virtuoso

I think I've gotten the first part, but i can't figure out how to output if it's >=

#include <iostream>
#include <cmath>

using namespace std;

void main()
{
    double a, b, c, x;

    cout << "Enter the value of a:  " << flush;
    cin >> a;
    cout << "Enter the value of b:  " << flush;
    cin >> b;
    cout << "Enter the value of c:  " << flush;
    cin >> c;
    cout << endl;

    x = pow(b,2) - 4*a*c;

    if (x == 0)
        cout << "The equation has a single, repeated root." << endl;
    else if (x > 0)
        cout << "The equation has two real roots." << endl;
    else if (x < 0)
        cout << "The equation has two complex roots." << endl;
    else
        cout << "!! INVALID INPUT !!" << endl;

}
Duki 552 Nearly a Posting Virtuoso

Hey everyone,

I have a question on one of my homework problems. I'm in basic structured programming; C++.

The question states the following:

The root of the quadratic equation ax^2 + bx + c = 0, a ≠ 0 are given by the following formula:

-b +/- √b^2 – 4ac
2a

In this formula, the term b^2 – 4ac = 0, then the equation has a single (repeated) root. If b^2 – 4ac > 0, the equation has two real roots. If b^2 – 4ac < 0, the equation has two complex roots. Write a program that prompts the user to input the value of a (the coefficient of x^2), b (the coeeficient of x), and c (the constant term), and outputs the type of roots of the equation. Furthermore, if b^2 – 4ac >= 0, the program should output the roots of the quadratic equation.


(Hint: Use the function pow from the header file cmath to calculate the square root.)

**********************************************


I would post my starting point but it's basically just my header files and void main()

The only header files we've learned so far are iostream, iomanip, cmath, fstream and this problem is out of the control structures chapter.

Thanks for any help!!

:mrgreen:

Duki 552 Nearly a Posting Virtuoso

Hey Pink,

I am in a similar dilema, but with a BS in networking and an AS in programming.

I have personally decided to forget the AS and attempt a MBA program. In your situation, I would suggest going for the BS. If you look from a hiring manager's point of view... you've opened a spot for a specific position, and you get a person with some knowledge on the job, and some knowledge with other areas, or you have a person with a wealth of knowledge specific to the job at hand... who do you pick?


These are simply oppinions from a lowly college freshman... so don't go sailing on the ship I build... :P
I'm sure you will get better, and more in depth replies than this...

Duki 552 Nearly a Posting Virtuoso

Well I must say that you are certainly encouraging for someone of your age who is also pursuing a career in IT. Like you, during high school I attended vocational courses, but it was for Cisco semesters 1 & 2. I'm currently attending a community college for an A.A.S. in IT, and also plan on getting an A+ cert before the fall semester and my 20th birthday. Keep up the good work.

I wish we had had cisco netacad at my highschool... that would have been swell. :)

Duki 552 Nearly a Posting Virtuoso

Well that's kind of an answer to another question of mine... is a PhD even worth it in the IT field?

One thing that has kept me interested is if I get a PhD, that lasts for a lifetime... if I get say, the CCIE and Cisco goes down the drain, then my cert isn't worth too much. I wouldn't mind teaching though... just not until I'm about 50s ish.


I am actually a freshman in a BS program. I'm not sure what my options are really... would a masters be sufficient?

Duki 552 Nearly a Posting Virtuoso

Hey everyone,


I'm still considering a PhD program, but I'm not sure what fields are available. I've heard of a few common ones like Computer Science and IT/IS... but what about the ones like Doctor of Philosophy in Organization and Management Information Technology Management Specialization? What are my options and what is the difference between all of these? I would really love some insight here... the more descriptive the better as I'm really uncertain of which direction to go. :sad:

Duki 552 Nearly a Posting Virtuoso

I would critique one thing...

Typing in all caps, i.e., HIGHLY EXPERIENCED JAVA PROGRAMMER, does two things to your resume'...

1) Typing in caps makes the paper harder to read. We remember where we are in reading by the rise and fall in characters. Typing in all caps eliminates these; I've heard of a study in which reading comprehension scores dropped dramatically when tested with caps.

2) While attempting to emphasize a key point, you are in turn de-emphasizing the rest of that section.


These are merely my opinions... ^.^
Good article though.

Duki 552 Nearly a Posting Virtuoso

I've had generally good experience with Dell equipment, in multiple companies, for high-end server equipment.

One factor to weigh is the cost of disposal: you may think owning 97 "older" computers to be an asset, but it is just the opposite. Ridding yourself of them is a major issue.

I suggest you seriously consider leasing your systems.

I thought of getting rid of them, and we actually have a TechEd center just down the road that I attended. They were always accepting computers, and they were mostly junk. These are going to be very high end systems, and they would be crazy to not take them.

Thanks though :)
I'm glad I'm finally getting input on this; what other benifits does leasing have? :cool:

Duki 552 Nearly a Posting Virtuoso

It's different with dell's bussiness programs. The warranty service is superb, and if we have to call for tech support, I'm not on hold usually for more than 10 minutes.

I am the network guy, so that wouldn't be an issue really.

Thanks though!

Duki 552 Nearly a Posting Virtuoso

Ok I'm quiting. I did everything on this page, except edit the xorg.conf file. I'm going to wait until someone on here has time to give me a hand beefore I mess something up.

Here's the link to the page I used:
http://news.softpedia.com/news/How-to-Install-Video-Drivers-on-Fedora-Core-6-38740.shtml

Duki 552 Nearly a Posting Virtuoso

I just tried to install AIM and got this error

libstdc++-libc6.1-1.so.2 is needed by aim-1.5.286-1.i386

any ideas?
I ran this cmd: ln -s /usr/lib/libstdc++-libc6.1-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2
Not sure what it did, but the installation still won't work

Duki 552 Nearly a Posting Virtuoso

Ok, well I downloaded this for the graphics card drivers:

http://ati.amd.com/support/drivers/linux/linux-radeon.html

but when I double click it, the program just opens and freezes. I have to log off to close it out.