Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Make Up Sales Write a program that allows a cosmetic company to keep track of six different products: lipstick, eye shadow, mascara, eye liner, foundation,

  • Make Up Sales

    Write a program that allows a cosmetic company to keep track of six different products: lipstick, eye shadow, mascara, eye liner, foundation, and rouge.The program should use two-parallel 6-element arrays: an array of strings that holds the product names and an array of integers that holds the number items in each category sold during the last week. The product names should be stored using an initialization list at the time the array is created. The program should prompt the user to enter the number of each product sold. Once the sales data has been entered, the program should display sales for each product, total sales, and the names of the highest and lowest selling items.

    Input Validation: Do not accept negative values for the number of items sold.

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

The Database Factory Active Database For Enterprise Computing

Authors: Schur, Stephen

1st Edition

0471558443, 9780471558446

Students also viewed these Databases questions

Question

What are the Sources of Errors in Surveys

Answered: 1 week ago

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago

Question

7. Where Do We Begin?

Answered: 1 week ago