Sean Brewer wrote:Hi Avery.
For Java tutorials the absolute BEST thing I have found is a free video course on programming from Stanford University. Don't worry, it is not one of those courses that expects you to know a ton of stuff upfront, it is the first in the programming series and it is designed for the complete beginner (and they have the next two courses in the series on youtube as well)... The teacher even says that the only prerequisite for the course is being able to tell the difference between a computer that is turned on and one that is turned off. LOL This teacher is amazing (and really funny too) and he has answered so many questions that I still had as an intermediate programmer myself. If you are going into the field of programming this is exactly what you need. He not only teaches Java but also how to be a good software engineer so you will save yourself a lot of headache trying to "unlearn" bad programming habits later on. I seriously cannot over hype these videos! I'm just barely over halfway through the series and I have learned so much from them already.
Henry Wong wrote:
To choose a field, just to avoid Java, and instead face a ton of many different scripting languages, many that I consider write only languages, may not be a very good idea.
Campbell Ritchie wrote:That is what comes from coding before you have worked out the algorithm. Get some paper a pencil and an eraser (preferably a large one ) and write down how you plan to do that on paper. When you have it down to words of one syllable, then you will find it easy to turn into code.
Matthew Brown wrote:Another question, given yous statement of the problem: why 100 and not 10?
Matthew Brown wrote:anyway, what your current code is doing is multiplying all the squares of numbers between 0 and 99 inclusive, and writing out the final answer. However, since you start with zero, and 0*anything is still zero, the final answer is always going to be zero.
You will run two small labs using the statements; discuss the attributes of the programs; and write your own program using the for-or while statements. This lab is part of your discussion grade for the unit.
Write a program that squares the numbers from 1 to 10 using a for or while statement. Afterwards, print the results to the screen. Discuss how you used the statements learned in the lab to complete your program in the discussion box for this unit.
Lab 5 Project
Students will be able to Compute A Raise
The program below, Salary.java, inputs an employee's salary and a rating of the employee's performance and computes the raise for the employee. The three possible ratings are "Excellent", "Good", and "Poor". An employee who is rated excellent will receive a 6% raise, one rated good will receive a 4% raise, and one rated poor will receive a 1.5% raise.ï¿½ Add the if... else... statements to program Salary to make it run as described above. Submit your code to the lab drop box
for this unit.