Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C++ for this problem:In Milano there are M pharmacies whose names are given in the array PHAMACY . N medications ,

  1. Write a program in C++ for this problem:In Milano there are M pharmacies whose names are given in the array PHAMACY. N medications, you can find in these pharmacies, were taken into consideration. For each of these medications, value (in Euro )is kept in array VALUE. The two-dimensional array QUANTITY with M rows and N columns shows the quantities sold during the last month for each medication on each pharmacy. Based on these data:
a. Declare and initialize arrays, read unknown values from the user.
b. What is the total value (in Euro ), of all pharmacies examined?
c. Who is the pharmacy with the highest number of medicines sold? Use the int MAXIMUM(...) function to perform the calculations.
d. Is there an item that has a value below 10,000 ? If so is it the only one? Use the void CONTROL(...) function to perform the actions.
e. Is there any medicament that is available in only one pharmacy?

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_2

Step: 3

blur-text-image_3

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

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions

Question

2. What should an employer do when facing an OSHA inspection?

Answered: 1 week ago