Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(a)Write the pseudocode (go through the Logic Design process that we covered in

ID: 3529275 • Letter: #

Question

(a)Write the pseudocode (go through the Logic Design process that we covered in the Programming Process slides) for a program which calls a function (call it filread() ) to read the following values from a file: a buyer's name (a string), an invoice number, a part number, the quantity ordered (all integers) and the unit price (a real number) - these quantities will be passed back from the function to main. Then the program will call another function (call it filwrite() ), passing the values read, which will write to another file an invoice header with your company's name ( $$$ & Co. Invoice $$$ - fill in your name instead of Smith), calculates the total price of the sale and writes on separate lines with appropriate labels : the buyer's name, the invoice number, the part number, the quantity ordered, the unit price and the total price.[ So, three functions: main, filread(), filwrite().

Explanation / Answer

Step 1- Call the function filread() from main()...... Step 2- String buyername