C
C#14mo ago
Alex

❔ Marks operations system with broken bool

https://paste.mod.gg/ejflkvfqwzqg/0 I use the Average() method for both calculating the average and standard deviation. If Average() is called, it should display the writeline and when the latter is called, it should not. Not sure why it doesn't work and it breaks my brain. Second problem is the IsAnotherOne() method. It should repeat the main method if the bool is true but once again, my bools are broken
BlazeBin - ejflkvfqwzqg
A tool for sharing your source code with the world!
3 Replies
ACiDCA7
ACiDCA714mo ago
there are quite a few ways to solve this 1. create a second average methid which will be the one that gets called from the menu. this method then calls the average logik method and add the print below, so the logik doesnt include printing at all 2. pass is isAvgDisplay as a parameter to the method 3. its late i can only think of 2 at the moment..xD 1. should be prefered by the way, its cleaner
Alex
Alex14mo ago
Alright, thx
Accord
Accord14mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.