English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Problem:
Write a c program that will handle ATM Transactions. Such transactions includes: (1)Balance Inquiry, (2)Deposit, (3) withdrawal, (4) exit. Aside from these, the user should be presented a menu showing these transactions as possible options.

Additional Requirements:
1. Initial Balance is 5,000
2. Deposit amount should be greater than zero, if the user enters zero or negative amount, the program should print "Deposit amount should be greater than zero"
3. Withdrawal amount should not exceed the available balance, if the user does, print "Withdrawal amount exceeds the available balance".
4. Withdrawal amount should be greater than zero, if the user enters zero or negative amount, the program should print "Withdrawal amount should be greater than zero"
5. Maximum withdrawal amount is 4,000 per transaction, display another error message if the user does.
6. The program should print the current balance for every transaction.
7. The program should end if the user chooses to exit.

2007-01-08 08:29:41 · 7 answers · asked by Cyberpaul 1 in Computers & Internet Programming & Design

7 answers

while (hell != "freezes over")
{
cputs("Do your own homework!")
}

2007-01-08 08:41:34 · answer #1 · answered by G 6 · 0 0

Declare variables to hold the coordinates Use printf() to prompt the user Use scanf() to get input Use if statements to figure out which coordinate it's in. Use printf() to report the quadrant Here's something to get you started: int main ( int argc, char * argv[] ) { int x; printf("Enter x coordinate:"); scanf("%d", &x); if ( x < 0 ) { printf("Quadrant 2 or 3.\n"); } else { printf("Quadrant 1 or 4.\n"); } return 0; } Fix it up, get it working, add in the y coordinate, and getter done. By the way, do you know what to report when either coordinate lies on an axis? You should figure out issues like that before you type a single instruction. Study hard and have fun!

2016-05-23 12:40:54 · answer #2 · answered by ? 4 · 0 0

If you take a programming course and pay attention, you will be able to address this problem. Already taking such a course? Oh, my. Perhaps a change of career is indicated.

2007-01-08 11:28:10 · answer #3 · answered by miket 4 · 0 0

Yes I could write such a program - but then why would I spend my time doing your hoemwork?

2007-01-08 08:36:15 · answer #4 · answered by Anonymous · 0 0

What school do you go to? I think most of the colleges and universities would have help available to you.

2007-01-08 09:03:02 · answer #5 · answered by Anonymous · 0 0

my rate is $100. an hour.

2007-01-09 01:45:47 · answer #6 · answered by justme 7 · 0 0

gosh, this should be homeworkcentral.net

2007-01-08 08:35:41 · answer #7 · answered by Julio M 3 · 2 0

fedest.com, questions and answers