Dankwansere's Profile User Rating: -----

Reputation: 64 Whiz
Group:
Active Members
Active Posts:
197 (0.11 per day)
Joined:
09-November 09
Profile Views:
5,644
Last Active:
User is offline Jul 27 2014 05:56 PM
Currently:
Offline

Previous Fields

Country:
CA
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
Playstation
Your Car:
Infiniti
Dream Kudos:
0

Latest Visitors

Icon   Dankwansere has not set their status

Posts I've Made

  1. In Topic: Java programming help-create an employee class

    Posted 21 May 2014

    It should not give you an error for putting the "calcGrossPay = 0" I just put it there as a safe check to make sure that the calcGrossPay will atleast have the value of 0 in case of anything. But its not needed you can take it out :)/>
  2. In Topic: Java programming help-create an employee class

    Posted 21 May 2014

    You are receiving the red underlined because your return statement are in an if else block meaning that those return statements only returns under a specific conditions. The compiler sees this as an error because there might be a condition that does not match any of the if/else conditions and neither return statement might be called. You can by pass this error by returning a statement that is outside the if else block. you can do this
    calcGrossPay = 0;
     if (hoursWorked > 40)
    {
                calcGrossPay = (hourlyRate * 1.5 * hoursWorked);
    }
           else if (hoursWorked <= 40)
    {
                calcGrossPay = (hourlyRate * hourlyRate);
    }
           return calcGrossPay
    
    
  3. In Topic: button.content or button.text theory question

    Posted 16 Mar 2014

    View PostMomerath, on 15 March 2014 - 05:16 PM, said:

    System.Windows.Forms

    And just a nitpick, but this is a field where you do need to be precise, it's .Text and .Content. .text is how Java does it :)/>


    Yea since I'm very used to Java I thought .Text would've worked..but I guess I was wrong
  4. In Topic: button.content or button.text theory question

    Posted 15 Mar 2014

    ahhhh I see, I figured I was looking in the wrong place. Thanks
  5. In Topic: validation

    Posted 12 Mar 2014

    No there is no one word to make sure its a number. The best way to do this is to do what Macoxnerd101 said in his previous post by using a try and catch block. the try and catch block will test the part of the code and if an error occurs it will catch the error and output a message. Or you can customize the catch to output a specific message that you want it to

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
6
Programming Languages:
Java, C#, C, Unix, HTML, Xhtml, PHP

Contact Information

E-mail:
Click here to e-mail me
Facebook:
http://www.facebook.com/profile.php?id=509694751

Friends

Comments

Dankwansere has no profile comments yet. Why not say hello?