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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

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

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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