What have you tried? Besides the first 3 years, the depreciation seems pretty simple (1%). What are you having trouble with?
Type: Posts; User: vanDarg
What have you tried? Besides the first 3 years, the depreciation seems pretty simple (1%). What are you having trouble with?
First, if you are trying to manipulate variables of the first class with methods, you should define those methods within the first class:
public class Taxone {
//naming variables
double...
What are you trying to accomplish? And please use code tags
Ditto. If you can't figure out where to place brackets. Cut back to the basics.
Great! Hope I helped.
I'm sure you know how to calculate average: average = total of scores / number of scores
To calculate each students grade:
Loop through each student, keeping track of the total scores. After...
I'm not sure what you mean. Instantiating only one object will still allow you to use all methods defined within the CircleRadius class.
I think the reason you are having the incorrect output is because you are creating too many objects. You don't need a separate object for each calculation. The radius determines the rest of the...
An "illegal start of expression" error is usually caused by either forgetting a closing bracket '}' or by forgetting to use a delimiter ';'
It can also be caused by nesting a method within another...
I would alter the condition of the while loop for this:
while (the string is not empty)
in combination with a different scanner method...
Without seeing any code, we can't possibly speculate on whats going on.
Maybe a long shot but...this isn't for Troy's class is it?
Anways, do you want to just copy a part of the picture, and have white space next to it? Or do you want nothing next to it at all, and...
Please put your code in highlight tags
import javax.swing.*;
import javax.swing.UIManager;
public class square
{
Looks like the object (of type State) hasn't been initialized.
If you are certain you are initializing it, you may want to check over to see if you are waiting for user input or something...
I can't tell by your code, but I'm not sure if or how you are storing the data. You can input the data into arrayLists, and from there search through those arrayLists. I'm not exactly sure if this...
Can we help you? Yes. Can we do it for you? No.
What part of the program are you having trouble with? What code have you written? Have you written anything other than what was provided?
Thanks for your help, I was able to come up with a solution. The router was sending UDP packets, not TCP packets. Further, it was timing out because UDP differs from TCP in that UDP does not create a...
Yeah it definitely is, I have a similar program written in C and it receives information and displays it in my terminal and log files. When I run this other program all I have to do is disconnect and...
Sorry, I forgot to list the exception. After it times out, I do get a timed out exception:
Success!
Couldn't!
Accept timed out
You have to write a constructor here, which takes 3 parameters. A string for name, an integer for age, and a boolean value for a Perry fan.
This constructor should also call a constructor for a...
Hello friends, I have written a program which opens up a socket on port 514. This is to accept and save logs from my wireless WAP54G router. I would like to eventually be able to use a buffered...
If this the only code you have, and it takes three minutes to compile, then there is likely something wrong with your computer or some configuration. On the other hand, if it is taking three minutes...
For starters, principal, rate, and total are all of type double. Either change the types to int, or use the method nextDouble() rather than nextInt(). You may also want to tell us why it won't run....
You don't have to create a separate class for sorting an array of ints. Just write a separate method for it.
If you want user input via a console, use a scanner. The BufferedReader is for reading in the contents of a file.