I have one of my friends studying Physical Science at the University of Sri Jayawardenapura. He is a 2nd year student and for his Mathematics subject, he had to do a C++ programming assignment. The thing is he is not familiar very much with C++ and programming since he is not doing an IT degree. But his professor had given the assignment and asked him to do it before the final exam. He told me that they are getting marks for the assignment and it was really important to finish the assignment. Since I'm the IT guy he sent me the assignment details.
Click Here to download the assignment details. (44.9 KB)
I got only two days to finish the project as he had to upload it before the deadline. The project is to develop a system to ABC Company. Given below is the main menu.
I think now you have an idea about it. It is a system to enter employee details, sales details and generate a salary report and a business analyzer report. Given below is how the user enters employee details and sales details.
Given below is the salary report for some sample data. The important feature in it is that if the employees are having a same amount of sales, they get the same rank. Rank is given according to the descending order of the total sales of each employee.
eg: If the top two employees who have the maximum sales are having a same amount of total sales, both of them get the Rank 1. The next employee will get the Rank 3 instead of 2. I think now you got it. In the below image, there are two employees with Rank 3. So the next employee's Rank is 5 instead of 4.
Given below is the Business Analyzer. It analyzes data and generates this report. The percentages of the each product is represented graphically.
Click Here to Download the source code and the application. (116.48 KB)
I finished the project before the deadline and explained every single line in the coding to my friend. I don't know whether he understood. But It was a great opportunity for me to test my programming skills in C++ and analytical thinking. I learned C++ for the 1st semester of the 1st year at SLIIT and mastered it on my own. I'd like to take this opportunity to thank the lecturers who taught me C++ at SLIIT, Ms. Anjali Gamage, Ms. Tania Fernando and Ms.Abarnah Kirupananda.