Thread: A c program demonstrating a tiny bank

  1. #1
    Registered User
    Join Date
    Jan 2021
    Posts
    1

    A c program demonstrating a tiny bank

    Itís a project Iím supposed to do i need help and Iíve got a template which could be followed :

    This is the question:
    Description
    Code:
    You are supposed to implement a simple software that models an exaggeratedly small bank and its 
    simple transactions and operations. The bank can keep track of some customers account in a
    database file.
    A customer is modeled by the following items:  Customer Number (random 4 digit number given by the system at the time of creating)  Customer Full Name (string with max length 20)  Customer Date of Birth
    o It has Day, Month, Year (each one is an integer)  Customer Address (string with max length 100)  Customer Telephone number (string with max length 20)  Customer Balance (a double number) Tellers are modeled as follows:
     Tellerís Full Name (string with max length 20)  Tellerís User Name (string with max length 10)  Tellerís Password (string with max length 10)
    The information about Customers and Tellers are kept into two separated files customers.txt and 
    tellers.txt. An example of tellers.txt file is given bellow:
    Albert Einstein, albert1879, qazedc789456
    Jim Carrey, jimjim, 123mnbvcxz
    Ö
    An example of customers.txt file is given below:
    9654, Bill Gates, 28/10/1955, {1835 73rd Ave NE Medina WA 98039 Zillow}, +14258828080, 91000000000.00
    1151, Shahin Mehdipour Ataee, 1/1/1983, {C2, Riverside, Catalkoy, Girne}, +905331234567, 500.00
    Ö
    The system works as below:
    After running the program, the system asks the user to login. A teller should enter his/her username 
    and password to be able to log into the system. The system asks at most 3 times from the teller to 
    enter correct username and password after, the 3
    rd unsuccessful try it stops asking and terminates. 
    After successful logging in, the system shows a welcome message to the teller (exp. Welcome Albert 
    Einstein!)
    Then the system asks the teller to choose a transaction option:
    1. List customersí summary
     Lists the summary of the customersí information in a table on the screen.  Customers number
     Customers name
     Customers balance
    2. Add a new customer
     Asks the teller to enter data for a new customer.
     The customer number is chosen by the system randomly but it should not be already 
    assigned to another customer.
    3. Show specific customer information
     Ask the teller to enter either an account number or a name
     If the account number exist the system shows the full information of the customer
     If the name exist the system shows the list of all customers who their names 
    matched with the key then the teller chooses one of them then the system shows 
    the full information of the chosen customer
    4. Delete specific customer
     The system only accepts customer number
     If it matches it asks for confirmation after the confirmation the system deletes all the 
    information of the customer from the database file.
    5. Deposit money to the customer account
     The system only accepts customer number
     If it matches the system asks the teller that how much should be deposited, and after 
    the teller entered the value it updates the customerís balance in the database file.
    6. Withdraw money from the customer account
     The system only accepts customer number
     If it matches the system asks the teller that how much should be deposited, and after 
    the teller entered the value it updates the customerís balance in the database file.
    7. Log out
     The system goodbyes the tellers and the program terminates.

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,010
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 12-29-2016, 04:45 AM
  2. not able to understand this tiny tiny method
    By noobcpp in forum C++ Programming
    Replies: 5
    Last Post: 10-20-2008, 10:42 AM
  3. Need help with a tiny program
    By Rahiiyja in forum C++ Programming
    Replies: 22
    Last Post: 07-05-2007, 02:15 PM
  4. bank account program
    By JJH35 in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2006, 06:05 PM
  5. tiny error with C Program
    By JohnMayer in forum C Programming
    Replies: 4
    Last Post: 07-11-2002, 03:09 AM

Tags for this Thread