Write a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax should be 6.75 percent of the meal cost. The tip should be 15 percent of the total after adding the tax. Display the meal cost, tax amount, tip amount, and total bill on the screen. Use the template, Program1-Template.cpp, to complete this programming assignment. Download the attached file, Program1-template.cpp, from Blackboard and rename it as Program1.cpp. Any line that starts with the characters "//" is a comment in C++ and the compiler ignores it. Remove the angle brackets "<" and ">" in any line that starts with "//" and replace it with the appropriate information.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a program that computes the tax and tip on a restaurant bill for a patron with a
$44.50 meal charge. The tax should be 6.75 percent of the meal cost. The tip should be
15 percent of the total after adding the tax. Display the meal cost, tax amount, tip amount,
and total bill on the screen. Use the template, Program1-Template.cpp, to complete this
programming assignment.

Download the attached file, Program1-template.cpp, from Blackboard and rename it as
Program1.cpp. Any line that starts with the characters "//" is a comment in C++ and the
compiler ignores it. Remove the angle brackets "<" and ">" in any line that starts with "//"
and replace it with the appropriate information.

60
*****
**********
void developerInfo()
62 E {
61
63
cout << "Name:
Reshma Kumar" <« endl;
cout <« "Course: Programming Fundamentals II" <« endl;
cout <« "Program: One"
<« endl
« endl;
64
65
66
67
68
} // End of developer
Transcribed Image Text:60 ***** ********** void developerInfo() 62 E { 61 63 cout << "Name: Reshma Kumar" <« endl; cout <« "Course: Programming Fundamentals II" <« endl; cout <« "Program: One" <« endl « endl; 64 65 66 67 68 } // End of developer
25
using namespace std;
26
27
void developerInfo();
28
29
//******
*****
//
// Function:
//
// Description: The main function of the program
//
30
31
main
32
33
34
// Parameters:
//
//
//
//*******
int main()
35
None
36
37
Returns:
Zero (0)
38
39
*********
40
41 E {
developerInfo();
// Do not delete this statement
42
43
// Write your code here
44
45
system ("PAUSE");
return 0;
46
47
48
}
49
50
//***************************************************************
//
// Function:
//
// Description: The developer's information
//
// Parameters:
//
//
//
/中中 毕
void developerInfo()
51
52
developerInfo
53
54
55
56
None
57
58
Returns:
N/A
59
60
半*
61
62 E {
Transcribed Image Text:25 using namespace std; 26 27 void developerInfo(); 28 29 //****** ***** // // Function: // // Description: The main function of the program // 30 31 main 32 33 34 // Parameters: // // // //******* int main() 35 None 36 37 Returns: Zero (0) 38 39 ********* 40 41 E { developerInfo(); // Do not delete this statement 42 43 // Write your code here 44 45 system ("PAUSE"); return 0; 46 47 48 } 49 50 //*************************************************************** // // Function: // // Description: The developer's information // // Parameters: // // // /中中 毕 void developerInfo() 51 52 developerInfo 53 54 55 56 None 57 58 Returns: N/A 59 60 半* 61 62 E {
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY