Project 1
PROGRAM:-
#include <iostream>
using namespace std;
int main(void)
{
int x,y,z;
string cs1,cs2,cs3,cs4,cs5;
string *array_com{new string[5]{"Laptop ","Mouse ","Headset ","Laptop Bag ","Adapter "} };
string *array_ve1{new string[5]{"45000 ","1500 ","2500 ","1200 ","1600 "} };
string *array_ve2{new string[5]{"43000 ","1200 ","3000 ","1000 ","1500 "} };
cout << "Commodoties list: ";
for (x = 0; x < 5; x++)
{
cout << array_com[x];
}
cout << "\nVendor 1 cost list: ";
for (y = 0; y < 5; y++)
{
cout << array_ve1[y];
}
cout << "\nVendor 2 cost list: ";
for (z = 0; z < 5; z++)
{
cout << array_ve2[z];
}
return 0;
}
OUTPUT:-
Commodoties list: Laptop Mouse Headset Laptop Bag Adapter
Vendor 1 cost list: 45000 1500 2500 1200 1600
Vendor 2 cost list: 43000 1200 3000 1000 1500
--------------------------------
Process exited after 0.08258 seconds with return value 0
Press any key to continue . . .