#include using namespace std; double tip(double amount, int rate) { return amount*rate/100; } int main() { double bill=49.50; double tip_amount; tip_amount=tip(bill,10); cout << tip_amount << endl; return 0; }