Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that allows the user to enter seven double valuesrepresenting st

ID: 3609255 • Letter: W

Question

Write a program that allows the user to enter seven double valuesrepresenting store sales for each day of one week. After all sevenvalues are entered, echo them to the screen, and display highestand lowest sale values.

Please help me with this small assignment. I have complete most ofit (i think) and I just need help with the final part which is thehighest and lowest part.

How do I make it so that the screen displays the highest and lowestsales?

this is my code so far: please change it as you see fit

#include<iostream>
#include<conio.h>
using namespace std;

int main()
{
   const int days = 7;
   double storeSales[days];
   int x;
   double total;
   for(x = 0; x < days; ++x)
   {
       cout<<"Please entersales for Day"<<(x+1)<<endl;
       cin>>storeSales[x];
   }
   cout<<"The sales are:"<<endl;
   for(x = 0; x< days; ++x)
   {
       total = storeSales[x];
       cout<<storeSales[x]<<" ";
   }


       system("pause");
}

if you help me this problem I will award you lifesaver points thankyou.

Explanation / Answer

#include #include using namespace std; int main() {    const int days = 7;    double storeSales[days];    int x;    int max = 0;     int min = 0;    double total;    for(x = 0; x
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote