Question #87908

Write the pseudocode that will produce a slip similar to the one illustrated at
the beginning of the question

Williams & Son
VAT nr: 0123456
Product Price
Screwdriver R 100
Super glue R 20
_______________________
Total: R120

Expert's answer

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);


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS