Java Programming Help

Jake_isr

Member
:
Mazda Protege MP3 Blue Mica
I need help with my Java Programming class. Anyone want to make a quick buck or just help a guy out?
 
I need help with my Java Programming class. Anyone want to make a quick buck or just help a guy out?

Here's a pointer which should help you a bit.

I'm not a Java programmer (I use mostly C at work) but when helping my daughter when she gets stuck on one of her high school Java assignments we've found that generally if one can describe the problem as a text phrase then a method of resolving that problem can be found with just a Google search. This won't teach you the basics (what is a variable, what is a loop, etc.), but it will let you quickly find methods for common tasks such as "read one line of text". Normally if you can't find an answer this way it is because you have phrased the question wrong - and that often means you aren't thinking about the problem the right way.

Before Google one would have looked through books for the relevant sections. Using Google is basically the same thing but faster.

One failing of the Google method is that it frequently turns up multiple methods of resolving an issue, and does not indicate which way is either more efficient or more commonly employed. In some instances it turned up instances where a method was done one way in older versions of Java, and are now done in a different way in current versions. (That is, there was some problem with the language and they added methods to resolve this issue.) So when you find very different ways of carrying out the same operation, see if you can figure out which Java version they were written for, and then see if you can Google from that and find out if the newer method was added to address deficiencies in the older method.
 
bump cause I still need help. Come on guys Ill send some money your way or how about a MP3 spoiler.
 
if you really need help, the best way is to post specifically what you need help with. there are PLENTY of java programmers here, i'm sure, who would be willing to lend you a hand.
 
Program Comments
Programming exercises are key component of learning any programming language. For this course, there are seven programming assignments that are arranged from the simplest case to more complex tasks as you progress through the course.
The textbook comes with a CD-ROM that includes Java. Students may install and use this version of Java for all course assignments. The CD-ROM also may include an integrated development environment (IDE). You do not need to use the IDE to complete these assignments, however, you are welcome to learn and use the IDE if you wish.

Downloading the latest version of Java from the Sun web site is a excellent idea, provided you have a fast Internet connection. Sun also provides a downloadable IDE called NetBeans. This IDE has a level of support from Sun that the IDE on the CD-ROM may not.

For your assignment to be graded, you must identify yourself by including Java comment block at the beginning of your program source code. This comment block must include your name, the date, the assignment number, and your student identification number. You also must provide a description and list of key variables and parameters used.

An example of the minimum Java comment block is:

/**
* Name: Jacob Hood
* Date: When you did the work.
* Assignment: Number
* Student Number: HO3009983
* Description: This program does a, b, and c.
*/

You must name your Java class files (your source code) by concatenating the assignment number (A1 through A7) and your student identification number. For example, if your student number were HO3009983, the your Java class file would be named: HO300983...HO300983

If any assignment fails to compile cleanly, it must be reworked. It will be embarrassing if any of your programs were to fail to compile because the filename and class name did not agree.

In naming your variables, it is essential that you use an acceptable, consistent style and reasonable variable names. Variable names like x, y, and z are to be avoided. If your program needs to compute a total, then an appropriate variable for storing the value would be total or totValue or another meaningful identifier.

In addition, when you declare an important variable, place an inline comment using //, followed by a brief explanation of the variable's use in the program. For example:
int idxR = 0; // Row Index

float inpLen = 0.0; // Input Length

Finally, your .java file should be in plain text suitable for editing using Notepad. It should not have embedded tabs or graphic characters.

Good luck!

Programming Assignment 0: Hello, Java!
Click here to download. (369.521 Kb)
The first programming assignment is intended to help you get started. Do not submit Assignment 0 for review. It is neither graded nor required. But if you have trouble doing Assignment 0, then you are not likely to be successful with the other assignments, so ask for help if necessary.

The attached PDF gives you detailed instructions on how to write a simple console program using Java. This program has a single output statement, which writes "Hello, Java!" to your display screen.

When you download and install the software development kit, be sure to read the instructions carefully. It is important that you download the correct files for your operating system.

The instructions take you step-by-step from writing the source code, to compiling, and then executing. These instructions are as close to "cookbook" instructions as feasible. You likely will have to adapt these instructions to your PC environment in order to get things to work.

Assignment 0: NetBeans Version
Click here to download. (325.468 Kb)
For students who wish to use NetBeans, the attached primer offers detailed steps for getting a simple first program running. Note that you must read the instructions provided with NetBean carefully. It also has tutorial information. Using NetBeans is not required for you to be successful in this course. Do not submit Assignment 0 for review. It is neither graded nor required.

Programming Assignment 1 (Follows Module 2)
Write a console program that prompts the user to input the length and width of a rectangle and then prints the rectangle's area and perimeter. Note that a "console program" is one that is runnable from the MS-DOS command prompt.

Include your source code and compiled files as attachments. Clearly identify yourself and indicate the assignment in the source code file as a comment at the start of the file.

Programming Assignment 2 (Follows Module 5)
Write a console program that uses a while loop to perform the following steps:
Prompt the user to input two integers: firstNum and secondNum (Hint: Ensure that firstNum is less than secondNum).
Output all results to a file, placing an appropriate label between each section of output.
Output all odd numbers between firstNum and secondNum
Output the sum of all even numbers between firstNum and secondNum.
Output the numbers and their square between firstNum and secondNum.
Output the sum of the squares of the odd numbers between firstNum and secondNum.

Programming Assignment 3 (Follows Module 5)
Write a GUI program to convert all letters in a string to uppercase letters. For example, Alb34ert will be converted to ALB34ERT.




Programming Assignment 4 (Follows Module 8)
Rational fractions are of the form a / b, where a and b are integers and b != 0. In this exercise, by "fractions" we mean rational fractions. Suppose a / b and c / d are fractions. Arithmetic operations on fractions are defined by the following rules:

a/b + c/d = (ad + bc) / bd

a/b - c/d = (ad - bc) / bd

a/b * c/d = ac / bd

(a/b) / (c/d) = ad / bc Hint: Check carefully to avoid divide by zero!

Design the class Fraction that can be used to manipulate fractions in a program. Among others, the class Fraction must include methods to add, subtract, multiply, and divide fractions. When you add, subtract, multiply, or divide fractions, your answer need not be in the lowest terms.

Write a Java console program using the class Fraction that performs operations on fractions. Override the method toString so that the fraction can be output using the output statement.

Programming Assignment 5 (Follows Module 10)
Write a method, removeAll, that takes three parameters: an array of integers, the length of the array, and an integer, say, removeItem. The method should find and delete all occurrences of removeItem in the array. If the value does not exist or the array is empty, output an appropriate message. (Note that after deleting the element, the array size will be reduced.) You may assume that the array is unsorted.

Programming Assignment 6 (Follows Module 12)
The Programming Example: Calculator in Chapter 12 is designed to do operations on integers. Write a similar program that can be used to do operations on decimal numbers. (Note: If division by zero occurs with values of the int data type, the program throws a division by zero exception. However, if you divide a decimal number by zero, Java does not throw the division by zero exception; it returns the answer as infinity. However, if division by zero occurs, your calculator program must output the message ERROR: / by zero.)

Programming Assignment 7 (Follows Module 13)

Modify the WhiteBoard.java source code given in Chapter 13 to make it work as an applet. Create an HTML file that uses it.
 
To tell you the truth I started doing this class and then had to take a lot of time off to do 12 hour work days and personal things. I had to extend the class for 3 months and then when I finally got down to it, I realized oops I cant do this without real instruction. So I am trying to find someone to do the work for me so that I can finish this class and then do business classes instead. I can't just drop or change classes because of the extensions.
 
as much as it sucks, you're going to have to do it yourself. first, there's the fact that if someone does it for you you'll be clueless on any tests and that's an easy way for a prof to tell you didn't do your own work. second, although i didn't really read through the assignment, most intro assignments can be done easier using more advanced techniques. so someone who is decent at java will do it using the simplest, most efficient way possible, which probably isn't the way the professor taught it. another red flag. combine 1 and 2 and you're on your way out of school. from where i'm sitting you have 2 real options:
1) suck it up, read the lectures/book and do the assignments
2) suck it up and take the grade you've earned

either way, suck it up
 
Not to be a jerk but, I took the same class and it sucked big time. However, I did do my own work and didn't ask others to do it for me. Reread and follow the examples.
 
Its an online course. Thier is no real profesor or anything they check to make sure it works and that is it, besides this and one multiple choice test open book is all I have left.
 
I am willing to pay to get myself out of this situation. I have an MP3 spoiler I'll give up. I ship to you free if you get this done for me.
 
You know, for the amount of time you've been requesting help (over two weeks), you could have done the research and probably done the project yourself.

People on the forum are willing to offer *help* and answer your questions, but outright asking people to do your work for you is pretty lame...

...and I would guess totally against your school's policy.
 
Back