Write a c program that allows the user to make transactions

Assignment Help C/C++ Programming
Reference no: EM131310319

PROGRAMMING ASSIGNMENT

Write a C program that allows the user to make some banking transactions. The program should first prompt the user to enter the current balance of his/her bank account (in dollars and cents). The program should then prompt the user to enter the number of deposits to make, and then the number of withdrawals to make. For this assignment, let's set a maximum of 50 deposits and 50 withdrawals. (etc.)

Here is the change for program #5: There should be at least three non trivial functions in the program! (by that I mean a function that does more than just print a line of text). For example, one function may be to find out how many deposits will be entered, , or the opening balance, or the message before the bank record. etc.

Hints: Your code from assignment #5 does not need to be modified too much to solve this problem. The algorithm is the same. Outputting the contents of the arrays in "record form" is pretty straightforward, and should be done in a loop. (This could be a good place for a function.) If you cannot put your assignment #5 into shape easily - you should start with my version of #5, and then transform it into functions. You may take the concepts from my answer to problem #5, but please do not copy mine verbatim(i.e. change some variable names etc.).

For example: You can use void as the function type and use an argument(s) (e.g. you can have void print_deposits_out ( float deposits [ ], int number_of_deposits) as a prototype.) And you could use a similar one for the withdrawals. Or, you could put the comment before the bank record into a function by sending the closing balance into the function. Furthermore, if you use more than three functions, I will grant you some minor errors that I would normally take off for(-2 or -3 points) for each function used (to a maximum of 100 for a grade). Now that's an incentive!

Reference no: EM131310319

Questions Cloud

Describe a recursive algorithm for finding maximum element : Describe a recursive algorithm for finding the maximum element in an array A of n elements. What is the running time of your algorithm? Draw the recursion trace for the execution of reverseArray(data, 0, 4), on the array data = 4, 3, 6, 2, 6.
Explain the rationale underlying volume consolidation : Explain the rationale underlying volume consolidation. What are the risks associated with using a single supplier for an item?
How does lowest tco differ from lowest purchase price : Explain how constraints in manufacturing are interrelated with a companys decisions regarding volume and variety.
What types of things can go wrong with an alliance : What types of things can go wrong with an alliance? What are the risks that are involved for the organizations? Is there some situation or circumstance where you feel alliances are very risky? What are some ways to overcome potential risks and pro..
Write a c program that allows the user to make transactions : Write a C program that allows the user to make some banking transactions. The program should first prompt the user to enter the current balance of his/her bank account (in dollars and cents).
Determine the expected time to meet this probability : The system administrators want to expire passwords once they have a probability of 0.10 of having been guessed. Determine the expected time to meet this probability under each of the following conditions.
Explain how logistics performance is crucial to jit : Why would a companys costs of manufacturing and procurement tend to increase as the firm changes from an MTP to an MTO strategy?
Critique the components of your talent management strategy : Evaluate the effectiveness of the roles that the strategic leaders played in the formation of the performance management strategy.Develop a five (5) point criteria for evaluating the effectiveness of the talent management strategy and how the dat..
Compare and contrast economic market and relevancy value : Explain the folIowing statement: "The methodology is systems analysis and the theoretical framework is the systems concept."

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Find the pairs in any given matrix

write a c program which will find the pairs in any given matrix, whose sum of pairs are 10.

  Implement the program and find the item

This would be a function called into program. Struggling with the search aspect. Any clarification is greatly appreciated. File is 'inventory.dat'

  What action could you take to remedy the crisis

The boot partition of the computer is formatted with NTFS. No unpartitioned space remains on the hard disk. What action could you take to remedy the crisis?

  C++ program that takes temperature as input

Create a C++ program that takes temperature as input and provides as output your sports decision. Assume that temperatures are only expressed as integers. In the program, include 2 void functions titled getTemp and printActivity, each with an int ..

  Write a set of nested loops that display 10 rows

Write a set of nested loops that display 10 rows of # characters. There should be 15 # characters in each row.

  Refined into a generalization/ specialization hierarchy

Which classes might be refined into a generalization/ specialization hierarchy? List the superclass and any subclasses for each of them.

  Modify the payroll program

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked.

  Write a function that permanently swaps two floats

Write a function that permanently swaps two floats using references.

  Flipflaps - game based on pancake sorting

The project is to design and write a C++ 11/FLTK game program with a graphical user interface.The game is based on "pancake sorting,", which actually has some mathematical significance.

  Write a program that reads an unspecified number of numbers

Write and run a program that reads an unspecified number of numbers and then prints them together with their deviations from their mean.

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Compute and display the new balance

Write a complete C++ program that asks for the beginning balance and the number of checks written. Compute and display the new balance and the bank's service fees for the month.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd