Show more

Tried a today, was pretty fun. @namark thanks for recommending these! I expect I’m gonna spend a lot of hours on these in the next few weeks.

I just boosted the last that I had posted from over a year ago.

I still think this is an interesting problem to solve. I have yet to attack it myself, but am definitely considering it. I have recently been doing a bunch more smaller exercises, and perhaps can post a few of those. Though I haven't necessarily written them, I have found them fun to do.

I do have some ideas, but for now I am waiting to see if anyone is even still interested in the puzzles anyway.

Okay, here's one with a story :) Let's see if this is entertaining enough :D

Here is a problem that involves being jerk.

You receive a parking ticket and decide to pay in the least
convient way possible... change. This decision comes to mind
because the tickets are in strange amounts because they use
the cents portion for some kind of internal encoding.

You decide to pay all in pennies but when you start to collect
them someone informs you that although change will be accepted,
if the counts of coins exceed the quantities required for a wrapper
then you must roll them.

US Coinage count to a roll
0.01 = 50
0.05 = 40
0.10 = 50
0.25 = 40
0.50 = 20
$1.00 = 25 (small) or 20 (large)

Question 1.
How many rolls and free coins of each can you provide to pay your
$100.37 ticket in order to use the highest count of unrolled coins?

Considering that a ticket can cost anywhere from $1.00 to $250.00.
You start telling everyone else about your plan and they decide to
play too, so you calculate how they should pay as well.

For example, 45 pennies 21 nickles for a $1.00 ticket might be
pretty obnoxious :).

Question 2. Which fine amount (in that range) would allow you to
provide the highest number of unrolled coins?

Question 3. The parking authority figures out what you are doing
and decides to change things up by hiring you. Your job is to
determine the best fine values to get paid in the least amount of
unrolled coins. What are those amounts what are those amounts (still
within that range of $1.00 to $250.00)

Just to clean it up a little, and add some more entertainment.

Okay, here's one with a story :) Let's see if this is entertaining enough :D

Here is a problem that involves being jerk.

You receive a parking ticket and decide to pay in the least
convient way possible... change. This decision comes to mind
because the tickets are in strange amounts because they use
the cents portion for some kind of internal encoding.

You decide to pay all in pennies but when you start to collect
them someone informs you that although change will be accepted,
if the counts of coins exceed the quantities required for a wrapper
then you must roll them. You also figure out that collecting all
these coins is a bit of a nuisance for you. So your goal is to
reduce the overall number of coin rolls while maximizing the
number of free (or unrolled individual coins).

US Coinage count to a roll
0.01 = 50
0.05 = 40
0.10 = 50
0.25 = 40
0.50 = 20
$1.00 = 25 (small) or 20 (large)

Question 1.
How many rolls and free coins of each can you provide to pay your
$100.37 ticket in order to use the highest count of unrolled coins
while using the least number of rolled coins?

Considering that a ticket can cost anywhere from $1.00 to $250.00.
You start telling everyone else about your plan and they decide to
play too, so you calculate how they should pay as well.

To make things a little more interesting, you show up at a city council
meeting and propose that because of the time involved in processing
unrolled coinage that the parking authority should, rather than
bother with unrolled coins, all unrolled coins they collect should
just be donated to the city coucil's general fund. They pass this
unanimously.

For example, 45 pennies 21 nickles for a $1.00 ticket might be
pretty obnoxious :).

Question 2. Which fine amount (in that range) would allow you to
provide the highest number of unrolled coins?

Question 3. The parking authority figures out what you are doing
and decides to change things up by hiring you. Your job is to
determine the best fine values to get paid in the least amount of
unrolled coins. What are those amounts what are those amounts (still
within that range of $1.00 to $250.00)

Show thread

@namark can you just use your browser to go to

git.qoto.org/Absinthe/GameOfLife

Okay, so if anyone is interested, here is a first pass at Java Swing version of Conway's Game of Life.

I am seeking hard critical responses with suggestions for improvement to make it more Java-esque or Java-licious or otherwise unlike someone who has been programming in C/C++ for 30 years just trying to learn new syntax.

I am also open to corrections to obvious bone-head or ham-fisted mistakes.

Show thread

I need some Java friends / mentors / co-learners

So I have been hired onto a company whose current intended strategy is to move away from all c/c++ replacing it with Java micronaut. They will be encouraging and assisting with training. (The specifics of which are yet to be determined)

Bring on the imposter syndrome :)

No question, just sharing insecurities.

Been a while, just saying hi! People are talking about leaving FB and Twitter and so far all I hear them say is they are going to Parlor or Gab. SMH...

@digital_carver I haven’t really been putting up any new ones, because I really wasn’t getting much feedback that anyone was really doing the old ones.

Actually haven’t been in the Fediverse much lately, spending most of my time in FB groups for turning. Gotta love the lathe!

But it is time for me to start ramping up in Java for work, so I may be back again.

Show more
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.