You are on page 1of 4

6/3/13

Share 0

C program for atm transactions


More Next Blog Create Blog Sign In

C programming questions and answers

C language tricky good pointers questions answers and explanation operators data types arrays structures questions functio recursion preprocessors, looping, file handling, strings questions switch case if else printf advance c linux objective types mc faq interview questions and answers with explanation and solution for freshers or beginners. Placement online written test pr numbers Armstrong Fibonacci series factorial palindrome code programs examples on c c++ tutorials and pdf
C tutorial C Programming Questions C Interview Questions C Programs C Test C programming pdf Program of c++ Create projects Sql Server

Apply Credit Card Online Get 5%* Cashback or 5X* Rewards. No Joining/Annual* fees. Apply Now apply.standardchartered.co.in FT India - Mutual Funds Choose From FT's 6 Funds That Suits Your Investment Needs. Buy Now! www.franklintempletonmutualfund.in HDFC Life Investment Plan Buy Sampoorn Samridhi Plan. And Enjoy Tax Benefits. Get Quote Now! hdfc-life-insurance.com

Objective C Programming ATM Online ATM Banking


Search

ATM Bank Using ATM Overseas ATM Solution


C QUESTIONS AND ANSWERS

C program examples C interview questions and answers Data type questions Variable naming rule questions Operators questions Control flow questions Switch case questions Looping questions Pointer questions String questions Printf,Scanf questions Preprocessor questions Structure questions Commad line argument C questions in Linux C online test C mixed practice sets C tricky questions Example of recursion in c C programming forums

C program for atm transactions

1 .Cc o d ef o ra t mt r a n s a c t i o nw h i l ec u r r e n c i e sa r e1 0 0 0 , 5 0 0 a n d1 0 0 2 .A T Mcp r o g r a ms o u r c ec o d e 3 .Cp r o g r a mf o ra t mm a c h i n e 4 .Cp r o g r a mf o ra t mb a n k i n g # i n c l u d e < s t d i o . h > i n tt o t a l T h o u s a n d= 1 0 0 0 ; i n tt o t a l F i v e F u n d r e d= 1 0 0 0 ; i n tt o t a l O n e H u n d r e d= 1 0 0 0 ; i n tm a i n ( ) { u n s i g n e dl o n gw i t h d r a w A m o u n t ; u n s i g n e dl o n gt o t a l M o n e y ; i n tt h o u s a n d = 0 , f i v e H u n d r e d = 0 , o n e H u n d r e d = 0 ;

C TUTORIAL

Memory mapping tutorial in c

p r i n t f ( " E n t e rt h ea m o u n ti nm u l t i p l eo f1 0 0 :" ) ; s c a n f ( " % l u " , & w i t h d r a w A m o u n t ) ;


1/4

www.cquestions.com/2011/08/c-program-for-atm-transactions.html

6/3/13
Variables tutorial in c Data types tutorial in c Storage classes tutorial in c Looping tutorial in c Pointers tutorial in c Function tutorial in c Array tutorial in c Preprocessor tutorial in c Advanced c tutorial

C program for atm transactions

i f ( w i t h d r a w A m o u n t% 1 0 0! =0 ) { p r i n t f ( " I n v a l i da m o u n t ; " ) ; r e t u r n0 ; } t o t a l M o n e y=t o t a l T h o u s a n d*1 0 0 0+t o t a l F i v e F u n d r e d *5 0 0+ t o t a l O n e H u n d r e d * 1 0 0 ; i f ( w i t h d r a w A m o u n t>t o t a l M o n e y ) { p r i n t f ( " S o r r y , I n s u f f i c i e n tm o n e y " ) ; r e t u r n0 ; } t h o u s a n d=w i t h d r a w A m o u n t/1 0 0 0 ; i f ( t h o u s a n d>t o t a l T h o u s a n d ) t h o u s a n d=t o t a l T h o u s a n d ; w i t h d r a w A m o u n t=w i t h d r a w A m o u n t-t h o u s a n d*1 0 0 0 ; i f( w i t h d r a w A m o u n t>0 ) { f i v e H u n d r e d=w i t h d r a w A m o u n t/5 0 0 ; i f ( f i v e H u n d r e d>t o t a l F i v e F u n d r e d ) f i v e H u n d r e d=t o t a l F i v e F u n d r e d ; w i t h d r a w A m o u n t=w i t h d r a w A m o u n t-f i v e H u n d r e d*5 0 0 ; } i f( w i t h d r a w A m o u n t>0 ) o n e H u n d r e d=w i t h d r a w A m o u n t/1 0 0 ; p r i n t f ( " T o t a l1 0 0 0n o t e :% d \ n " , t h o u s a n d ) ; p r i n t f ( " T o t a l 5 0 0n o t e :% d \ n " , f i v e H u n d r e d ) ; p r i n t f ( " T o t a l 1 0 0n o t e :% d \ n " , o n e H u n d r e d ) ; } r e t u r n0 ;

POPULAR POSTS

C program examples C interview questions and answers Check given number is prime number or not using c program MULTIPLICATION OF TWO MATRICES USING C PROGRAM C multiple choice questions and answers pdf Write a c program to reverse a string Find out the perfect number using c program TO FIND FIBONACCI SERIES USING C PROGRAM Program to convert decimal to binary in c QUICK SORT USING C PROGRAM

S a m p l eo u t p u t : E n t e rt h ea m o u n ti nm u l t i p l eo f1 0 0 :7 8 0 0 T o t a l1 0 0 0n o t e :7 T o t a l 5 0 0n o t e :1 T o t a l 1 0 0n o t e :3

SUBSCRIBE VIA EMAIL

Enter your email address:

Subscribe

Delivered by FeedBurner

C PROGRAMMING QUESTIONS AND ANSWER

C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c
STANDARD OF QUESTIONS ?

1. Write a c program to convert decimal number to hexadecimal number. 2. Write a c program to convert decimal number to octal number. 3. Write a c program to convert octal number to decimal number. 4. Write a c program to convert octal number to hexadecimal number. 5. Write a c program to convert hexadecimal number to decimal number. 6. Write a c program to convert hexadecimal number to octal number. 7. Write a c program to convert binary number to decimal number. 8. Write a c program to convert binary number to hexadecimal number. 9. Write a c program to convert binary number to octal number. 10. Write a c program to convert decimal number to binary number. 11. Write a c program to convert hexadecimal number to binary number. 12. Write a c program to convert octal number to binary number. 13. Write a c program to convert farehnite to centigrade. 14. Write a c program to convert centigrade to fahrenheit. 15. Big list of c program examples
Recommend this on Google

5 comments:
ajith 9/13/11, 11:29 PM super
SUBSCRIBE TO

Reply

www.cquestions.com/2011/08/c-program-for-atm-transactions.html

2/4

6/3/13
Posts Comments

C program for atm transactions


Chamnan Chamnan 2/19/13, 3:49 PM good web site
MY HEADLINES

Reply

C programming questions and answer C questions and answers Debugging questions in c with answers Aptitude questions and answers in c C basic questions Multiple choice questions in c Objective questions of c Program in c language Simple program example in c language Tricky c questions and answers C programming online test C Linux interview questions and answers Looping questions in c and answers C string questions and answers with explanation C operator questions with answers Check the given number is palindrome number or not using c program C pointers questions Data type questions in c Check given number is prime number or not using c program struct bit fields questions in c C questions answers C interview questions and answers How to test palindrome in c++ Palindrome number in c++ Program of palindrome number in c++ C++ code to get sum of all odd numbers in given range Anonymous 5/6/13, 8:34 PM int main() { int amt; printf("Enter the amount to withdraw : "); scanf("%d",&amt); printf("\nNotes of 1000 required are %d", amt/1000); printf("\nWhile Notes of 500 required are %d", ((amt % 1000)/500)); printf("\nAnd notes of 100 required are %d",((amt % 1000)% 500)/100); getch(); return 0; } Reply anil kumar 5/6/13, 8:25 PM This comment has been removed by the author. Reply Anonymous 4/9/13, 9:29 AM int totalFiveFundred =1000; You misspelled Hundred :) Reply

ABOUT ME

ritesh kumar View my complete profile

Links to this post


GOOGLE+ BADGE

Create a Link Newer Post Subscribe to: Post Comments (Atom)


Debit Card ATM ATM of America ATM Machine ATM Placement

Home

SHARE IT

MUST VISIT

www.cquestions.com/2011/08/c-program-for-atm-transactions.html

3/4

6/3/13

C program for atm transactions


Grab this Headline Animator

C LOVER COMMUNITY

Join this site


w ith Google Friend Connect

Copyright@ritesh kumar. Powered by Blogger.

www.cquestions.com/2011/08/c-program-for-atm-transactions.html

4/4

You might also like