10-07-2010
Create a simple ATM (Cash machine simulation)
I need to create a simple ATM (Cash machine simulation in unix) which shows a welcome screen, then a login screen to enter 3 users details. help please on the coding
The users details need to be in a txt file: the details are: (PIN No, First name last name, Account number, Balance, Histrosy)
PIN001, Dale Cooper, 111, 1000, History
PIN002, Paul Atreides, 222, 2000, History
PIN003, Ray Manzarek, 333, 3000, History
I Understand this can be written in a script. If so, if anyone can help with creating a script that shows "Welcome to ATM Machine", What is your name? (the user would then input their name to log on. Then enter there pin number which is attached to the file to show their balance. It may seem very simple to create but I urgently need help.
I am using Putty on a Windows machine.
Last edited by oobla01; 10-07-2010 at 07:51 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hia all,
I am trying to create a simple script, that will keep me a todo file/log.
The idea is to have to scritps, one to enter a new todo file, one to delete (it can be one with different inputs, but this is not the point)
e.g.
> newEntry Call_home
- will add a new line to the log like... (4 Replies)
Discussion started by: sierra_aar
4 Replies
2. Shell Programming and Scripting
Hi
I want to write a small script that will create folders named from `AAAA' all the way to `ZZZZ'.
That is:
`AAAA'
`AAAB'
`AAAC'
...
`AABA'
`AABB'
`AABC'
...
`ABAA'
`ABAB'
`ABAC'
...
`ABBA'
...
`ZZZZ' (4 Replies)
Discussion started by: ksk
4 Replies
3. Solaris
hi,
I'm newbie in Solaris 10. can someone explain me the steps of how to create mirror disk in Solaris machine.
thanks in advance (5 Replies)
Discussion started by: Wong_Cilacap
5 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I need to create a simple ATM (Cash machine simulation in unix) which shows a welcome screen, then a login screen... (2 Replies)
Discussion started by: oobla01
2 Replies
5. UNIX for Dummies Questions & Answers
Hi guys,
I recently discovered this problem and any help would be great.
1) Create a file in vi named Accounts_File with the following data:
The user, the name, the pin number, current balance and transaction history.
There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies
6. Shell Programming and Scripting
Hi guys,
I recently discovered this problem and any help would be great.
1) Create a file in vi named Accounts_File with the following data:
The user, the name, the pin number, current balance and transaction history.
There are 3 users who need to be inputted with all their PIN, etc... (1 Reply)
Discussion started by: Jimmy_c
1 Replies
7. Shell Programming and Scripting
Guys I want to do this:
copy:
/var/router/system1/config/backup/install.put
/var/router/system2/config/backup/install.put
/var/router/system3/config/backup/install.put
/var/router/system4/config/backup/install.put
into:
/var/router/system1/config/install.dat... (22 Replies)
Discussion started by: DallasT
22 Replies
8. Shell Programming and Scripting
Hello to all
Background info:
Local machine : Linux, /bin/bash
Remote machine (for the user used for ssh) : SunOs, /bin/ksh
(so we have different OS, different Shells)
My problem :
From the local host i execute
$ var=bla
$ result=$(ssh -q user@remote-machine "
> echo \"this is... (12 Replies)
Discussion started by: black_fender
12 Replies
9. Shell Programming and Scripting
Dear all,
I have a directory named A and some subdirectories named B, C, D with .xml files. I want to use the following command to strip the file.
sed -re ':start s/<*>//g; /</ {N; b start}' file.xml > file.xml
At the same time, I want to remove the blank lines using
sed '/^$/d'
How can... (6 Replies)
Discussion started by: corfuitl
6 Replies
10. Shell Programming and Scripting
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Discussion started by: torchij
16 Replies
LEARN ABOUT XFREE86
atmaddr
ATMADDR(8) Maintenance Commands ATMADDR(8)
NAME
atmaddr - list and maintain local ATM addresses
SYNOPSIS
atmaddr [-n] [itf]
atmaddr -r [itf]
atmaddr -a [itf] atm_addr
atmaddr -d [itf] atm_addr
atmaddr -V
DESCRIPTION
atmaddr is used to list the local addresses configured for ATM interfaces and to manually change the list of addresses. If the interface
number itf is omitted, interface 0 is used by default. The ATM address atm_addr can be any valid ATM SVC address, e.g. an E.164 address or
an ATM Forum NSAP address.
If invoked without options, atmaddr lists the addresses that are currently configured on the specified interface.
Note that local ATM addresses are normally automatically maintained by the ILMI demon.
OPTIONS
-a append the specified address at the end of the list.
-d delete the specified address from the list.
-n numeric address output only. No address to name translation is attempted.
-r reset (clear) the local address list of the specified interface.
-V print the version number of atmaddr on standard output and exit.
AUTHOR
Werner Almesberger, EPFL ICA <Werner.Almesberger@epfl.ch>
SEE ALSO
ilmid(8)
Linux April 26, 2000 ATMADDR(8)