answersLogoWhite

0


Best Answer

check the amount is greater than the smallest withdraw amount.

ie

$amount_requested = 5.90;

$min_amount_to_withdraw = 10.00;

if ( $amount_requested >= $min_amount_to_withdraw )

{

//alow the transaction

}

else

{

/dont alow the transaction

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: You recently made an ATM program your problem is that you can withdraw an amount which has a decimal point what should you do to solve this?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why are 0.2 and 0.20 not equivalent?

They are, but sometimes a teacher/ program is looking for a specific decimal place to round too, or there can be a significant figure where another number in the problem can have two decimal places requiring two decimals in the answer meaning 0.20 can be a better answer than 0.2


What is the relation between problem and programming?

Problem -> Programming Programming can be a solution to a problem. If you have a problem and it can be solved by a computer program, so you can create such a program - so you can solve this problem by programming.


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Program to convert hex to decimal in 8085?

jump,b


What is solution in c program?

The program itself is the solution. All programs are a solution to a given problem; that's the entire point of writing a program, to solve a problem. The program's algorithm specifies how the problem is solved and it's the programmer's job to convert that algorithm into working code.


A c program to convert decimal number to decimal number?

The question asks to do nothing by converting a decimal into itself. Perhaps the question was mistyped. Please restate the question.


What is the functinon of software patches?

A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.A patch is a fix for a problem in a computer program. When problems are found patches are applied and updates can later be prepared to resolve the problem completely.


What is structured overlay problem in program language?

what is over lay problem in programming design


What are the five stages in program development and its definition?

Analysis: Gather and analyze requirements for the program. Design: Plan the structure and components of the program. Implementation: Write the actual code for the program based on the design. Testing: Verify that the program functions as intended and fix any bugs. Maintenance: Update and maintain the program to ensure continued functionality and relevance.


What is Windows 7 Jump Lists?

shortcuts provided by the program for quick access to certain parts of the program. It might also contain recently used files if it is an editing program such as Microsoft word


What TV channel recently had a program of breeds of cats?

If you are talking about Cats101, the channel is Animal Planet.