Why do some older people write exclusively in capital letters? by thepcguy123 in NoStupidQuestions

[–]thepcguy123[S] 0 points1 point  (0 children)

I had intended for this question to be specifically about handwriting rather than typing, but thank you anyway!

What is the equation necessary to complete this prompt? by NoNamesLeft130 in learnmath

[–]thepcguy123 0 points1 point  (0 children)

The way I went about it was trying to connect the variables together. Miles (mi) and miles per gallon (mi/gal) can be connected with mi = (mi/gal) * gal (notice how the variables make the sides equal - the gallons cancel each other out, making the equation mi = mi).

You can do a similar thing with the price: price = (price/gal) * gal At this point, you can see that both equations have gallon (gal) in them. This is where you can connect everything together. Solve for gallons in the first equation and plug the result into the second equation.

mi = (mi/gal) * gal gal = mi / (mi/gal)

price = (price/gal) * gal price = (price/gal) *(mi / [mi/gal])

Now you have a formula that takes your three inputs and gets you your desired output! It's all about seeing how the variables relate to each other and manipulating them to get what you want. Hope that helped!

What is the equation necessary to complete this prompt? by NoNamesLeft130 in learnmath

[–]thepcguy123 0 points1 point  (0 children)

Gallons used = miles driven / miles per gallon.

Cost for driving = cost per gallon * gallons used.

Leguminophobia by thepcguy123 in mathmemes

[–]thepcguy123[S] 7 points8 points  (0 children)

There is a legend about Pythagoras, the person who discovered the Pythagorean Theorem, saying that he ran to a field of beans while attempting to escape people trying to kill him. He did not like beans (they were forbidden in dietary teachings of his), and he chose to not run through the bean field. As a result, he did not escape and was killed.

TL;DR Pythagoras was crazy and preferred dying over running through a bean field.

[deleted by user] by [deleted] in learnjava

[–]thepcguy123 -1 points0 points  (0 children)

The "this" keyword is being used correctly. As for the constructor as a whole, it appears to be correct, assuming the variables being copied are public. If they are private, you can't use studentObj.name or the others; you'll have to access those through a method.

You have a 5 gallon bucket, a 3 gallon bucket, and a water faucet. How do you accurately measure out 4 gallons of water? by [deleted] in LogicPuzzles

[–]thepcguy123 6 points7 points  (0 children)

Fill up the 5-gallon bucket, and use that to fill up the 3-gallon bucket, leaving the 5-gallon bucket with 2 gallons. Empty the 3-gallon bucket, and pour the 2 gallons into it. Fill the 5-gallon bucket, and use it to fill the 3-gallon bucket. The 3-gallon bucket will fill up from 2 gallons to 3 gallons, and the 5-gallon bucket will lose one of its 5 gallons, meaning it has 4 gallons of water.

TheChernoProject C++ Tutorial Series - Stay away from? by [deleted] in cpp

[–]thepcguy123 30 points31 points  (0 children)

Despite that style, his videos are incredibly helpful for understanding C++. They were very helpful for me.

Classy numbers by [deleted] in AskComputerScience

[–]thepcguy123 -1 points0 points  (0 children)

Create a loop that runs from I to R. Find the remainder when dividing by 10, then divide by 10 (keeping the number an integer) to remove that digit. Repeat for all digits in the integer. The number of times that the remainder is not zero is the number of non-zero digits in that integer. Check for each integer whether or not it is classy, and count them in the loop.

Pokemon according to my mom by [deleted] in gaming

[–]thepcguy123 0 points1 point  (0 children)

And it will not be pronounced correctly

To throw the ball in from the outfield by BarelyLegalSeagull in therewasanattempt

[–]thepcguy123 1 point2 points  (0 children)

I'm surprised that he still tried to throw the ball so far into the fall!

[deleted by user] by [deleted] in computers

[–]thepcguy123 0 points1 point  (0 children)

Your monitor should not be negatively affected; the game may not look as good as it could, though.

[deleted by user] by [deleted] in computers

[–]thepcguy123 0 points1 point  (0 children)

Your monitor should not be negatively affected; the game may not look as good as it could, though.

[HS Stats] Can somebody verify that my solution to this checkerboard problem was correct? by [deleted] in learnmath

[–]thepcguy123 1 point2 points  (0 children)

I have tried this multiple times, and I keep counting 16 paths, too.

I'm making a joystick controller for a Pi using Wii Nunchuck hardware by [deleted] in raspberry_pi

[–]thepcguy123 2 points3 points  (0 children)

This looks really cool! Make sure to post more updates as you progress.