Engineering
Engineering, 18.09.2019 05:30, bcox32314

Create an application that reads data from a data file. the first line contains the tax rate and the capacity of the shopping bag. each of the rest lines in the data file represents an item: item name, quantity, and retail price. for example, aaa battery 5 0.99, represents 5 aaa batteries that cost $0.99 each. read all items in the data file if the shopping bag is not full. then display a summary of the status of the shopping bag.
sample data file:
0.05 5
colored pencils 3 0.59
notebook 5 0.99
aaa battery 5 0.99
output of the program
the bag contains:
name of the items quantity subtotal
colored pencils 3 $1.77
notebook 5 $4.95
aaa battery 5 $4.95
total: $11.67
tax (5%): $0.58
grand total: $12.25

answer
Answers: 1

Similar questions

Do you know the correct answer?
Create an application that reads data from a data file. the first line contains the tax rate and the...

Questions in other subjects:

Konu
Arts, 10.12.2021 07:10
Konu
Mathematics, 10.12.2021 07:10