subject
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

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 12:10
On a average work day more than work place firs are reorted
Answers: 1
question
Engineering, 04.07.2019 18:10
Refrigerant 134a enters an insulated compressor operating at steady state as saturated vapor at -26°c with a volumetric flow rate of 0.18 m3/s. refrigerant exits at 9 bar, 70°c. changes in kinetic and potential energy from inlet to exit can be ignored. determine the volumetric flow rate at the exit, in m3/s, and the compressor power, in kw.
Answers: 1
question
Engineering, 04.07.2019 18:10
During a steady flow process, the change of energy with respect to time is zero. a)- true b)- false
Answers: 2
question
Engineering, 04.07.2019 18:10
Machinery that is a key part of the process and without which the plant or process cannot function is classifed as: (clo4) a)-critical machinery b)-essential machinery c)-general purpose machinery d)-none of the specified options.
Answers: 1
You know the right answer?
Create an application that reads data from a data file. the first line contains the tax rate and the...
Questions
question
Mathematics, 25.01.2021 16:20
question
Mathematics, 25.01.2021 16:20
question
Spanish, 25.01.2021 16:20
question
Mathematics, 25.01.2021 16:20
question
Social Studies, 25.01.2021 16:20
Questions on the website: 13722361