Question: On C++ write a functinally that calculates the total cost of ALL the tea bill. Make sure the program caclates the total cost of the

On C++ write a functinally that calculates the total cost of ALL the tea bill. Make sure the program caclates the total cost of the text file no matter how many records. The text file is below. Basically create a functially from the text file to caculates its sum which means add all the total amount owed in each bill and display it on count.

David Moore

Order: Plain Coffee 14 oz

Price of Coffee: $1.52

Sales Tax: $0.12

Total Amount Owed: $1.81

Ran Willy

Order: Latte 23 oz

Price of Coffee: $6.44

Sales Tax: $0.45

Total Amount Owed: $6.89

Lord Varvin

Order: Plain Coffee 34 oz

Price of Coffee: $4.42

Sales Tax: $0.31

Total Amount Owed: $4.73

Scary Sherlock

Order: Macchiato 15 oz

Price of Coffee: $3.75

Sales Tax: $0.26

Total Amount Owed: $4.01

Harry Pea

Order: Frappuccino 67 oz

Price of Coffee: $15.91

Sales Tax: $1.10

Total Amount Owed: $12.08

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!