Question Solved1 Answer I have to write a java program not C++.can you help me writing a java program 1 . 1 o Write a program that calculates the tip in a restaurant It should prompt the user for the bill amount before tip, and the tip as a percentage · Then compute and display the tip amount in dollars, and total including tip · For example, if the user enters 10.00 for the bill amount and 15% for tip, the program displays “$1.50” as tip amount and “$11.50” as total Here's a sample run: Please enter the bill amount: 15.69 Please enter the tip %: 15 The tip amount is $2.35 and the total is $18.04

8QRQLL The Asker · Computer Science

I have to write a java program not C++.
can you help me writing a java program

Transcribed Image Text: 1 . 1 o Write a program that calculates the tip in a restaurant It should prompt the user for the bill amount before tip, and the tip as a percentage · Then compute and display the tip amount in dollars, and total including tip · For example, if the user enters 10.00 for the bill amount and 15% for tip, the program displays “$1.50” as tip amount and “$11.50” as total Here's a sample run: Please enter the bill amount: 15.69 Please enter the tip %: 15 The tip amount is $2.35 and the total is $18.04
More
Transcribed Image Text: 1 . 1 o Write a program that calculates the tip in a restaurant It should prompt the user for the bill amount before tip, and the tip as a percentage · Then compute and display the tip amount in dollars, and total including tip · For example, if the user enters 10.00 for the bill amount and 15% for tip, the program displays “$1.50” as tip amount and “$11.50” as total Here's a sample run: Please enter the bill amount: 15.69 Please enter the tip %: 15 The tip amount is $2.35 and the total is $18.04
See Answer
Add Answer +20 Points
Community Answer
ZLKU3S
See all the answers with 1 Unlock
Get 4 Free Unlocks by registration

Note:  If you are a beginner I will help you in executing the code. Could you plz go through this code and let me know if u need any changes in this.Thank You +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ #include <iostream> #include <iomanip> using namespace std; int main() {     //setting the precision to two decimal places      s ... See the full answer