part no. Price Quantiy on Hand Reorder Point Minimum Order 0123 1.23 23 20 20 02
ID: 3619619 • Letter: P
Question
part no. Price Quantiy on Hand Reorder Point Minimum Order 0123 1.23 23 20 20 0234 2.34 34 50 25 3456 34.56 56 50 10 4567 45.67 7 10 5 5678 6.78 75 75 25 Write a program to read to read the inventory file and create an inventory report,The report will contain the part number, price, quantity on hand, reorder point, minimum order, and order amount. The order amount is calculated when the quantiy on hand falls below the reorder point. It is calculated as the sum of the reorder point and the minimum order less the quantity on hand. Provide a report heading, such as "Inventory Report," captions for each column, and an "End of Report" message at the end of the report. Print the part number with leading zero.
Function Declaration needs to be included in the program. Local Declaration needs to be included in the program. This is the part of the sample program from the text book. #include <stdio.h> // Function Declarations int getStu (File* spStu,int* stuID, int* exam1, int* exam2, int* final); int writeStu (File* spGrades, int stuID, int avrg, char grade); void calcGrade(int exam1, int exam2, int final, int* avrg, char* grade); int main (void) { // Local Declarations FILE* spStu; FILE* spGrades; int stuID;int exam1;int exam2; int final; int avrg; char grade; // Statements printf("Begin student grading ") if (!(spStu = fopen ("P07-06.DAT", "r"))) { printf("Error opening student file "); return 100; } // if open input if (!(spGrades = fopen ("P07-06Gr.DAT", "w"))) { printf("Error opening grades file "); return 102; } // while fclose (spStu); fclose (spGrades); printf("End student grading "); return 0; } // main /*==================getStu======================= Reads data from student file. Pre spStu is an open file. stuID,exam1,exam2,finals pass by address Post reads student ID and exam scores if data read --returns 1 if EOF or error--returns 0 */ int getStu(FILE* spStu, int* stuID, int*exam1, int* exam2, int* final) part no. 5678 6.78 75 75 25 Write a program to read to read the inventory file and create an inventory report,
The report will contain the part number, price, quantity on hand, reorder point, minimum order, and order amount. The order amount is calculated when the quantiy on hand falls below the reorder point. It is calculated as the sum of the reorder point and the minimum order less the quantity on hand. Provide a report heading, such as "Inventory Report," captions for each column, and an "End of Report" message at the end of the report. Print the part number with leading zero.
Function Declaration needs to be included in the program. Local Declaration needs to be included in the program. Write a program to read to read the inventory file and create an inventory report,
The report will contain the part number, price, quantity on hand, reorder point, minimum order, and order amount. The order amount is calculated when the quantiy on hand falls below the reorder point. It is calculated as the sum of the reorder point and the minimum order less the quantity on hand. Provide a report heading, such as "Inventory Report," captions for each column, and an "End of Report" message at the end of the report. Print the part number with leading zero.
Function Declaration needs to be included in the program. Local Declaration needs to be included in the program. This is the part of the sample program from the text book. #include <stdio.h> // Function Declarations int getStu (File* spStu,int* stuID, int* exam1, int* exam2, int* final); int writeStu (File* spGrades, int stuID, int avrg, char grade); void calcGrade(int exam1, int exam2, int final, int* avrg, char* grade); int main (void) { // Local Declarations FILE* spStu; FILE* spGrades; int stuID;int exam1;int exam2; int final; int avrg; char grade; // Statements printf("Begin student grading ") if (!(spStu = fopen ("P07-06.DAT", "r"))) { printf("Error opening student file "); return 100; } // if open input if (!(spGrades = fopen ("P07-06Gr.DAT", "w"))) { printf("Error opening grades file "); return 102; } // while fclose (spStu); fclose (spGrades); printf("End student grading "); return 0; } // main /*==================getStu======================= Reads data from student file. Pre spStu is an open file. stuID,exam1,exam2,finals pass by address Post reads student ID and exam scores if data read --returns 1 if EOF or error--returns 0 */ int getStu(FILE* spStu, int* stuID, int*exam1, int* exam2, int* final) part no. Price Quantiy on Hand Reorder Point Minimum Order 0123 1.23 23 20 20 0234 2.34 34 50 25 3456 34.56 56 50 10 4567 45.67 7 10 5
Explanation / Answer
please rate - thanksRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.