any one know python language? i need some help for a very easy question ..im a starter for programming and suck @ math 


any one know python language? i need some help for a very easy question ..im a starter for programming and suck @ math![]()



You've just feasted on a truly delicious meal of Spam and eggs. The diner's computer is down, however, so you'll need to compute the cost of your meal yourself.
Here's how it'll break down:
Cost of meal: $44.50
Restaurant tax: 6.75%
Tip: 15%
You'll want to apply the tip to the overall cost of the meal (including tax).
logic akak onath na... mata normal widihata meka hadana hati kiyahao..mata maths baha ban
function calculate_total( $cost_of_meal as double) as double
{
$subtotal = $cost_of_meal +(($cost_of_meal * 6.75)/100); //restaurant tax
calculate_total=$subtotal+(($subtotal * 15)/100); //tip
}
You've just feasted on a truly delicious meal of Spam and eggs. The diner's computer is down, however, so you'll need to compute the cost of your meal yourself.
Here's how it'll break down:
Cost of meal: $44.50
Restaurant tax: 6.75%
Tip: 15%
You'll want to apply the tip to the overall cost of the meal (including tax).
logic akak onath na... mata normal widihata meka hadana hati kiyahao..mata maths baha ban
#!/usr/local/bin/python2.7
food = 44.50
cost = food * 106.75 / 100
total_cost = cost * 115 / 100
print "%0.2f" % (total_cost,)
ai ban 6.75 0.0675 tai 15% 0.15 tai convert karanne? :/ mata maths ba ban ..ammage redda![]()


<?php
// simple script by M E T H @Elakiri.com
// generate overall cost of meal
$costOfMeal = 44.5;
$tax = (6.75 / 100) * $costOfMeal;
$costOfMealWithTax = $costOfMeal + $tax;
$tip = (15 / 100) * $costOfMealWithTax;
echo $total = $costOfMealWithTax + $tip;
?>