Answered step by step
Verified Expert Solution
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 ,
- 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
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
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started