Showing results 1 to 21 of 21
Search took 0.03 seconds; generated 1 minute(s) ago.
Posts Made By: Stoney
Forum: Java May 25th, 2007
Replies: 1
Views: 593
Posted By Stoney
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
Posted By Stoney
Re: Alright this loop problem is bugging me

I understand that but is there another way to do the problem without adding continue to it at all?
Forum: Java May 14th, 2007
Replies: 10
Views: 1,301
Posted By Stoney
Re: Alright this loop problem is bugging me

So the way I have it. Is that ok?
Forum: Java May 13th, 2007
Replies: 10
Views: 1,301
Posted By Stoney
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
Posted By Stoney
Re: Alright this loop problem is bugging me

Actually what I'm trying to figure out is how to keep the loop going even if you enter other numbers in.
Forum: Java May 13th, 2007
Replies: 10
Views: 1,301
Posted By Stoney
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
Posted By Stoney
Re: This is bugging me

So the line would look like?
Forum: Java Mar 23rd, 2007
Replies: 8
Views: 838
Posted By Stoney
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
Posted By Stoney
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
Posted By Stoney
Forum: Java Mar 22nd, 2007
Replies: 8
Views: 3,795
Posted By Stoney
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
Posted By Stoney
Re: Am I missing something here?

Ah yes sorry. I was using 56 for amount and 15 for percentage.
Forum: Java Mar 21st, 2007
Replies: 5
Views: 830
Posted By Stoney
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
Posted By Stoney
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
Posted By Stoney
Re: Problem with Qbasic If Then's

Ok My buddy helped with with alittle bit so far.


Here's the new code:


'John Stonebraker

' Program to compute average of the exams
Forum: Legacy and Other Languages May 3rd, 2006
Replies: 1
Views: 1,979
Posted By Stoney
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
Posted By Stoney
Re: Heading and Total problem

Alrighty I solved it. I added a CLS to the Process Detail procedure so that wiped out the top heading. :)
Forum: Legacy and Other Languages Feb 10th, 2006
Replies: 2
Views: 2,015
Posted By Stoney
Re: Heading and Total problem

Ok, I got the Totals to work but not the heading.



'
' ***Program to compute pay****



' Varibles Used
Forum: Legacy and Other Languages Feb 10th, 2006
Replies: 2
Views: 2,015
Posted By Stoney
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
Posted By Stoney
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
Posted By Stoney
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...
Showing results 1 to 21 of 21

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:42 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC