# data[].attributes.attachment_link.readable_text
//Lab3
//Filename: lat3a.cpp

#include <iostream>
#include <windows.h>
#include <iomanip>

using namespace std;

int main()
{
	double p1,p2; //price
	int q1, q2;		//quantity
	double s1, s2, total;	//subtotal
	
	//Get price and quantity;
	cout << endl;
	cout <<"Enter price: ";
	cin >> p1;
	cout <<"Enter quantity: ";
	cin >> q1;
	
	cout << endl;
	
	cout <<"Enter price: ";
	cin >> p2;
	cout <<"Enter quantity: ";
	cin >> q2;
	
	s1 = p1*q1;
	s2 = p2*q2;
	
	total = s1+s2;
	
	//dislaykan header pembelian
	cout <<setw(4)<< "No.";
	cout <<setw(20)<< "Name";
	cout <<setw(10)<< "Price";
	cout <<setw(10)<< "Quantity";
	cout <<setw(10)<< "Subtotal";
	cout << endl;
	cout << "==================";
	cout << "==================";
	cout << "==================";
	cout <<endl;
	//list barang:
	cout <<setw(4)<< "1.";
	cout <<setw(20)<< "Book";
	cout <<setprecision (2)<< fixed
		<<setw(10)<< p1
		<<setw(10)<< q1
		<<setw(10)<< s1
		<<endl;
	cout <<setw(4)<< "2.";
	cout <<setw(20)<< "Bumbu masak";
	cout <<setprecision (2)<< fixed
		<<setw(10)<< p2
		<<setw(10)<< q2
		<<setw(10)<< s2
		<<endl;
	cout << "==================";
	cout << "==================";
	cout << "==================";
	cout <<endl;
	cout <<setw(24)<< "Total";
	cout <<setprecision (2)<< fixed;
	cout<<setw(30)<< total;
	cout <<endl;
	system ("pause");
	return 0;
}













# data[].attributes.attachment_link.readable_text
//Lab3
//Filename: lat3a.cpp

#include <iostream>
#include <windows.h>
#include <iomanip>

using namespace std;

int main()
{

	//displaykan header pembelian
	cout <<setw(4)<< "No.";
	cout <<setw(20)<< "Name";
	cout <<setw(10)<< "Price";
	cout <<setw(10)<< "Quantity";
	cout <<setw(10)<< "Subtotal";
	cout << endl;
	cout << "==================";
	cout << "==================";
	cout << "==================";
	cout <<endl;
	//list barang:
	cout <<setw(4)<< "1.";
	cout <<setw(20)<< "Book";
	cout <<setprecision (2)<< fixed
		<<setw(10)<< 1.5;
	cout <<setw(10)<< 4;
	cout<<setprecision (2)<< fixed
		<<setw(10)<< 6;
	cout << endl;
		
	cout <<setw(4)<< "2.";
	cout <<setw(20)<< "Bumbu masak";
	cout <<setprecision (2)<< fixed
		<<setw(10)<< 2
		<<setw(10)<< 5
		<<setw(10)<< 10
		<<endl;
		
	cout << "==================";
	cout << "==================";
	cout << "==================";
	cout <<endl;
	cout <<setw(24)<< "Total";
	cout <<setprecision (2)<< fixed;
	cout<<setw(30)<< 16;
	cout <<endl;
	
	system ("pause");
	return 0;
}













# data[].attributes.attachment_link.readable_text
//Lab3
//Filename: lat3a.cpp

#include <iostream>
#include <windows.h>
#include <iomanip>

using namespace std;

int main()
{

	//dislaykan header pembelian
	cout <<setw(4)<< "No.";
	cout <<setw(20)<< "Name";
	cout <<setw(10)<< "Price";
	cout <<setw(10)<< "Quantity";
	cout <<setw(10)<< "Subtotal";
	cout << endl;
	cout << "==================";
	cout << "==================";
	cout << "==================";
	cout <<endl;
	
	system ("pause");
	return 0;
}













# data[].attributes.attachment_link.readable_text
//Lab3
//Filename: lat3a.cpp

#include <iostream>
#include <windows.h>
#include <iomanip>

using namespace std;

int main()
{

	//displaykan header pembelian
	cout << "No.";
	cout << "Name";
	cout << "Price";
	cout << "Quantity";
	cout << "Subtotal";
	cout << endl;
	cout << "==================";
	 cout<< "=================="
	 << "==================";
	cout <<endl;
	
	system ("pause");
	return 0;
}













# data[].attributes.headline
Surya: bat file for MinGW in root folder of your flash_disk

# data[].attributes.subject
Surya: bat file for MinGW in root folder of your flash_disk

# data[].attributes.body
needed to set path when working using your flash_disk

# data[].attributes.body
needed to open windows prompt in your working directory

# data[].attributes.attachment_link.readable_text
 //how to compile cpp code and bind/link cpp code using MinGW
 
 //to compile file template.cpp:
 // g++ -c template.cpp
 
 //to bind/link file tempate.cpp:
 //g++ -c bmw template.cpp
 
 
 #include <iostream> 
 #include <windows.h>
 using namespace std; 


 
int main() 
{     
	
	cout << endl;
	system("pause");
	return 0;
}