Jump to content

'situation Not So Grim In Kedarnath Valley', Says Shinde


Recommended Posts

Posted

[color=#000000]
Union Home Minister Sushil Kumar Shinde on Tuesday said almost all the people stranded in the Kedarnath Valley have been rescued, and added that the situation is not so grim there now.[/color][color=#000000]
Shinde, however, said that the evacuation and rescue operations in the flood-hit state had been stalled due to rough weather and consistent rains.[/color][color=#000000]
"It is still raining in Uttarakhand and it is difficult for the helicopters to fly in those regions. In Badrinath, we have gathered everyone in a safety camp, where food and drinking water is available," he told the media in Patna.[/color][color=#000000]
Meanwhile, Indo-Tibetan Border Police (ITBP) Director General (DG) Ajay Chadha said that around 60 people were still stranded in Kedarnath, and added that they are mostly priests or porters.[/color][color=#000000]
"Once the weather improves, we will able to get them out. And in Badrinath also, we are not taking out people because the weather is not conducive. We do not want people to slip or get injured in the evacuation process. Once the weather stabilizes, we will move them by roads as well as by sorties," he told the media in New Delhi.[/color]

Posted

[color=#000000]
After heavy rain overnight and this morning, the weather has now improved in Uttarakhand paving way for the Indian Air Force (IAF) helicopters to fly and evacuate over 6,000 people who are still stranded in different parts of the state. Many of them are now in temporary relief camps with access to food and water.[/color][color=#000000]
The army, ITBP and NDRF today concentrated its evacuation operation by air mainly at Badrinath, Gangotri valley and Pithoragarh district of the state. Most of the pilgrims are stranded in these regions.[/color][color=#000000]
Helicopters have started sorties from Sahastradhara helipad and Jolly Grant airport in Dehradun and other helipads and airbases across the affected districts to evacuate the pilgrims.[/color][color=#000000]
About 800 people were yesterday evacuated on foot using makeshift bridges across swollen rivers. Over 1000 people were also airlifted from parts where the rain was not heavy enough to ground military helicopters. (ANI)[/color]

Posted

congress covert [img]http://www.desigifs.com/sites/default/files/2013/GSB3.gif?1370457845[/img]

Posted

anna one coding question



I have a text file in 7-bit ASCII format like: SUM: 1, 2, 3 MIN: 4, 3, 2, 40 AVERAGE: 2, 2 ho
Write a program to solve the following problem. Your program must accept a filename as the single command-line parameter. The file will contain 7-bit ASCII text and each line may consist of an operation, followed by a colon, followed by a comma-separated list of numbers like:

SUM: 1, 2, 3
MIN: 4, 3, 2, 40
AVERAGE: 2, 2


your program should print:

SUM 6
MIN 2
AVERAGE 2
Could you please tel me the solution, I needed dis

Posted

[quote name='NaakemTelvadh' timestamp='1372165918' post='1303887440']
anna one coding question



I have a text file in 7-bit ASCII format like: SUM: 1, 2, 3 MIN: 4, 3, 2, 40 AVERAGE: 2, 2 ho
Write a program to solve the following problem. Your program must accept a filename as the single command-line parameter. The file will contain 7-bit ASCII text and each line may consist of an operation, followed by a colon, followed by a comma-separated list of numbers like:

SUM: 1, 2, 3
MIN: 4, 3, 2, 40
AVERAGE: 2, 2


your program should print:

SUM 6
MIN 2
AVERAGE 2
Could you please tel me the solution, I needed dis
[/quote]
very simple u need code
or logic to do?

Posted

@NakeemTelvd

compile it then

java FileProcessor "provide the completeFilePath as first argument"


import java.io.BufferedReader;
import java.io.FileReader;
import java.util.StringTokenizer;

public class FileProcessor {

public static void main(String args[]) {
String fileName = "";
if (args.length == 0) {
System.out.println("Please provide comple file path as Argument 1");
}
{
fileName = args[0];
}
FileProcessor fp = new FileProcessor();
fp.processFile(fileName);
}

public void processFile(String fileName) {
try {
BufferedReader br = new BufferedReader(new FileReader(fileName));
String line;
while ((line = br.readLine()) != null) {

StringTokenizer st = new StringTokenizer(line, ":");
String opration = st.nextToken();
String values = st.nextToken();

if (opration.equals("SUM")) {
System.out
.println(" Sum of the integers provided in [SUM:"
+ values + " ] is " + doSum(values));

}

if (opration.equals("MIN")) {
System.out
.println(" Minimum value of the integers provided in [MIN:"
+ values + " ] is " +doMin(values));


}
if (opration.equals("AVERAGE")) {
System.out
.println(" Average of the integerd provided in [AVERAGE:"
+ values + " ] is " + doAverage(values));
}

}
br.close();

} catch (Exception e) {
System.out.println("" + e.getMessage());

}

}

private int doAverage(String values) {
String[] givenVals = values.split(",");
int count = givenVals.length;

int total = doSum(values);
if (total == 0) {
return 0;
} else {
return total / count;
}

}

private int doMin(String values) {
String[] givenVals = values.split(",");

String val = givenVals[0].trim();
int minVal = 0;
if (isNum(val)) {

minVal = Integer.parseInt(val);

for (int i = 1; i < givenVals.length; i++) {
val = givenVals[i].trim();
if (isNum(val)) {
if (minVal > Integer.parseInt(val)) {
minVal = Integer.parseInt(val);
}
} else {
System.out
.println("Given Number [ "
+ val
+ " ] is not a valid integer please provide valid values");
System.exit(-1);
}

}
} else {
System.out.println("Given Number [ " + val
+ " ] is not a valid integer please provide valid values");
System.exit(-1);
}
return minVal;
}

private int doSum(String values) {

String[] givenVals = values.split(",");

int totalVal = 0;

for (int i = 0; i < givenVals.length; i++) {

String val = givenVals[i].trim();
if (isNum(val)) {
totalVal = totalVal + Integer.parseInt(val);
} else {
System.out
.println("Given Number [ "
+ val
+ " ] is not a valid integer please provide valid values");
System.exit(-1);
}

}

return totalVal;

}

private boolean isNum(String val) {

try {
Integer.parseInt(val);

return true;

} catch (Exception ew) {

return false;
}
}

}

×
×
  • Create New...