#include using namespace std; int main() { float meal, tax; cout << " Please insert the amount of your bill:
Posted: Wed Apr 27, 2022 4:59 pm
#include <iostream> using namespace std; int main() { float meal, tax; cout << " Please insert the amount of your bill: "; cin>> meal; if (meal >=50) { tax = 6*meal; meal=meal+tax; } cout <<" Your total meal charge is: RM" << meal<<endl; } Modify the program to tell the user if a negative value is inserted. Sample Output: Please insert the amount of your bill: -20 Invalid Output Press any key to continue . .