Program ask user to enter starting amount in savings account

Assignment Help Programming Languages
Reference no: EM1364789

When someone goes to a bank teller machine the person may ask the machine to perform an  action from a menu of possible actions. If the user has a savings account and a checking account,  write a program to perform one of these tasks as described in the following section.

Deposit into the savings account
Transfer from the savings into the checking account
Withdraw from the checking account.
Name your program bankAccount.c
2 Specifications
There is a Savings and a Checking account. Your program should begin by asking the user to enter the starting amount in the checking and savings accounts.

Your program then requests for an action from a menu with 3 possible options: deposit, transfer or withdraw. If the selected option is not available the program states "Entered selection is not available".

If the selected option is 1, 2, or 3, depending on the option selected by the user, the program then asks for the appropriate amount related to that request. For example if the withdraw option is selected, the program should ask for the withdraw amount like "Enter withdraw amount:", or for transfer it should prompt "Enter the transfer amount" and so on.

If the entered amount is appropriate, the program performs the requested action, and prints the new savings account and checking account balances. If the entered amount is inappropriate, the program prints a message to state "the entered amount is not appropriate for the selected task". Appropriate amounts are defined as follows:

For a withdraw selection, the amount should be positive and it should be less than the available money in the checking account.

For a deposit the amount should be positive. For a transfer, the amount must be positive and not more than the available money in the savings account.

Reference no: EM1364789

Questions Cloud

What is the distance of closest approach of the two particle : what is the distance of closest approach of the two particles. explain two ways in which you could you this equipment to raise the crate.
Two equal congressional bodies : Why do you think that there is a difference in the requirements between the Senate and the House of Representatives? Why not have two equal congressional bodies?
Cost drivers and value-added processes : What is activity-based costing? What are some of the key elements of activity-based costing? How does this method differ from a more traditional costing method? Do you prefer ABC over traditional costing methods?
Operations management at fedex : Describe the nature of the operations given your newfound understanding of operations management and productivity.
Program ask user to enter starting amount in savings account : There is a Savings and a Checking account. Your program should begin by asking the user to enter the starting amount in the checking and savings accounts.
Experiencing double-digit percentage increase : Show what suggestions can you offer that may reduce the rate of cost increases
Explain what are good defenses from the standpoint : Explain What are good defenses from the standpoint of the power company and What are the requirements for a plaintiff to prove negligence against a defendant?
Healthcare challenges for providers : Analyze three of the greatest challenges that health care providers will confront in the next few years due to health care reform, the changing health care marketplace
Discretionary and committed fixed costs : Distinguish between discretionary and committed fixed costs.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write if statement to display acceptance messag

Write an if statement that displays an acceptance message for an astronaut candidate if the person's weight is between the values of opt_min.

  Describe issues-web site designers when adding multimedia

Describe some of the issues web site designers must consider when adding multimedia to a web site. Consider issues such as bandwidth, server load, or others you consider to be important. Please provide references.

  Write script to declare and sets variable equal to balance

Write a script that declares and sets a variable that's equal to the total outstanding balance due. If that balance is greater than $10,000.00, the script should return a result set consisting of VendorName.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Explain drawbacks to using ajax technology

What are some of the other drawbacks to using AJAX technology? Why are some of these very significant items to consider before implementing AJAX on a given website?

  Build a student record managing system application

Build a student record managing system application

  Top-down recursive descent parser

Write a hand-coded top-down recursive descent parser.

  Invoke method to tell air conditioner object to turn on

Assume there is a reference variable myAC to an object of this class, which has already been created. Using the reference variable, invoke a method to tell the air conditioner object to turn on.

  Program that will help user with metric conversions

Write a program that will help the user with metric conversions. Your program should allow the user to specify the names of the units as strings (e.g., centimeters, liters, grams, for the metric system and inches).

  Design algorithm to will read file and produce weekly report

Design an algorithm that will read file and produce a weekly report of the net earnings for those employees. Net earnings are gross earnings minus deductions.

  C program to accept three numbers inputs by user

Write down C program to accept three numbers input by a user, and outputs a table of temperatures in Fahrenheit, Celsius, and Kelvin.

  Smallest and largest values in element floating-point array

Copy 11-elemts array source into first portion of 34-element array sourceCopy. Find out the smallest and largest values in 99-Element floating-point array data.

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