B (C++) [27] You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded. Refer to below screen shot for sample Input and Output.
For this final assignment, you will use Qt to create a GUI version of the templated LinkedList you made for assignment 9.
You may design your window as you wish, but it needs to have the minimum functionality:
You are requested by a SuperStore (Spar) in Soshanguve to calculate it’s earning for the week (the store opens the entire week) and determine the day with the highest and lowest earnings. The Store comprises of two sections namely the Food section and the Liquor store. Your C++ program should prompt the total sales for each section for each day and store the total sales for the day into an array. At the end of the week It should display a report for Management for the total sales for that week, the day the lowest sales and the day with the highest sales were recorded.
What is the output of the following C++ code?
x = 5; y = 30;
while (x <= y)
x = x * 2;
cout << x << " " << y << endl;
#include <iostream.h>
using namespace std;
int main( void )
{
int y;
int x = 3;
int total = 0;
while ( x <= 10 ) {
y = x * x * x;
cout<<y<<endl;
total += y;
++x;
} // end while
Cout<< "The total is: "<< total <<end;
} // end main