.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
.
Last edited by Markusovich_; June 20th, 2019 at 06:08 PM.
If you don't understand my answer, don't ignore it, ask a question.
.
Last edited by Markusovich_; June 20th, 2019 at 06:08 PM.
Is 0.0 the correct value? What is the correct value?<--------------------- DISPLAYING 0.0
Where is the variable that is printed given a value? I see a variable named commission that is initialized to 0.0.
Where does the String: Commission: Commission: come from in the program?
Why is Commision: repeated?
If you don't understand my answer, don't ignore it, ask a question.
.
Last edited by Markusovich_; June 20th, 2019 at 06:09 PM.
I don't see any code that sets the value of commission in the Policy class. Where is that done?
Add a print statement following all the statements that compute the value of commission that prints out the value of commission.
If you don't understand my answer, don't ignore it, ask a question.
.
Last edited by Markusovich_; June 20th, 2019 at 06:09 PM.
Yes, but where is it actually being done? The code must be executed to have any effect on a variable's value.It's supposed to be done
Is the code executing?
Prove it by adding some print statements to print out the computed values.
I do not see this in the print out: Computing the commission:
If you don't understand my answer, don't ignore it, ask a question.
@Markusovich_
Stop editing your post !
Any time you post something on the web, you should be prepared for it to be out there, somewhere, forever.
If you are worry your post will be visible by public, I would suggest you not posting sensitive information to public forums.
Last edited by John Joe; June 20th, 2019 at 09:58 PM.
Whatever you are, be a good one