Program that allows the user to make some ledger transaction

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

Write a C program that allows the user to make some ledger transactions. The program should first prompt the user to enter the current balance of his/her ledger account (must allow for dollars and cents, and not less than zero). The program should then prompt the user to enter the number of debits to be posted, and then the number of credits to be posted. For this assignment, let's set a maximum of 25 credits or debits, you'll see why as you read on.

Using a loop, the program should then prompt the user to enter the amount of the first credit (a positive amount to add to the ledger balance), the amount of the second, the third, & etc., until the number of credits have been processed.

Using a second loop, the program should then prompt the user to enter the amount of the first debit (a positive amount to be subtracted from the ledger balance), then amount of the second, the third, etc. until the number of debits have been processed. Once all credits and debits have been made, the program should output the ledger balance.

Reference no: EM13810060

Questions Cloud

Effects of cortisol release on the human body : Describe the stress response and the effects of cortisol release on the human body. (With which division of the nervous system is the stress response associated?)
Bioterrorism thesis paper for nyanya : Bioterrorism thesis paper for nyanya
Describe the potential hazards and the possible solutions : describe the topic, the potential hazards and the possible solutions Select. Read the topics of other students....do not use the same topic another student has used.
Leaving but for a different product line : Russell Smith - design specialist. Russell is in the same role as the person leaving but for a different product line. Russell is new to the company; however, he has been involved in creating a similar product at a prior company but in a more juni..
Program that allows the user to make some ledger transaction : Write a C program that allows the user to make some ledger transactions. The program should first prompt the user to enter the current balance of his/her ledger account (must allow for dollars and cents, and not less than zero)
Determine the required value of h : Determine the required value of H to eliminate the effect of the disturbance.
Challenges of ensuring all business : You are to prepare a business report that addresses the challenges of ensuring all business units in the supply chain have the right amount of the right product in the right place at the right time and at the right cost.
Design an interface interactive game : First, design an interface InteractiveGame that generalizes the playing of any two-person game between a human player and the computer. Design two actual games, Nim and another game of your choice, except TicTacToe, that implement your Interactive..
Principles of finance : Principles of Finance

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Develop a time delay procedure

Develop a time delay procedure for the 2.0 GHz Pentium 4 that waits for 80s.

  To overload a member function of the base class

To overload a member function of the base class A: the name of the function and the formal parameter list of the corresponding function in the derived class must be the same. B: the name of the function must be different

  Static field holds total winnings for all horses in stable

static field holds total winnings for all horses in the stable // total winnings are shown after each horse wins,

  Design a program read the following information from the

design a program read the following information from the keyboard in which base class consist of employee name code and

  Write a program that asks the user for non-negative integer

The factorial of n (written n!) is the product of the integers between 1 and n. Thus 4! = 1*2*3*4 = 24. By definition, 0! = 1.

  Computer graphicsdevelop a simple interactive

computer graphicsdevelop a simple interactive two-dimensional spaceship deck plan editor using opengl and glut. your

  Compute the squares of the numbers in the array

Write a java program to find the number in the given list. Write a java program to find the location of an element in the list.

  State whether the following are valid switch statements

State whether the following are valid switch statements. If not, explain why. Assume that n and digit are int variables.

  Documenting the testing of c program

Writing a test plan and writing a C program with reasonable comments and sensible variable names - Test and documenting the testing of your c program

  Print the matrix in a format and transpose of the matrix

Write a program which asks the user for 9 integers representing the elements of a 3 by 3 matrix by rows, stores the numbers in a 2-dimensional C++ vector, prints the matrix in a pretty format, prints the transpose of the matrix in a pretty format,..

  Calculate the potential energy of a rock with a mass of 55

calculate the potential energy of a rock with a mass of 55 kg while sitting on a cliff that is 27 m

  Create program that uses functions and reference parameters

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

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