Solved by verified expert:Determine the functions that you need to create (you need at least 3).Design and implement those functions in the IDE.Your program should provide the following additional functionality (in addition to the functionality provided in Week1): Ask customers to select multiple products and quantitiesPrint the order summary, including the products, the quantities, and the total price for each product
sample.docx
Unformatted Attachment Preview
#include
#include
#include
using namespace std;
double tax=.08;
//Function Prototypes
double calcsubtl(double quantity, double price);
double quantity;
double price;
string summary;
int main()
{
char selection;
string name;
string address;
string shipper;
string email;
string summary;
int code = 0;
double priceBasketball;
double priceFootball;
double priceBaseball;
double priceGolfballs;
cout<<"Please enter Customer Name ==> “;
getline(cin, name);
cout<<"Please enter your payment address";
getline(cin, address);
cout<<"Please enter your shipping address";
getline(cin, shipper);
cout<<"Please enter your email address";
getline(cin, email);
cout<<"Welcome to Active Sporting Goods Online Store!"+ name <>selection;
cout<<"Choose a product from the menu below" <>code;
switch(code)//Ask user for product, quantity and calculate subtotal
{
case 001:
cout<<"Wilson Evolution Official Basketball price 59.99 "<>quantity;
if(quantity<=0)
{cout<<"Invalid Quantity"<>quantity;}
priceBasketball=59.99;
break; //breaks from case to continue in function
case 002:
cout<<"Wilson Official NFL Football 44.99"<>quantity;
if(quantity<=0)
{cout<<"Invalid Quantity"<>quantity;}
priceFootball=44.99;
break;
case 003:
cout<<"Rawlings Offical Game Baseball 5.99"<>quantity;
if(quantity<=0)
{cout<<"Invalid Quantity"<>quantity;}
priceBaseball=5.99;
break;
case 004:
cout<<"Maxfli Revolution Control Golf Balls 19.99"<>quantity;
if(quantity<=0)
{cout<<"Invalid Quantity"<>quantity;
priceGolfballs=19.99;
break;
case 0://Calculate total and print summary
default:
cout<<"Invalid Code!"<>selection;
}
…
Purchase answer to see full
attachment