// Lab 3 - SECJ1013 - 20211
// Group Members:
// 1. ???
// 2. ???
// 3. Muhammad Harun bin Marzuki A20EC0212

// Study and identify the issues of the below program. Improve 
// the source code of the program so the solutions can be made 
// in a more systematic and efficient ways by using parallel 
// and multidimensional arrays.

#include <iostream>
#include <string>

using namespace std;

int main() {
    string item[3];
    float price_n_tax[3][2];

    
    
for(int i= 0 ; i < 3; i++){
	
	cout << "Item :" ;
	cin >> item[i];
	cout << "Price :";
	cin >> price_n_tax[i][0];
	cout << "Tax :";
	cin >> price_n_tax[i][1];
	
	cout << "\n";
}
   
    cout << "\n\n";
   
    cout << "Item. \tPrice \tTax \tTotal Price\n";
    for (int i = 0; i<3; i++) {
    	cout << item[i] << " \t" << price_n_tax[i][0] << " \t" << price_n_tax[i][1] << " \t" << (price_n_tax[i][0] + price_n_tax[i][1]) << "\n";
	}
    return 0;
}
