Re: Why is my math wrong? Programming Software Development by caut_baia … constructor Tips (int taxrate,int bill,int gratuity) : TaxRate(taxrate),Bill(bill),Gratuity(gratuity) {} //constructor makes mutators redundant in your…return (TaxRate*Bill) + Bill + (Bill*Gratuity); } }; int main () { long double taxrate,bill,gratuity; std::cin >> taxrate >>… Why is my math wrong? Programming Software Development by akase2010 … exit(0);}} void Tips::setGratuity(double g) {gratuity = g;if(gratuity<=0) {cout<<"Error! Your…() { double output; output = ((taxRate * bill) + (bill) + (bill * gratuity)); cout << "You've entered: "<<…lt;< showpoint << setprecision(2) << gratuity << endl; cout << "Your … HTML Form and PHP Programming Web Development by burt.munn … of customers and one foramount of bill(without tax and gratuity). 6 or more customers at a table is 18… less at a table is 15% gratuity. I need to be able to print the gratuity amount to the screen.Also how… amount, the sales tax amount, the gratuity amount and bill total including tax and gratuity. This is for a class that I… Re: HTML Form and PHP Programming Web Development by Bachu …_POST['txtAmount'])) { if($_POST['txtCustomersNo']>=6) $gratuity = $_POST['txtAmount']*0.18; else $gratuity = $_POST['txtAmount']*0.15; $tax = …> <tr> <td>Gratuity:</td> <td><?php echo…gt; <td><?php echo $_POST['txtAmount']+$gratuity+$tax; ?></td> </tr> … Re: HTML Form and PHP Programming Web Development by Bachu …; is_numeric($_POST['txtAmount'])) { if($_POST['txtCustomersNo']>=6) $gratuity = $_POST['txtAmount']*0.18; else $gratuity = $_POST['txtAmount']*0.15; $tax = $_POST['txtAmount…></td><td>".($_POST['txtAmount']+$gratuity+$tax)."</td></tr> </table… Re: HTML Form and PHP Programming Web Development by cigoL..:) …0.0875); if ($numberofCustomers>=6){ $gratuity = ($amount*0.18); } else{ $gratuity = ($amount*0.15); //if it…less than 6 } } } $total = ($total+$gratuity+$tax); //Compute for the total echo "<… Re: Why is my math wrong? Programming Software Development by akase2010 the tax is always .065 (rounds to .07 in program) and enter your own numbers for gratuity and bill amount C++ Question Programming Software Development by Dannjeru2013 Kambo company pays employee Gratuity on retirement that can be computed using the Formula Gratuity=(Salary*Fixed Rate*Number of Years Worked)+One month Salary. Formulate an algorithm that can be used to calculate the gratuity and write a c++ program that can be used for the computation. Help with default constructor...please Programming Software Development by meistrizy … thanks in advance for your help. My program calculates the gratuity of various bills and gives the user how much to…, billTir, billTip; cout << "This program computes the gratuity at a restaurant. Enter 999 to quit."; cout <… c++ program Programming Software Development by okundi a company pays employees gratuity on retirement that can be computed using the formular: grayuity= (salary x fixed rate x number of years worked) + one month salary. formulate an algorith that can be used to calculate the gratuity and write a c++ program that can be used for the computation Hijacked Homepage by jetsearch.org Hardware and Software Information Security by lennier ….macromedia.com/pub/shockwa...ash/swflash.cab[/url] My eternal gratuity, Lennier Re: Hijacked Homepage by jetsearch.org Hardware and Software Information Security by lennier …/mcfscan/2,0,0,4370/mcfscan.cab[/url] My greatest gratuity, Lennier data not inserting into my database table Programming by chibuzor_2 …,workplace_category,active,monthly_gross,nhf,nhis,nsitf,basic_salary,grade,designation,pension,gratuity) VALUES ('','$inserted','','','','','','$textfile_occupation','','$institution','','$UserLogin','','','','','','','','','','','','','','','') "; //var_dump($query_insert); //('','$values1','$inserted… AI + Micro Transactions + Big Data = A Perfect Dystopia? Community Center by Johannes C. … you,’ he informed it, ‘is in the nature of a gratuity; I don’t have to pay you.’ ‘I think otherwise… Re: Storing & Using Long Form Values : Best Practice? Programming Web Development by FreeGeezer … '.$vmintime.' hours)'; } $msg .= '<br />'; // Compute Service Fees & Gratuity // Place it in the print line $msg .= $nhrs.' Hours '.TRIM…($vcdesc).' service ($'.$srate.' per hour) $'.$tfee.' plus 20% gratuity ($'.$ttip.').</p>'; } $msg .= "<hr width='100… Re: I can't open the package! - Outlook 2007 Community Center Geeks' Lounge by GrimJack … Office line is all nearly identical. I worked in their gratuity section handing out freebies - I was glad I had a… Re: help with a problem Programming Software Development by zachabesh … the items ordered #get the total price #add tax #add gratuity if there are more than 6 people #print the bill… Re: Tipping in the U.S. . Community Center Geeks' Lounge by VernonDozier …/11/larry-david-protests-tipping-on-top-of-a-mandatory-gratuity/[/url] [quote] "It's an 18% tip included. And… Re: Tipping in the U.S. . Community Center Geeks' Lounge by notoriousdyd …, and sometimes with all that you still get screwed. Mandatory gratuity is for the protection of the employees. Re: Tipping in the U.S. . Community Center Geeks' Lounge by diafol … a week ago (in Avon, England) and had 10% option gratuity added to the bill. How the hell is it optional… Re: Tipping in the U.S. . Community Center Geeks' Lounge by jwenting … a week ago (in Avon, England) and had 10% option gratuity added to the bill. How the hell is it optional… Re: Why is my math wrong? Programming Software Development by hag++ What values are you entering when running the program? Re: Why is my math wrong? Programming Software Development by Momerath Works fine for me. What numbers are you entering that make you believe it isn't? Re: Why is my math wrong? Programming Software Development by spoonlicker I don't understand your source code. It doesn't make any sense. Plus, I see the big error you made by bothering with OOP. It makes of little use in small programs. Re: Why is my math wrong? Programming Software Development by chiwawa10 I don't see anything wrong with the OOP concept being used. And in fact, it is recommended practice so that they can be reused in future. Also, I do not see any error with the code. What's the number that caused the problem? Re: HTML Form and PHP Programming Web Development by milil If you want to learn best way is on [w3schools.com](http://www.w3schools.com/php/default.asp). You have examples and tutorials how to do form with post or get methods and so much more. I think that you will learn faster if you go over that examples, and if you still have questions post a new question and we will help you. Re: HTML Form and PHP Programming Web Development by burt.munn Thankyou so much Bachov! I usually can figure complex things out, but I'm having a lot of mental blocks lately. When I can't figure things out after hours of trying, it does work best for be to see the results and learn from them. I believe your post will work for me. I wish I could contact you in the future in reference to this subject. God Bless Re: HTML Form and PHP Programming Web Development by matrixdevuk You'll want to change this: $customers = $_POST ['customers']; $bill = $_POST ['bill']; $tax = $_POST ['tax']; ...to this: $customers = $_POST['customers']; $bill = $_POST['bill']; $tax = $_POST['tax']; ...it's better in terms of syntax. Re: HTML Form and PHP Programming Web Development by burt.munn are they not the same Re: HTML Form and PHP Programming Web Development by burt.munn This is in reference to Bachov reply above: is there a way to do this without all the <?php ?> in the table also without the $POST everywhere in the php document? I also don't understand line 10 and 12. Thanks