i think cels method is pulling f as 0 not from the case 1
Type: Posts; User: silverpen10
i think cels method is pulling f as 0 not from the case 1
gottcha so i should do it in the other program
--- Update ---
if i put 55 in for fahrenheit i get 57.6 (it should be 12.7)
public class prgmONE // Peter Krasinski
{
public static void...
nvm i did 5/9. your right i get 1.0
its 0 how do i change it
Its sill not returning the proper value
public class prgmONE // Peter Krasinski
{
public static void main(String [] args)
{
double c = 0, f = 0;
double c2 = cels(c, f);
int which =...
new program
public class prgmONE // Peter Krasinski
{
public static void main(String [] args)
{
int c = 0, f = 0;
int c2 = cels(c, f);
int which = Input.getInt("1 for Celsius, 2...
i got it to work
new code
public class prgmTWO
{
public static void main(String [] args)
{
double P = Input.getInt("How much have you deposited?");
double i = Input.getInt("What is...
Last login: Mon Jan 7 11:11:36 on ttys000
petes-MacBook-Air:~ pkrasinski$ cd java\ programs/
petes-MacBook-Air:java programs pkrasinski$ javac prgmTWO.java
prgmTWO.java:10: variable s might not...
heres the error1701
sorry its small
input.class?
i dont know whats wrong
public class prgmTWO
{
public static void main(String [] args)
{
double P = Input.getInt("How much have you deposited?");
double i = Input.getInt("What is...