Do more debuggging by printout the values of all 3 variables that are passed to the priceInDollars() method to see if they are all valid. If they are valid, the go into the priceInDollars() method and print out the values of all the computations it does so you can see if the formulas are correct.
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
javaNooblet 0 Junior Poster
javaNooblet 0 Junior Poster
NormR1 563 Posting Sage Team Colleague
javaNooblet 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.