Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

This should be the finished output.

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago