Menu

[Solved]1 Write Program Automatic Teller Machine Dispenses Money Function Main Prompt User Amount Q37176258

1. Write a program for an automatic teller machine that dispenses money. In function main prompt the user for the amount of m

Write programs above in C only. Please and Thank you.

1. Write a program for an automatic teller machine that dispenses money. In function main prompt the user for the amount of money desired. Call a function to determine and return using pointers the least number of 50s, 20s, 10s, 5s, and 1s to be dispensed to the user. Print the number of each type of bill in function main. 2. In function main declare three integers a, b, and c and also declare variables for the largest and second largest. Call the following functions: Call a function randomNumbers to assign a random number between 1 and 50 to each and return using pointer parameters. This function has three pointer parameters. Then call the function maximum to find the largest and second largest of the numbers. Return the largest and second largest through pointer parameters. This function should have 5 parameters: the integers a, b, and c and pointers to the largest and second largest. Call a function printNumbers to print the random numbers, and also the largest and second largest. This function has 5 parameters, none of which needs to be a pointer. Show transcribed image text 1. Write a program for an automatic teller machine that dispenses money. In function main prompt the user for the amount of money desired. Call a function to determine and return using pointers the least number of 50s, 20s, 10s, 5s, and 1s to be dispensed to the user. Print the number of each type of bill in function main. 2. In function main declare three integers a, b, and c and also declare variables for the largest and second largest. Call the following functions: Call a function randomNumbers to assign a random number between 1 and 50 to each and return using pointer parameters. This function has three pointer parameters. Then call the function maximum to find the largest and second largest of the numbers. Return the largest and second largest through pointer parameters. This function should have 5 parameters: the integers a, b, and c and pointers to the largest and second largest. Call a function printNumbers to print the random numbers, and also the largest and second largest. This function has 5 parameters, none of which needs to be a pointer.

Expert Answer


Answer to 1. Write a program for an automatic teller machine that dispenses money. In function main prompt the user for the amount… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *