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
Answers: 1
Computers and Technology, 11.07.2019 22:20, mem8163
Answers: 1
Computers and Technology, 17.07.2019 13:00, chuyyoshy092714
Answers: 1
Create an application that reads data from a data file. the first line contains the tax rate and the...
Mathematics, 10.12.2021 07:10
Arts, 10.12.2021 07:10
Mathematics, 10.12.2021 07:10
Chemistry, 10.12.2021 07:10
Mathematics, 10.12.2021 07:10