• Have any questions?
  • +91-9828671065
  • support@helpinhomework.org
trustpilot ratings
google ratings


Homework answers / question archive / Sale-Receipt: Write a java program that specifies four parallel one dimensional arrays to   store the product name, quantity and cost plus ItemTotal

Sale-Receipt: Write a java program that specifies four parallel one dimensional arrays to   store the product name, quantity and cost plus ItemTotal

Computer Science

Sale-Receipt: Write a java program that specifies four parallel one dimensional arrays to  

store the product name, quantity and cost plus ItemTotal. Each array should be capable of  

holding a number elements provided by user input. Using a for loop input values for length  

and width arrays. The entries in the area arrays should be the corresponding values for the  

product, which is to be used to calculate the costs as follows (thus, itemTotat[i] = quantity

[i]* cost [i]) after data has been entered display the following receipt as output:

Product Quantity Cost Total

---------- ----------- ------- --------

Banana 4 2.65 10.60

coke 1 9.18 9.18

Sub-Total 19.78

VAT(15%) 2.97

TOTAL N$ 22.75

ample Run1

Enter the number of products: 2

Enter product 1 name, Qty and Cost: Banana 4 2.65

Enter product 1 name, Qty and Cost: Coke 1 9.18

Output1:

Product Quantity Cost Total

---------- ----------- ------- --------

Banana 4 2.65 10.60

coke 1 9.18 9.18

Sub-Total 19.78

VAT(15%) 2.97

TOTAL N$ 22.75

Fill The Details Below To Receive Instant

HOMEWORK HELP

EST
USD
Please upload other supplement files here if available.

Your question has been submitted. If you do not receive email confirmation, please contact us via email or whatsapp +91-9828671065.

GET ANSWER TO THIS QUESTION

100% UNIQUE SOLUTION WITHIN FEW HOURS


GET ANSWER