Question: FOR C++ Please create the pseudo code and then code, debug and complete the problem described below. Demonstrate program is working and use functions (important).

FOR C++

Please create the pseudo code and then code, debug and complete the problem described below. Demonstrate program is working and use functions (important).

At the local farmer's market, each vendor is required to pay the market 10% of their gross sales. You have been hired to create a report detailing each vendor and their sales. Write a program to do the following:

1. ask the user how many vendors participated in the market.

2. dynamically create 2 parallel arrays based on that number. the first array (string) will hold the name of vendor. the second array (double) will hold the gross sales for that day.

3. have the user input the information for each vendor. No empty strings allowed for names and no negative sales amount.

4. create a professional-looking report that shows the vendor's name, gross amount, and the amount due to the market (the amount due will be calculated):

Adams Golden Apples $4,500.00 $450.00

Huckleberry Farms $ 350.00 $ 35.00

etc....

Make sure to have at least 10 vendors in your market list - and remember, the number of vendors is user input, not defined by you, the programmer.

SHOW CODE WORKS WITH A PICTURE PLEASE

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!