Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions are below. Some of the pictures overlap! Write a Cs program to read details of invoices from a file and to output invoices which

Instructions are below. Some of the pictures overlap! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Write a Cs program to read details of invoices from a file and to output invoices which indicate the total cost of each item and the total cost of the invoice together with full details. Details of an invoice are: An invoice header with number of items on the invoice and the date of the invoice For each item, an item code (6 digits), a name, a quantity and a unit cost. Thus a typical set of lines in the file for invoices might be: 3 2/12/2017 134276 Framis-R 8 7.35 125790 Framis-L 12 15.76 100086 Aglet 395 0.11 2 1/23/2017 135876 Wrench 12 22.50 543287 Henway 4 19.25 The above indicates that there are three items on the first invoice and its date is 2/12/2017, the first item has an item code of 134276 is a Framis-R an order quantity of 8 and a unit price of $7.35. There are two items on the next invoice, etc. Write a C+ program to read the file (input.txt) with details of invoices and to output to a file an invoice which indicates the total cost of each item and the total cost of the invoice together with full details. The above details might produce a file as follows: Erie Industrial Supply Corporation Invoice date: 2/12/2017 134246 125790 100086 Framis-R 8 7.35 58.80 Framis-L 12 15.76 189.12 Aglet 395 0.11 43.45

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

Rework Problem 29 for an outside temperature of 20 o C

Answered: 1 week ago

Question

25.0 m C B A 52.0 m 65.0 m

Answered: 1 week ago

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago