// This program uses two arrays to record the names of 5 types of pizza
// and the sales numbers for each of these types
// The program then finds the best and the worst selling pizzas
#include<iostream>
#include<string>
using namespace std;
int main()
{
const int ARR_SIZE = 6; // Declare the array size and set it to 6 to include all elements
// Declare the array of pizza names and record values in it
string name[ARR_SIZE] = {"Pepperoni","Prosciutto","Vegetarian", "Sausage","Supreme","Mozzarella"};
int sales[ARR_SIZE]; // Declare the sales array
int worstseller_number, bestseller_number; // The subscripts of the best- and worstseller
string worstseller_name, bestseller_name; // The names of the best- and worstseller
for(int i=0; i<ARR_SIZE; i++) // Start the loop from 0 to access all array elements
{
cout << "Enter sales for " << name[i] << ": ";
cin >> sales[i];