pseudocode:
array ProductName[];
array ProductPrice[];
WriteLine("Williams & Son");
WriteLine("VAT nr: 0123456");
WriteLine("Product Price");
int sum = 0;
for(int i=0; i < ProductName.Length(); i++)
WriteLine(ProductName[i] + " R " + ProductPrice[i]);
sum += ProductPrice[i];
WriteLine("Total: R " + sum);
Comments
Leave a comment