Forum: Java May 25th, 2007 |
| Replies: 1 Views: 593 Floating numbers I'm trying to get the minimum of 3 floating numbers. I believe my minimum3 method is alright but I think the problem is getting 3 numbers that are being entered in the main method.
public class... |
Forum: Java May 14th, 2007 |
| Replies: 10 Views: 1,301 |
Forum: Java May 14th, 2007 |
| Replies: 10 Views: 1,301 |
Forum: Java May 13th, 2007 |
| Replies: 10 Views: 1,301 Re: Alright this loop problem is bugging me I just replaced break with continue.
if (result == 1) // if result 1,
passes = passes + 1; // increment passes;
else if(result == 2) {
failures = failures + 1; // increment... |
Forum: Java May 13th, 2007 |
| Replies: 10 Views: 1,301 |
Forum: Java May 13th, 2007 |
| Replies: 10 Views: 1,301 Alright this loop problem is bugging me I can't figure out a way to have this program continue to loop if you press any number other than 1 or 2.
Here's the test appilcation.
public class AnalysisTest
{
public static void main(... |
Forum: Java Mar 23rd, 2007 |
| Replies: 8 Views: 838 |
Forum: Java Mar 23rd, 2007 |
| Replies: 8 Views: 838 Re: This is bugging me Alright it's fixed but now I don't get an exact readout. I get whole numbers but no decimal numbers. If you put in 10 hours for each one it should be like 2.714 but it's rounded to 2.
import... |
Forum: Java Mar 22nd, 2007 |
| Replies: 8 Views: 838 This is bugging me I can't find this typing error. Somewhere on Line 44.
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Weight extends JFrame
implements ActionListener {
private... |
Forum: Java Mar 22nd, 2007 |
| Replies: 5 Views: 830 |
Forum: Java Mar 22nd, 2007 |
| Replies: 8 Views: 3,795 Re: Simple temperature conversion Thanks guys. Yeh that formula was wrecking my brain. I went ahead with Badapples formula. Masijade. For some reason yours did not compile ok. |
Forum: Java Mar 22nd, 2007 |
| Replies: 5 Views: 830 |
Forum: Java Mar 21st, 2007 |
| Replies: 5 Views: 830 Am I missing something here? I get a tip of $8.0 when I want $8.4. What am I missing here?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Tip extends JFrame
implements ActionListener { |
Forum: Java Mar 21st, 2007 |
| Replies: 8 Views: 3,795 Simple temperature conversion Hey everyone. I have a problem. I can't find why my code won't convert Fehrenheit to Celsius. :sad:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class CTemp extends... |
Forum: Legacy and Other Languages May 4th, 2006 |
| Replies: 1 Views: 1,979 |
Forum: Legacy and Other Languages May 3rd, 2006 |
| Replies: 1 Views: 1,979 Problem with Qbasic If Then's Ok so I have a program to read three exam scores from 6 students. I have to make the program average the 3 exam scores for each student and then have an average for each invidual exam. Then have a... |
Forum: Legacy and Other Languages Feb 11th, 2006 |
| Replies: 2 Views: 2,015 |
Forum: Legacy and Other Languages Feb 10th, 2006 |
| Replies: 2 Views: 2,015 |
Forum: Legacy and Other Languages Feb 10th, 2006 |
| Replies: 2 Views: 2,015 Heading and Total problem I an doing a program that uses the READ DATA statements. My problem is I can't print the headings. My program reads the data and displays it, but no heading before it. My other problem is adding up... |
Forum: Pascal and Delphi Feb 10th, 2006 |
| Replies: 2 Views: 1,823 Re: Some assistance needed Oh thanks very much. Since we just got done reading the next chapter, we are going to do arrays with this. I don't know why the teacher let us sweat for a few weeks trying to make us figure this out. |
Forum: Pascal and Delphi Feb 9th, 2006 |
| Replies: 2 Views: 1,823 Some assistance needed There is a problem my professor assigned. It's not suppose to be complicated but I can't grasp the concept. I can grasp it in the english language but if I turn it into Pascal, I have no idea what to... |