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

  How to call a function from main

Call a function from main(), passing one value to it. Return TWO values, both the square of the number and the number to the power of three.

  You are to implement a simple file system with login

you are to implement a simple file system with login authentication and access control. specificallyconstruct a

  Define a 2-element array of characters

Write an if statement that sets the variable age to 21 when the flag variable adult is set and define a 2-element array of characters named alpha initialized with the characters P, Q.

  Indexed addressing to reverse the elements

Use a loop with indirect or indexed addressing to reverse the elements of the integer array in place - Can you implement a program to indexed addressing to reverse the elements of an array?

  Lu decomposition with gauss elimination

The LU decomposition with Gauss elimination and what is the physical interpretation of the elements of ? Write C++ programs for steps 2, 3, and 4.

  Write the class declaration for a class named complex

Write the class declaration for a class named Complex using the class diagram

  Implement a program to find the position of a cannonball

Write a C++ program that calculates the position of a cannonball that is fired straight up in the air - Implement a program to find the position of a cannonball

  Define the operations using peano arithmetic

Write five tests for each using numbers larger than 100 and verify using natZint and intZnat that your numbers work the same way as the usual natural numbers.

  Write a computer program as a win32 console application

Write a computer program as a Win32 console application in C to take a depth (in kilometers) inside the earth as input data; then evaluate and display the temperature at this depth in degrees Celsius and degrees Fahrenheit. The relevant formulas a..

  Write a program to find the area of a circle

Write a program to find the area of a circle. The program should use two procedures. The first procedure will print out the program heading and ask the user to enter the radius.

  Reverses all the element of an array

Write a function that reverses all the element of an array.that is,the first element is exchanged with the last element; the second element is exchange with the second to the last element,and so on

  Need a prg that lets user enter total rainfal

Need a prg that lets user enter total rainfall for each of 12 months into an array of doubles,prg should then calculate and display total rainfall for year,the average monthly rainfall, and the months with highest and lowest amounts

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