Answer to Question #87908 in Algorithms for victor watts

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
1
Expert's answer
2019-04-18T05:08:31-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS