English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Using MS Access
if bill is less than 100 no tax
if bill is 101 or less than 200 tax = 1.65
if bill is 201 or less than 300 tax = 2.65
Using PHP mysql
if bill is less than 100 no tax
if bill is 101 or less than 200 tax = 1.65
if bill is 201 or less than 300 tax = 2.65

2006-12-05 16:43:29 · 1 answers · asked by edwinbiasbas 1 in Computers & Internet Programming & Design

1 answers

/*
* This is PHP code that does some of what is asked...
* MS-Access left as an exercise for
* the student.
*/
function get_tax( $bill ) {
if ($bill < 100 ) {
return 0;
} else if ($bill >= 100 && $bill < 200 ) {
return 1.65;
} else if ($bill >= 200 && $bill < 200 ) {
return 2.65;
}
}

2006-12-06 15:02:33 · answer #1 · answered by RGB_Mars 3 · 0 0

fedest.com, questions and answers