Course Code : BCSL-021 Course Title : C Language Programming Assignment Number : BCA (II)/L-021/Assignment/2015 Maximum Marks : 50, Weightage : 25% This assignment has only one question. Answer the question. This question carries 40 marks. Rest 10 marks are for viva voce. You may use illustrations and diagrams to enhance the explanation. Please go through the guidelines regarding the assignments given in the programme guide for the format of presentation. 1. Write an interactive C program to perform weekly production and sales analysis of a company which prompts the user with the following options on the main menu: 1) Information about the Company 2) Details/Specifications of their Five Products 3) Price list of their Five Products 4) Weekly Matrix of Production and Sales 5) Total value of weekly Production and Sales 6) Grand total value of Production and Sales 7) Quit Enter your choice: If “1” is entered, should display the information about the Company. If “2” is entered, it should give the details/specifications about their 5 products. If “3” is entered, it should display the prices of their 5 products. If “4” is entered week-wise production and sales need to be shown after entering the values by the user. If “5” is entered total value of weekly production and sales need to be displayed. If “6” is entered grand total value of production and sales need to be displayed. And “7” is for Quit the program. If the user enters any letters or numbers other than the choice, redisplay the prompt. All outputs should go to the terminal and all inputs should come from the keyboard. (40 Marks) Note: You must execute the program and submit the program logic, sample input and output along with the necessary documentation for this practical question. Assumptions can be made wherever necessary. Ans: #include char prd[][15]={"Notebook","Pen","Pencil","Guide-book","Eraser"}; char price[]={20,10,5,40,3}; int i,q[5],s[5],tq=0,ts=0;
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.