Computers and Technology

When it comes to paying bills at restaurants, Wallace always leaves a 15% tip based on the pretax price. However, Wallace is tired of computing tips every time, please construct a function total_bill, which takes a numerical argument pretax and returns the total bill by 1) calculating the tip, 2) the after-tax price, and 3) adding the tip to the after-tax price. Assume the sale tax is 9%. Below is how the function would be used: pretax = 15
print('The total bill is ${}'.format(total_bill(pretax)))
The output should be:
The total bill is $18.6

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:00, noeminm105
Consider the following declarations (1, 2, 3, 5, 7)class bagtype{public: void set(string, double, double, double, double); void print() const; string getstyle() const; double getprice() const; void get(double, double, double, double); bagtype(); bagtype(string, double, double, double, double); private: string style: double l; double w; double h; double price; }; a.) write the definition of the number function set so that private members are set according to the parametersb.) write the definition of the member function print that prints the values of the data membersc.) write the definition of the default constructor of the class bagtype so that the private member variables are initialized to "", 0.0, 0.0, 0.0, 0.0, respectively d.) write a c++ statement that prints the value of the object newbag. e.) write a c++ statement that declares the object tempbag of type bagtype, and initialize the member variables of tempbag to "backpack", 15, 8, 20 and 49.99, respectively
Answers: 3
image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 24.06.2019 14:30, tleppek6245
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
Answers: 1
image
Computers and Technology, 24.06.2019 18:30, Suttyyyyyybear6056
What are the benefits to using presentations to organize and deliver information in the workplace? they add visual appeal. they are easy to update. they ensure accuracy. they can be created quickly. the work can't be lost.
Answers: 1
Do you know the correct answer?
When it comes to paying bills at restaurants, Wallace always leaves a 15% tip based on the pretax pr...

Questions in other subjects:

Konu
Mathematics, 03.12.2020 03:20
Konu
Mathematics, 03.12.2020 03:20
Konu
History, 03.12.2020 03:20
Konu
Mathematics, 03.12.2020 03:20