Question: Here is the code in c++, but there are six mistakes and needs to be finished. This should be the finished output. #include #include using

Here is the code in c++, but there are six mistakes and needs to be finished.

 Here is the code in c++, but there are six mistakes

This should be the finished output.

and needs to be finished. This should be the finished output. #include

#include #include using namespace std; const int NUM-4 int main() //This is for printing money in the proper format cout costArray[0] //iii. prompt for y and n cout > taxApplied> endl; //v. if the letter is y, then store the tax into the tax array if (taxApplied = "y") taxArray[i]-costArray[i]*.10; //4. Print some headers for the columns of Cost and Tax //5. Loop five times //i. print the cost and the tax nicely in columns (Hint: try setw(10)) //ii. add the current element in the cost array to the "totalCost" //iii. add the current element in the tax array to the "totalTax" //6. Print the "totalCost" and "totalTax" nicely in columns //7. Print a message "Your total bill is:" and the total bill amount

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!