10-19-2002
basic math program 4 child
Iam writing a script for my sisters friends little brother
i want the program to say hello lets say his name is Joe and ask him how he is and he can write a reply back saying fine and then it replys "Iam happy you are (his response) today
and then it goes into a basic math where he can put in a number hit enter put in another number and then it tells him the awnser.
Its to work on a win 98 machine and in C or Perl if it has to be
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies
2. Shell Programming and Scripting
Can anyone create a program that
would test the math skills of the user. Assume that it would test integer addition, The program should ask the question,collect the integer response, evaluate and notify the user if their answer was correct or incorrect. I would assume integers in the range... (5 Replies)
Discussion started by: ccp
5 Replies
3. Programming
Hi,
I am calling a program that greps and returns 72536 bytes of data on STDOUT, say about 7000 lines of data on STDOUT.
I use pipe from the program am calling the above program. Naturally, I execute the above program (through execl() ) throught the child process and try to read the... (4 Replies)
Discussion started by: vvaidyan
4 Replies
4. Programming
I'd like to write a program (I'm flexible on language; C/C++ was my original idea but a scripting language would probably be better) that runs hundreds of programs, but only N = 4 (say) at a time. The idea is to keep all the cores on a multicore machine busy.
How can I do this? In particular,... (6 Replies)
Discussion started by: CRGreathouse
6 Replies
5. HP-UX
Hi,
The "program monitor" command in BT-Basic prompt you for a user name and a password.
How can I grant access only to certain users ?
Thank you. (0 Replies)
Discussion started by: fosiceanu
0 Replies
6. What is on Your Mind?
My auntie told me that she has been suspecting that her little kids are looking at some "illegal" sites online. She put a free web blocker on the computer, but they might be finding loopholes. She wanna install some child-control program to see what's going on. There are so many since I searched... (5 Replies)
Discussion started by: Bluerosen
5 Replies
7. Homework & Coursework Questions
I am a newbie to UNIX. I'm learning UNIX on my own, just trying to get the jerk of how things work in UNIX environment. I am familiar with Windows environment.
Can anyone pls write simple 'envprint' programs to :
1) List all the environment Information (using the -l or --l options)
2) ... (1 Reply)
Discussion started by: agup17
1 Replies
8. Shell Programming and Scripting
I have this math program on Perl and when I run it one of the math problems that comes up is 0/0 and perl makes the answer 4. How can I program perl to not include numbers /0?
What I have for the division portion is:
$solution = $num1 * $num2;
($solution, $num1) = ($num1, $solution);
$question... (2 Replies)
Discussion started by: germany1517
2 Replies
9. Homework & Coursework Questions
Hello! I'd like some help with this assignment.
1. The problem statement, all variables and given/known data:
1)Write a shell script that can uses two types of files as inputs, apache.log and apache.error.log
2)Make it so that you can switch between the two file types
3)Make it so that the... (5 Replies)
Discussion started by: malfiory
5 Replies
LEARN ABOUT DEBIAN
dealer
DEALER(6) User Documentation DEALER(6)
NAME
dealer - bridge hand generator
SYNOPSIS
dealer [-023ehuvmqV] [-p n] [-g n] [-s seed] [-l n] [inputfile]
DESCRIPTION AND EXAMPLE
The program dealer can be used to generate hands for partnerships bidding training or for generating statistics that can be used to design
conventions, or win postmortems.
Running the program involves 3 steps. First, the user has to write an input file containing hand-descriptions and action. A very simple
example would look something like:
condition shape(north, any 4333 + any 4423) and hcp(north)>=19
action printall
The first line specifies a condition for the north hand, in this case, a hand with 4333 or 4432 shape and at least 19 high card points. The
second line tells the program to print the 4 hands. The program reads from standard input, so in principle, it is possible to enter the
conditions directly into the program. Using a file is a lot more practical though, as it allows the user to re-use conditions and fine-tune
the conditions.
Then the program has to be run, it reads the file, looks at the various command line switches and then produces a number of hands. The
output appears on the screen but can be re-directed to a file.
Finally, the user has to look at output and analyze the produced hands. Alternatively, the output can be used for a playing program.
OPTIONS
-e Exhaust mode (alpha version).
-g number
Maximum number of hands to generate (default is 1000000).
-l number
Instead of shuffling, deals are read from the file library.dat by M. Ginsberg (see [1]). When using this, the tricks() function is
quite fast and bridge.exe from GIB is not used.
[1] ftp://ftp.cirl.uoregon.edu/pub/users/ginsberg/bridge/
-m Shows a progress meter.
-p number
Maximum number of hands to produce (default is 40).
-q Suppress PBN output (useful for testing, then switch it back on when generating the "final" sample).
-s number
Uses number as the seed for the random generator, running the program twice with the same seed will produce the same sequence of hands.
-u Select uppercase for the symbols "AKQJT" (default is lowercase).
-v Toggle verbose output, prints statistics at the end of the run (default is on).
-V Emit a version-identification string and exit.
-h Help, prints the syntax.
-0 No swapping, each deal is generated normally (shuffling) (default).
-2 2-way swapping, after each shuffle another deal is generated by permuting E and W, leaving N and S in place (NB: not fully compatible
with predeal).
-3 3-way swapping, after each shuffle another 5 deals are generated by permuting E, W, and S every which way, leaving N in place (NB: not
fully compatible with predeal).
BUGS
I would prefer if you did not use this program for generating hands for tournaments. I have not investigated the random number generation
closely enough for me to be comfortable with that thought.
SEE ALSO
/usr/share/doc/dealer/Manual, dealer.dpp(6), deal(6).
AUTHORS
Hans van Staveren <sater@sater.home.cs.vu.nl>
Henk Uijterwaal <henk@ripe.net>
Manpage: Christoph Berg <cb@df7cb.de>
COPYRIGHT AND LICENSE
This program is hereby put in the public domain. Do with it whatever you want, but I would like you not to redistribute it in modified form
without mentioning the fact of modification. I will accept bug reports and modification requests, without any obligation of course, but
fixing bugs someone else put in is beyond me.
Dealer 2012-03-04 DEALER(6)