Question
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
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:
ask the user how many vendors participated in the market.
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. (Review chapter 7 on parallel arrays if you need help with that.)
have the user input the information for each vendor. No empty strings allowed for names and no negative sales amount.
create a professional-looking report that shows the vendor's name, gross amount, and the amount paid (the amount paid will be calculated): Adams Golden Apples $4,500.00 $450.00 Huckleberry Farms $ 350.00 $ 35.00Step by Step Solution
3.38 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
Program Header file section include stdafxh include include include Declaring the ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
6095d1c091417_26288.pdf
180 KBs PDF File
6095d1c091417_26288.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started