Question: Why does it output to 0? What in the code needs to change? 4 int main() { 5 6 7 8 9 10 11 12

Why does it output to 0?
What in the code needs to change?  Why does it output to 0? What in the code needs

4 int main() { 5 6 7 8 9 10 11 12 13 14 15 double purchaseAmount = 0; double stateTax = 4/100 * purchaseAmount; double county Tax = 2/100 * purchaseAmount; double totalTax = stateTax + county Tax; double totalPrice = purchaseAmount + totalTax; > clang++-7 -pthread -std-Ch17 -o main ma > ./main Enter purchase amount: 100 Initial Purchase price: 180 State Tax: 0 County Tax: 0 Total Tax: 0 Total purchase Amount after taxes: 6 cout > purchaseAmount; cout

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!