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
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.
|