Write algorithm that allows the customer to enter amount

Assignment Help Data Structure & Algorithms
Reference no: EM13337960

An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more than $300, the service charge is 4% of the amount over $300. If the customer does not have sufficient money in the account, the ATM informs the customer about the insufficient fund and gives the option to withdraw the money for a service charge of $25.00. If there is no money in the account or if the account balance is negative, the ATM does not allow the customer to withdraw any money. If the amount to be withdrawn is greater than $500, the ATM informs the customer about the maximum amount that can be withdrawn. Write an algorithm that allows the customer to enter the amount to be withdrawn. The algorithm then checks the total amount in the account, dispenses the money to the customer, and debits the account by the amount withdrawn and the service charges, if any.

Reference no: EM13337960

Questions Cloud

Determine velocity v of a neutral particle moving with angle : A neutral particle moving with velocty, v, decays into two photons moving with angles, a1=30 degrees and a2=60 degrees with respect to the intial velocty of the particle. Find velocty v.
Write a program that allows cindy to input the number : One metric ton is approximately 2205 pounds. Write a program that prompts the user to input the amount of rice, in pounds, in a bag. The program outputs the number of bags needed to store one metric ton of rice.
Determine centerline and upper and lower control limits : When the robot welder is functioning properly, the natural gas cylinders being produced have an average burst strength of 3400 psi,with a standard deviation of 100 psi. Determine the centerline and the upper and lower control limits for a 3-sigma mea..
Evaluate each of the following statements : If x = 5, y = 6, z = 4, and w = 3.5, evaluate each of the following statements, if possible. If it is not possible, state the reason.
Write algorithm that allows the customer to enter amount : An ATM allows a customer to withdraw a maximum of $500 per day. If a customer withdraws more than $300, the service charge is 4% of the amount over $300.
Least- squares regression line and interpret its slope : Determine the least- squares regression line and interpret its slope. Estimate,for a year during which 500,000 boats aresold,the number of boat trailers that would be sold. What reasons might explain why the number of boat trailer sold per year is le..
Find the price of the pizza per square inch : Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.
Rewrite the fragment to obtain an equivalent code fragment : What is the output when the following code fragment is executed? Rewrite the fragment to obtain an equivalent code fragment in which the body of the loop is a simple statement instead of a compound statement.
What is output when the following code fragment is executed : What is the output when the following code fragment is executed?

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  2n-1 comparisons are necessary in the worst case

Prove that 2n-1 comparisons are necessary in the worst case to merge two sorted lists containing n elements each.

  Solving single source shortest paths problem

Here is a proposed algorithm to solve single source shortest paths problem in a weighted directed graph G with possibly negative edges weights.

  Algorithm to find maximum sum of contiguous sublist

Using dynamic programming, write an algorithm to find the maximum sum of contiguous sublist of a given list of n real values.

  Create world database using mysql

create World database using MySQL and write a Java or C# or program to access the DB

  Calculate a three quarter moving average forecast

The Fastgro Fertilizer Corporation distributes fertilizer to various lawn and garden shops. Calculate a three-quarter moving average forecast for quarters 4 through 13 and calculate the forecast for each quarter.

  Java program to make choice for a coffee cup size

Create an application that prompts the user to make a choice for a Coffee cup size, S for Small, T for Tall, G for Grande and V for Venti the rates of cup sizes will be stored in a parallel double array as $2, $2.50, $3.25, and $4.50 respectively.

  Describe a fair coin algorithm to returns either 0 or 1

Describe a FAIRCOIN algorithm that returns either 0 or 1 with equal probability, using ONEINTHREE as your only source of randomness.

  Write a program to take n elements and insert them into heap

Write a program to take n elements and insert them into a heap one by one. Include a function to print out the elements in the heap.

  Creating a bash script

Create a Bash script that will prompt for the user's first and last names and store the responses in two variables. Then it will show the stored data in the format "You entered lastname, firstname."

  Create efficient algorithm to find path in graph

Given connected undirected graph G described by the adjacency list representation create the efficient algorithm to find the path in G which goes through exactly once in each direction.

  Writing a java program

The history teacher at your school requires help grading a True or False test. The students' IDs and test answers are stored in a file document.

  What is the machine run time in second for sorting array

Write computer program to implement this algorithm and demonstrate the results and what is the machine run time in second for sorting array A

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