Mohamed Sanaulla | My Blog | Author of Java 9 Cookbook | Java 11 Cookbook
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
No. Compile and execute your code after every 5th line written. You want to find whether it works every few minutes. It makes finding errors much easier.Tim Hoang wrote:When you say lots of coding, you mean execute, apply, and compile after every lesson? . . .
fred rosenberger wrote:Our own CattleDrive has many assignments you can try for free. If you want them nit-picked by a staffer there is a cost, but there is no reason you couldn't read and try them on your own.
Project Euler also has a TON of programming problems. Granted, they require some complicated math, but the programs themselves can be rather simple.
A firecracker explodes at a height of 100 m above level ground. It breaks into a large number of very small fragments, which move in every direction; all of them have the same initial velocity of 20 m/s.
We assume that the fragments move without air resistance, in a uniform gravitational field with g=9.81 m/s2.
Find the volume (in m3) of the region through which the fragments move before reaching the ground. Give your answer rounded to four decimal places.
Luigi Plinge wrote:Seems like something you could solve by geometry + calculus... or should I ditch the equations and just go for a numerical simulation?