Code:
#include <iostream>
#include <iomanip>
#include <conio>
double main(void)
{
void Heading();
double Table();
getch();
}
void Heading()
{
cout<<"--------------------------------------"<<endl;
cout<<setw(12)<<"Product Cost Table"<<setw(12)<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"Number Produce"<<setw(6)<<"Cost"<<endl;
cout<<"--------------------------------------"<<endl;
cout<<"--------------------------------------"<<endl;
}
double Table()
{
double produced[5]={300,400,500,600,700};
double cost[5];
for(int k=0;k<5;k++)
{
cost[k]=produced[k]*3.46;
cout<<produced[k]<<setw(6)<<cost[k]<<endl;
}
}















