Question: using C++ programming Three friends are eating out and sharing the bill equally. Create a program (proj1_2.cpp) that asks the first name for each of

using C++ programming

using C++ programming Three friends are eating out and sharing the bill

Three friends are eating out and sharing the bill equally. Create a program (proj1_2.cpp) that asks the first name for each of the three friends and the total amount of the bill. To this total amount, your program should add 15% for the tip and then divide the resulting total into three equal amounts. Finally, your program should display the tip amount and total along with the amount for each friend in a tabular format like the example on page 115. Following is an example of a sample run with rounded using setprecision() function: Enter first friend name: John Enter second friend name: Sam Enter third friend name: Kim Enter amount of bill: $67.89

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!