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

  Compound and nested if statements

Compound and Nested If Statements- Suggest one (1) example of a problematic programming situation or scenario that the use or implementation of a compound if statement could resolve. Justify your response

  Reduce the numerator and denominator

Write the function  in C ++ to reduce the numerator and denominator in the Rat class to lowest terms.

  Create a variable that asks user what their monthly income

On average people in Las Cruces spend between 12-16% of their annual income on entertainment. Create a variable that asks the user what their MONTHLY income is and have an fprintf statement that says

  Program to read the numbers and add certain digit

Write a program that will read in 5 numbers and add 10 to the first number, 20 to the second number, and 30 to the third number, 40 to the fourth and 50 to the 50th.

  Searching f and removing certain states from the hash table

use the class hashT, ''Hashing: Implementation Using Quadratic Probing,'' which uses quadratic probing to resolve collision, to create a hash table to keep track of each state's information. Use the state's name as the key to determine the hash addre..

  Write a c++ program to draw the five olympic rings

Write a C++ program to draw the five Olympic rings. Make the circles have a thickness of 5 pixel

  Using virtual methods, organize the animals

Using virtual methods, organize the animals in a small zoo, having as guests lions, parrots, alligators, penguins, elephants, cobras, zebras, hawks, turkeys and rabbits.

  If a class is derived protected

If a class is derived protected from a base class, explain how this affects the inheritance of all public, protected, and private members of the base class by the derived class.

  Write an iterative version and a recursive version

Write a main program that illustrates the work of your functions. E.g., if a[ ]={1,2,3,3,4,5} then 3 occurs 2 times and 7 occurs 0 times.

  Define a static method samecolor in the car class

Write an abstract class Car to implement the Comparable interface. Write a Truck class and a Sedan class to implement Car. define a static method sameColor in the Car class to find out weather a Truck and a Sedan has the same color.

  Draw the heap

Eric Rowe Starting with an empty minheap, draw the heap after each the completion of the following operations  and repeat for a maxheap (replace removeMin() with removeMax()). Upload your drawings here. Hand drawn is fine:

  Calculates the sum of the cube roots of two integers.

Wrtie a program that calculates the sum of the cube roots of two integers. The program should use the following functions as well as a main funcion. 1) enter one positive value 2) compute the cube root of one integer 3) report the value of two intege..

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