Develop a c++ program to solve the problem

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

Develop a C++ program to solve the problem described below:

The cashier's office needs a C++ program that they can use to keep track of a cashier's daily financial transactions.
The user (cashier) will load the program just before he/she opens for operation each day and continues to use the program until he/she is done for the day.

When the program is loaded, it should first establish all relevant user-specified parameters which are the name of output file, the minimum cash balance below which to display a warning message (further described below) and the starting cash balance (which is the amount of cash he/she is given at the beginning of the business day).

It should next output (to terminal and output file) messages regarding the user-specified parameters (described above) and the starting check balance (which is always $0.00).

The program will then process transactions one at a time, adjust the current balances accordingly (i.e., the amount of a transaction is deducted from the current cash balance for the case of a debit transaction where the cashier pays cash to a customer, the amount of a transaction is added to the current cash balance for the case of a cash credit transaction where the cashier receives cash, which may be from a customer or from his/her supervisor when the current cash balance runs low, and the amount of a transaction is added to the current check balance for the case of a check credit transaction where the cashier receives a check), and keep track of the total count and total amount of each type of transaction processed.

After each transaction, a message about the transaction just made and the updated balance should be displayed.
An additional warning message should also be displayed if the current cash balance has been updated and the new amount is below the minimum balance (specified by the user when the program loads, as mentioned earlier) to remind the cashier to get more cash from his/her supervisor.

If an attempted debit transaction cannot be completed successfully (because there is not enough cash available), an error message should be displayed instead.

When the cashier is done for the day and chooses to quit the program, the starting and final balances should be displayed, along with the total count and total amount of each type of transaction processed for the day.
For a more permanent record, the cashier's office would like to also write all displayed messages (BUT NOT input prompts and user input) to a file.

The cashier's office would like the program to enable the user to specify the name of the output file when the program loads (as mentioned earlier).

Reference no: EM13937605

Questions Cloud

Facilities for undergraduate students : We should write Main hypothesis related to subhypothesis which are: 1) The student's Union provides more facilities for undergraduate students more than postgraduate students.
Show each transaction in the accounting equation : Show each transaction in the accounting equation. Prepare the contributed capital portion of the shareholders' equity section at June 30, 2007.
Based on your analysis should the project be accepted : Find the net present value, internal rate of return, payback period, discounted payback period, and profitability index of the proposed project. Based on your analysis should the project be accepted?
Depreciation is straight-line to zero over life of project : We are evaluating a project that costs $1034668, has a seven-year life, and has no salvage value. Assume that depreciation is straight-line to zero over the life of the project. Sales are projected at 43281 units per year. What is the NPV of the proj..
Develop a c++ program to solve the problem : If an attempted debit transaction cannot be completed successfully (because there is not enough cash available), an error message should be displayed instead.
Review about teaching english language in libya : Write a literature review about teaching English language in Libya.
How would stock dividend be shown in the accounting equation : How would the stock dividend be shown in the accounting equation? How many shares of stock are outstanding after the stock dividend?
Nature of contemporary business : a) Demonstrate an understanding of the nature of contemporary business and business activities and operations
The annual effective interest rate : Cindy borrows 13,500 for 12 years at an annual effective interest rate of i. She accumulates the amount necessary to repay the loan by a sinking fund. Cindy makes 12 payments of P at the end of each year, which includes payment on the loan at an annu..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program for keeping a course list

Write a program for keeping a course list for each student in a college. The information about each student should be kept in an object that contains the student's name and a list of courses completed by the student.

  Implement a simple calculator program

Implement a simple calculator

  Create the switch statement to implement set of conditions

Create the necessary switch statement to implement this set of conditions.

  Invites user to enter a random string

Invites user to enter a random string of lower case letters 2)get the string on the same line as the invitation 3)checks correctness of input(if its only lowercase letters 4)computes number of letters that is not being used 5)program out puts the ans..

  Prepare a main function

Write a function that converts an input of some integer number of nickels into outputs of integer numbers of dollars, quarters, and nickels.

  The westfield carpet company has asked you to write an

the westfield carpet company has asked you to write an application that calculates the price of carpeting for

  Method celsius return celsius equivalent of fahrenheit

Method Celsius return the Celsius equivalent of a Fahrenheit temperature,using the calculation Celsius = 5.0/9.0*(Fahrenheit -32); method Fahrenheit returns the Fahrenheit equivalent of a Celsius temperature, using the calculation  Fahrenheit = 9.0/5..

  Write a program that converts a char to ascii

Create a program that reads in an arbitrary number of items and stores them in a vector. Then output the contents of the vector. Write a program that converts a char to ascii.

  Implement the bounded stack with a concrete class

Using Eclipse, implement the bounded stack with a concrete class names

  Create a program that displays the number of days

Create a program that displays the number of days in a month. Use a 12-element one-dimensional array to store the number of days in each month

  Program two decimal places

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both  the mass and the weight rounded to two decimal places. (Note that for  standard Earth gravity, 1 kilogram =..

  Exploring health care professions

Exploring Health Care Professions: 1) Go to the textbook companion Web site or CD. Explore the Professional Profiles Videos. NOTE: You will also be using the profession you choose in this assignment to answer questions for later lessons in the course..

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