![](https://programming.dev/pictrs/image/5421a6ca-61d4-4e2d-9d92-64f79ef9363a.png)
![](https://beehaw.org/pictrs/image/c0e83ceb-b7e5-41b4-9b76-bfd152dd8d00.png)
I guess you’d need 10 to represent 0, and if you got 2x 10 that would be 100?
I guess you’d need 10 to represent 0, and if you got 2x 10 that would be 100?
I think the question is fine, but we have to assume they covered this type of method prior to the exam, where .length would result in the character count of a String.
That’s when you realize you were editing the same file that exists in the wrong directory the whole time.
This should be the new isEven()/isOdd(). Calculate the speed of the CPU and use that to determine how long it might take to achieve a ‘sleep’ of a required time.
I got up to a pack a day when I decided to quit. The biggest thing that helped me quit was getting an app on my phone which tracked the cost and how many you’re smoking. When you start reducing the amount smoked etc it tracked how much money you’ve saved, how much healthier your lungs are (lung capacity etc), how much more time you’ve added to your life expectency, all that sorta stuff.
Having numbers and stats to track, made it feel more tangible and felt like I was making actual progress towards something.
Its worth a shot.
The object/class/thing would normally be its own class file, the action would be a method/function of said class.
Ie:
fileDialog.open()
fileDialog = Class (Dialog), Subclass (FileDialog)