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...
Type: Posts; User: XxDarkstarxX
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...
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.
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;...
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...
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?
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...
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?
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...
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...
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...
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...
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...
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?
Yeah anything I do doesnt not work for me. I still get an error somewhere.
Honestly Ive got no clue, when I say that Im new to this I mean this is the second thing I ever tried coding..
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.
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...
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...
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...
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...
Could you by any chance give me an example of doing this the correct way?
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...
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...
I still am getting errors on everything I do.
I honestly dont know. I thought after i put //Methods and then the codes.