Prompt user for a proper input which is of the form accnum

Assignment Help Financial Management
Reference no: EM132382449

Question

Your bank has 1000 accounts - valid account numbers are 1 through 999

(account number 0 is for bank use only - users are not given that number).

Assume every account's opening balance is 500 & every account needs to maintain a minimum balance of 100.

The valid operations are d (deposit) and w (withdraw).

Keep offering to do transactions until user wants to come out (ask user whether they would like to continue or quit)

Input will be in the form : accNum operation amount and corresponding output: Current balance for account # accNum is balance

In the last 2 cases, it is ok if you do not say which info is exactly wrong but you need to prompt user for a proper input which is of the form accNum operation amount

Format will be : number space letter space number

no alphanumeric space number number or other variations

Sample input

Corresponding output 100 d 10

Current balance for account # 100 is $510  108 w 50.5

Current balance for account # 108 is $449.5 895 w 500

Oops..over drawing...max you can withdraw is $400  1005 d 10

Invalid account number given (account numbers can only be between 1 and 999) 100 y 10

Attempting an invalid operation

Reference no: EM132382449

Questions Cloud

What is the present value of a 29-year : What is the present value (aka price) of a 29-year, pure discount bond (zero coupon bond) that pays $1000 at maturity if it is priced
Explain a program that prompts the user for a name : You task is to explain a program that prompts the user, for a name, an hourly rate, and number of hours worked, and computes and prints a paycheck.
MGT601 Dynamic Leadership Assignment Problem : MGT601 Dynamic Leadership Assignment help and solution, Torrens University Australia, Assessment help - Explore and reflect on self- development as a leader
Write a program that accepts a number of players as input : A program that accepts a number of players as input. If the user enters a number that is not 2 or 3, then return a friendly error message.
Prompt user for a proper input which is of the form accnum : Assume every accounts opening balance is 500 & every account needs to maintain a minimum balance of 100. Keep offering to do transactions until user wants.
Calculate the mean of a list of numbers and print the result : A function to accept a list of numbers as input. The program will output the min, max, mean, and median of the list including the label;
Make a function that counts using a while loop : A function to calculate the median of a list of numbers and print the result. Make a function that counts using a while loop.
What will be the depth where you trigger the alarm : Write the program code and develop a document that demonstrates you can use the code to solve this problem using iterative techniques.
Design a function that consumes a trafficlight : Design a function that consumes a TrafficLight and produces the next TrafficLight. Here, we'll assume that the traffic light has the expected behaviour.

Reviews

Write a Review

Financial Management Questions & Answers

  What is the post-money valuation

A potential investor is seeking to invest $750,000 in our venture at an expected 40% rate of return. What is the pre-money valuation and post-money valuation?

  What is the present value of the break-even point

Luke Athletics Inc. has purchased a $200,000 machine to produce tennis balls. The machine will be fully depreciated by the straight-line method for its economic life of five years and will be worthless after its life. What is the present value of the..

  What is hedge ratio of the call and call value

The range of S is 100 while that of C is 20 across the two states. What is the hedge ratio of the call?

  What is the option time value

A call option on the stock of Bedrock Boulders has a market price of $8. What is the option's time value?

  In regards to interest rate swaps

If a company was willing to accept some of the risk of the interest rate changing and only wanted to protect itself from let's say 50% of the change.

  About the bond returns

Last year, Joan purchased a $1,000 face value corporate bond with an 9% annual coupon rate and a 30-year maturity. At the time of the purchase, it had an expected yield to maturity of 10.49%. If Joan sold the bond today for $1,043.28, what rate of re..

  Explain how the ebit chart works inputs determining the

explain how the ebit chart works inputs determining the outputs-the two lines on the chartand the indifference point in

  How much should he save each month

Zach wants to help pay for his kid's college. If the current tuition cost is $24,000 a year, how much should he save each month?

  What is the discount rate if the interest rate

Top hedge fund manager Diana Sauros believes that a stock with the same market risk as the S&P 500 will sell at year-end at a price of $60. The stock will pay a dividend at year-end of $2.00. Assume that risk-free Treasury securities currently offer ..

  What is the market price per share today of the stock

What is the market price per share today of the stock? What will the price per share be at the beginning of the next year? (2011)

  Describes the financial concept of debt serviceability

What best describes the financial concept of debt serviceability?

  What is the borrowing cost for this transaction

AA bonds are selling for 1.35 per cent above the 10-year Treasury bond rate. What is the borrowing cost for this transaction?

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