I've read a few people on here saying that they are learning to code. I always found the best way to learn programming was through completing projects so I thought I would post a simple project up for people to try.

If people find this useful I'll keep doing them so if you want something harder or easier, a game project or something more theoretical let me know and I'll try to do that next time. Don't be afraid to ask questions, the whole point is to learn.

I use c# academically and usually Java professionally though I have also used Python and C++ (though not in a while). So those are the languages I'll mostly be able to help with. Use whatever language you want to complete the project, but I'll be of most use in Java and if you use an obscure language I won't be able to help as much as I would like to. I recommend Java if you are unsure what language to use.

Challenge #1:

Basic
Design and build a program that will take as input from the user the users yearly income and output the income tax to be paid to the screen. What happens if the user puts in a negative number or a word instead of a number?

Extension 1
Make it so that the user can input weekly, monthly or yearly wage and it gives the tax to be paid. Make sure you account for the user not inputting what you expect!

Extension 2
Make your program implement methods for all the calculations so that your main method only prints to the screen, takes input from the user and calls methods.

(Original post by DayneD89)
I've read a few people on here saying that they are learning to code. I always found the best way to learn programming was through completing projects so I thought I would post a simple project up for people to try.

If people find this useful I'll keep doing them so if you want something harder or easier, a game project or something more theoretical let me know and I'll try to do that next time. Don't be afraid to ask questions, the whole point is to learn.

I use c# academically and usually Java professionally though I have also used Python and C++ (though not in a while). So those are the languages I'll mostly be able to help with. Use whatever language you want to complete the project, but I'll be of most use in Java and if you use an obscure language I won't be able to help as much as I would like to. I recommend Java if you are unsure what language to use.

Challenge #1:

Basic
Design and build a program that will take as input from the user the users yearly income and output the income tax to be paid to the screen. What happens if the user puts in a negative number or a word instead of a number?

Extension 1
Make it so that the user can input weekly, monthly or yearly wage and it gives the tax to be paid. Make sure you account for the user not inputting what you expect!

Extension 2
Make your program implement methods for all the calculations so that your main method only prints to the screen, takes input from the user and calls methods.

(Original post by Envisage Me)
Wicked idea, previously I would have used VBA in excel but I may look to do something in Java/Python as that’s what I’ll be focusing on

If you wanna try in java I can help along the way if you need any help Python I ca probably get familiar with as well if that's what you want to do though. Some of the more fun projects will probably be best done in Java though so I'd go for that

Anyone who wants a challenge, try coding a railfence ciper program that allows you to encode and decode, specifying the number of rails. It's pretty easy with 2 rails, but when you add more, it gets somewhat tricky.

(Original post by TheMindGarage)
Anyone who wants a challenge, try coding a railfence ciper program that allows you to encode and decode, specifying the number of rails. It's pretty easy with 2 rails, but when you add more, it gets somewhat tricky.

That was a fun one, thanks

If anyone's interested in how I did it I have a gui jar file and the encrypt/decrtypt methods I came up with.