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

  Order statistic tree to count number of inversions in array

Demonstrate how to use an order-statistic tree to count the number of inversions in an array of size n in time O(n lg n).

  Question about database administration

Should the data administrator really be on the same level as the DBA, generally somewhat low in corporate hierarchy or should this person have an elevated level of importance?

  Graph theory

Let  A  be a graph that has an Euler circuit. Prove (or disprove) that all graphs that are isomorphic to  A  have at least on Euler circuit.

  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 flowchart

Create a flowchart to illustrate the given problem. You are given input for the student name, number of credits, and cost per credit.

  Creating a single table to hold the information

Think about a typical sales invoice that would include the given information. Create a single table to hold all of the information needed to store an invoice including this information.

  Finding approximation algorithm and ratio of the algorithm

finding approximation algorithm and the ratio of the algoirthm.

  Separate inventory database

A 20-year old corporation, SewWorld, comprised of 6-locations in three states, sells sewing machines, sewing related software, and accessories. Each store sells between 3-5 different brands of sewing equipments.

  Setup an example rsa public/private key pair using primes

RSA with three primes would also work: n = pqr, ?(n) = (p?1)(q?1)(r?1), gcd(e, ?(n)) = 1, and d = e^?1 (mod ?(n)).

  Create an er diagram

Create an E-R diagram with all appropriate notation for the following condition. In a particular fruit growing region there are a number of orchards.

  Calculation of a binary tree

Computations of a Binary Tree Write a function in C programming language that can find and return the height of a Binary Tree.

  System analyst

A huge, well regarded supplier of key raw materials to your corporation's production process requires a year-end summary report of totals purchased from it.

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