Search:

Type: Posts; User: XxDarkstarxX

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Ok so i guess what your saying is in order to put this;
    //Perform Conversions
    cTemp = fTemp * CS;
    mDist = fDist * ME;
    kWeight = pWeight * KL;
    K...
  2. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    I understand that..I meant does it go before the } while, or would it go after the } while. I appreciate your help greatly I just am stupid at this as it is so new to me.
  3. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    import java.util.*;

    public class InputValidation {
    public static void main(String[] args) {
    int value=-1, fTemp, fDist, pWeight;//Declare variables
    double cTemp, mDist, kWeight, K, I,S;...
  4. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    import java.util.*;
    public class InputValidation {
    public static void main(String[] args) {
    Scanner inputScanner = new Scanner(System.in);
    do {
    System.out.println("Enter a Fahrenheit...
  5. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    The loop is for extra credit.

    So should I do something like the fahrenheit to celsius on one line and the fahrenheit to kelvin later on in the code?

    Or put the conversion somehow about the loop?
  6. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    That would be the validate input part of pseudo code.

    As for when it is executed, it does almost everything i need. If I enter 250 it states that it is out of range, if I enter abc it states that...
  7. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    I did, Im just trying to configure them in the correct place to get it all working. Do I add the other information in the do loop or do I add them around the loop?
  8. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    the A comment is the ending of the method. the B comment is the end of the main which I thought I had to put. But all the { } are correct. I just found a video on how to do exactly what I needed and...
  9. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Ok let me try a different approach to this one step at a time.
    Could you tell me if my methods are correct, their separate. just the methods none of my conversion equations on here yet.


    public...
  10. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    I know i just wrote that as an example. My first method is //Integer.parse which at the end of the method or at least what i think is the end just before the return isValid. I have }//end...
  11. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Does this read any better?
    Declare constants
    Declare variables
    get input
    method 1
    method 2
    perform conversion
    display report

    Sorry this is taking so long, Im a visual learner rather then...
  12. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Ok I will try that. Now once I figure that out will my methods like this code be ok still or do I need to move them around more?

    import java.util.Scanner;

    public class Project2 {
    private...
  13. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Its due tomorrow night so I got to figure this out. I understand that there has to be the same amount { as }. Which i just noticed im missing two } somewhere in this thing. Am I on the right track?
  14. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Yeah anything I do doesnt not work for me. I still get an error somewhere.
  15. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Honestly Ive got no clue, when I say that Im new to this I mean this is the second thing I ever tried coding..
  16. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Where or How am I still defining a method inside another method?
    I also still get the insert a } on the same semicolon after moving a } to the next line.
  17. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    S = pWeight * 0.0714285714; }

    this is the line with the error and its the semi colon. Tells me to insert } to complete the block but once i do, the same error is still there.
    As for being correct...
  18. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Ok Im getting tired of this project and Im sure your getting tired of answering my questions but is this correct now yes or no?

    import java.util.Scanner;

    public class Project2 {
    private static...
  19. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Yeah I am.. I'm gonna read up on methods and see if I can figure it. In eclipse to get the source codeeould i run it eoth yhe errors and in the problrms tab copy that?out. This is all a foregin...
  20. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Alright hopefully my last question as im sure this is kind of annoying to you, but heres my code. Now the only errors I am getting now is in bold and bigger font. I put it in the pseudo code that you...
  21. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    Could you by any chance give me an example of doing this the correct way?
  22. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    It needs to print that message in the results. I need the methods to be called on which apparently i havent done right. My methods are after the display report, does that matter? I tried to compile...
  23. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    import java.util.Scanner;


    public class Project2 {

    private static final Object False = null;
    private static final int number = 0;
    private static final int CS = 0;
    private static final...
  24. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    I still am getting errors on everything I do.
  25. Replies
    58
    Views
    3,882

    Re: Need some minor help.

    I honestly dont know. I thought after i put //Methods and then the codes.
Results 1 to 25 of 35
Page 1 of 2 1 2