Im writing a code for a class and it involves using classes and a boolean value to display a (-) if the fraction is negative. The input function is correct but I cannot get the value of the boolean to update in the print function so it prints everything out with a (-) sign. Can anyone help me modify my code so when the user enters Y it prints out no sign but when they enter N it prints out a (-)?
More so, using 1 or 0 for bool value though it works, but it sound too much C/Perl like. Using true or false could spice up the soup!
Lastly, I think duplicating this post, is not really helping. At least one can follow your train of thought and solutions provided by others, If all the issues you have encountered solving this project is concentrated on a single thread of a several pages, others too can get help in a sequential other.
Just follow up your next post on this particular issue in your post, not opening up a new post for every issue for a particular question. Just saying...
but still whenever I enter any numbers in the f1 and f2 and assign it a Y or N value, it will still add a (-) sign and im still unsure how to get this away