225k views
1 vote
. Write a program that computes and displays a 15 percent tip when the price of a meal is input by the user. (Hint: the tip is computed by multiplying the price of the meal by 0.15.) You will need the following variables: MealPrice (a Float) Tip (a Float) reddit

User Auspice
by
6.1k points

2 Answers

5 votes

Answer:

I don't understand the question

User Tom Lilletveit
by
7.0k points
2 votes

Answer:

Step-by-step explanation:

// The solution is solved using c++

#include <iostream>

using namespace std;

int main ()

{

float meal;

cout << "Please enter the price of the meal: ";

cin >> meal;

cout << "The Tip for the meal is " << 0.15*meal;

cout << " The tip for the meal " << 0.15* meal << ".\\";

return 0;

}

User Ajaali
by
6.9k points