Web Hosting Talk







View Full Version : Give me stuff to program!


insaneraptor
03-20-2003, 08:23 PM
I am learning java (very beginner) and i am out of ideas on what to do to practice..
I need someone/ones to give me ideas on what to do...

Kinda like giving me a problem to do for school or something...

It needs to be very begininer and basic and stuff... I am up to arrays i know what a constructor is.. thats about as far as i can go...

examples of programs that i have done:
1. Created a class to calculate whether someone is depositing money or withdrawing, how much money is in the bank total, and whether they recieve interst or not.

2. Created a fraction class that added fractions and divded and multiplied and subtracted one fraction from another, converted the fraction to LCD, and said which was greater or less...

If anyone has ideas on what else i can do to just practice it would be great.. just give me a program to write so i have ideas.. very basic and all..
thx

harmonic
03-20-2003, 08:51 PM
create an algorithm that will solve rubics cubes..

jb4mt
03-20-2003, 09:36 PM
How about Roman Numerals?! This is my own "pet algorithm". Convert a number from 1 to 3999 to Roman Numerals. Only up to 3999 because you need UniCode for the symbol for 5000, and therefore for the symbol for 4000 (being one thousand less).

I have begun programming in 3 or 4 languages this way.

insaneraptor
03-20-2003, 10:31 PM
wouldnt that be tedious ;)
1 = I
2 = II
3 = III
4 = IV
5 = 5

all the way up to 3999,,,
just a wee bit tedious dont ya think ;)?
lol im sure theres a better way but who knows!

Shyne
03-21-2003, 12:21 AM
Create an algorithm that sorts digits in an array using the most efficient way.

jb4mt
03-21-2003, 12:33 PM
There is a MUCH better way to do the Roman Numeral algorithm. It is YOUR job to give it a little more thought ;)

Tell you what, here's an URL to some TCL code I wrote for this, its in an online cookbook. Maybe you can decipher the algorithm from it?! Then all you have to do is write it in Java.

http://aspn.activestate.com/ASPN/Cookbook/Tcl/Recipe/68379

nikos
03-21-2003, 01:57 PM
remember the game Mastermind?

try to do it in JAva.... http://www.pointandclicksoftware.com/mastermind.htm

arrays, arrays, arrays

This was actually a program I did 10 years ago in my first Fortran class in the University of arizona.

PixelAxis
03-21-2003, 04:53 PM
Not sure if you are advanced enough yet but a simple Frogger game in Java would be cool :D

CSD_Hosting
03-22-2003, 06:39 PM
For the roman numeral you have to sort them like he said, sort all the 1s thru 9s (numbers that end with them) then use switches for the rest, u can set numberals to numeric values, and just add them up


90% (i think) of programming is logic
rest is just memorization

Martie2
03-30-2003, 11:47 PM
Why don't you try writing cheques with the amount written out in words.
eg. $10 would be "ten dollars, zero cents"
$20 "twenty four dollars and zero cents"

$26987.75 "twenty six thousand nine hundred eighty seven dollars and seventy five cents"

It's good fun