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 a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  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 .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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