Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.00

Step 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 ... 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

Document Format ( 2 attachments)

PDF file Icon
6095d1c091417_26288.pdf

180 KBs PDF File

Word file Icon
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

Recommended Textbook for

Intermediate Accounting

Authors: Loren A Nikolai, D. Bazley and Jefferson P. Jones

10th Edition

324300980, 978-0324300987

More Books

Students also viewed these Programming questions