09-06-2011
Quote:
Originally Posted by
sayachop
... Seems like my code is not correct
...
What makes you think so?
What's the error message?
tyler_durden
10 More Discussions You Might Find Interesting
1. Programming
I have a file which is
2
3
4
5
6
6
so i am writing program in C to calculate mean..
#include<stdio.h>
#include<string.h>
#include <math.h>
double CALL mean(int n , double x)
main (int argc, char **argv)
{
char Buf,SEQ;
int i;
double result = 0;
FILE *fp; (3 Replies)
Discussion started by: cdfd123
3 Replies
2. Shell Programming and Scripting
I am new to perl, and need a script to pull a CSV file, strip out 2 leading columns, and 2 ending columns, and resave the file in a new location. The file is basic and has less than 10,000 records. Secondly, can I schedule perl scripts to run daily? Can someone provide the basic script to... (1 Reply)
Discussion started by: cobbjob
1 Replies
3. Shell Programming and Scripting
My input:
>AAA_100
10 20 50 60 10 100 15 10
>AAA_100
20 20 50 60 20 100 15 10
>AAA_100
10 20 50 60 40 100 15 10
>AAA_100
40 20 50 60 10 100 15 10
.
.
.
My Output
20 20 50 60 20 100 15 10
If I have a long list of file. I want to calculate average of each position inside the contents... (7 Replies)
Discussion started by: patrick87
7 Replies
4. Shell Programming and Scripting
I have CSV file that contains data in the format as shown below:
ABC, 67, 56, 67, 78, 89, 76, 55
PDR, 85, 83, 83, 72, 82, 89, 83
MPG, 86, 53, 54, 65, 23, 54, 75
..
..
..
..
I want to create a script that will pull out the rows from the above sheet and paste it into another CSV file.... (12 Replies)
Discussion started by: pankajusc
12 Replies
5. Shell Programming and Scripting
Hello,
I'm hoping to get some help on calculating an average time from a list of times (hour:minute:second).
Here's what my list looks like right now, it will grow (I can get the full date or change the formatting of this as well):
07:55:31
09:42:00
08:09:02
09:15:23
09:27:45
09:49:26... (4 Replies)
Discussion started by: jaredhanks
4 Replies
6. UNIX Desktop Questions & Answers
Dear Gurus,
I have tab-delimited text files with matrix containing values. The first column is a identifier and other columns have the corresponding values. I would like to calculate the average value (total number/number of entries) for all entries from 2nd column to the last column in row... (3 Replies)
Discussion started by: Unilearn
3 Replies
7. Shell Programming and Scripting
Hi Friends,
I want to convert a csv file into a ordinary .txt file. I am able to convert but I want the output to look as shown below in the .txt file
table findhost=
{
{"xyz","abc"},
{"rxz","mmz"},
{"vrr","nnz"},
}
default={"NONE"}
My current perl script
#!/usr/bin/env perl... (12 Replies)
Discussion started by: dbashyam
12 Replies
8. Shell Programming and Scripting
Hi, I need help with the awk command.
I have a folder with aprox 500 files each one with two columns and I want to print in a new file, the average of column 1 and average of column 2 and the name of each file.
Input files are:
File-1:
100 99
20 99
50 99
50 99
File-2:
200 85... (3 Replies)
Discussion started by: Lokaps
3 Replies
9. Shell Programming and Scripting
hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe .
eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies
10. Shell Programming and Scripting
Hi,
I need to calculate the average of the following values using shell scripitng.
Can anyone please suggest a solution?
... (10 Replies)
Discussion started by: karan pratap si
10 Replies
LEARN ABOUT DEBIAN
gnujump
GNUJUMP(6) Games Manual GNUJUMP(6)
NAME
GNUjump - a xjump clone
SYNOPSIS
sdljump [ REPLAY ] [ OPTIONS ]
sdljump [ --help ]
DESCRIPTION
GNUjump GNUjump is part of the GNU project.
GNUjump is a clone of the simple yet addictive game Xjump, adding new features like multiplaying, unlimited FPS, smooth floor falling,
themable graphics etc...
The goal in this game is to jump to the next floor so you don't fall down. As you go upper in the Falling Tower the floors will fall
faster. Try to survive longer than anyone.
To make the multiplayer games last longer, you can choose to have more than one live, but the final result will be divided by the number of
lives consumed.
OPTIONS
If you give a replay file as an argument, the program will play it and quit.
-w screenwidth, --width screenwidth
Forces the screen width to screenwidth units.
-h screenheigth, --heigth screenheigth
Forces the screen height to screenheigth units.
-b bitsperpixel, --bpp bitsperpixel
Sets the screen bitdepth to bitsperpixel.
-f , --fullscreen
Force fullscreen mode.
-s , --software
Force software rendering.
-o , --opengl
Force OpenGL rendering.
-a , --antialias
Force antialiasing for rotating sprites.
-n , --no-aa
Disables antialiasing for rotating sprites.
-? , --help
Displays the help screen.
HIGHSCORES
The mode tab in the Highscores might seem strange at first, but it is quite simple: it represents the Game Mode options set in that match.
Each letter represents an option:
1st Letter: The FPS limiter
s: GNUjump default - An arbitrary FPS limit.
x: Xjump - 40 fps, the xjump default
2nd Letter: The player rotation
s: GNUjump default - full rotation.
x: Xjump rotation mode
n: No rotation
3rd Letter: The falling floors scroll mode.
s: GNUjump default - Soft
x: Xjump - Hard
WORLD RANKING
There is also a high score list on the internet at http://www.gnu.org/software/gnujump/highscores.html . Please see that site for instruc-
tions on how to get your scores in the list.
COPYRIGHT
Copyright (C) 2005
Juan Pedro Bolivar Puente <magnicida@gmail.com>
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later version without ANY WARRANTIES.
AUTHOR
GNUjump was written by Juan Pedro Bolivar Puente <magnicida@gmail.com>
GNUJUMP(6)