Jump to content

Recommended Posts

Posted

[quote name='kane99' timestamp='1318267296' post='2968200']
bhayya evvaraina helping ahh...veyyyyi kallotho waiting
[/quote]

ornii enka evaru cheyaledaa :3D_Smiles:

  • Replies 73
  • Created
  • Last Reply

Top Posters In This Topic

  • kane99

    19

  • K.A.Paul

    13

  • pilantherpagadi

    10

  • krldr871

    9

Popular Days

Top Posters In This Topic

Posted

[quote name='gerrard' timestamp='1318266850' post='2968155']

good post
[/quote]

I will do it as soon as I get the answers.. thnx a lot

Posted

[quote name='kane99' timestamp='1318267457' post='2968222']
PAUL bhayya, trying ahhh
[/quote]
galtu baa chesthaa annadugaa dont worry

Posted

[quote name='gerrard' timestamp='1318267532' post='2968231']
galtu baa chesthaa annadugaa dont worry
[/quote]

repost

Posted

[quote name='kane99' timestamp='1318267457' post='2968222']
PAUL bhayya, trying ahhh
[/quote]

kk baa start chesta

Posted

rough ga pani chestondi bhayya.. :3D_Smiles: :3D_Smiles: :3D_Smiles:

import java.io.*;
import java.util.*;

public class calculate {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
float miles = 0;
float speed = 0;
int hours = 0;
int minutes = 0;
System.out.println("Welcome to the Travel Time Calculator");
System.out.print("Enter miles: ");
Scanner scan = new Scanner(System.in);
try {
miles = scan.nextFloat();
System.out.print("Enter miles per hour: ");
speed = scan.nextFloat();
System.out.println("");
float time = (miles/speed)*60;
hours = (int) (time/60);
minutes =(int)(time%60);
System.out.println("Estimated travel time Hours: "+hours+" Minutes "+minutes);
System.out.print("Continue? (y/n): ");
String choice = scan.next();
while(choice.compareTo("Y") == 0 || choice.compareTo("y") == 0) {
System.out.println("Welcome to the Travel Time Calculator");
System.out.print("Enter miles: ");
miles = scan.nextFloat();
System.out.print("Enter miles per hour: ");
speed = scan.nextFloat();
System.out.println("");
time = (miles/speed)*60;
hours = (int) (time/60);
minutes =(int)(time%60);
System.out.println("Estimated travel time Hours: "+hours+" Minutes "+minutes);
System.out.print("Continue? (y/n): ");
choice = scan.next();

}
System.out.println("Press any key to continue . . .");
}
catch(InputMismatchException ie) {
System.out.println(ie.getMessage());
}


}

}

Posted

[quote name='K.A.Paul' timestamp='1318269184' post='2968363']
traveltime ke formula enti :3D_Smiles:
[/quote]

nuvvu 2nd di cheyi baa..first di ayindi akkada.. :5_2_108: :5_2_108:

Posted

akalestondi..tinesi 2nd di chesta..deniki elago 20 min kante ekkuva pattadu..or evaraina try cheste cheyandi.. :5_2_108: :5_2_108: :5_2_108:

Posted

jhon baa tana intentions 2 times enter cheyadam kadu anukuntaaa.. N enter chesey varaku loop run avali avali anukunta

Posted

[quote name='K.A.Paul' timestamp='1318269393' post='2968372']
jhon baa tana intentions 2 times enter cheyadam kadu anukuntaaa.. N enter chesey varaku loop run avali avali anukunta
[/quote]

anduke while pettaga..2 times ki ekkada terminate avtondi? :5_2_108: :5_2_108:

×
×
  • Create New...