Assignment No. 5
Cs 504 Software Engineering
Total Marks 30 Marks
Note:-
We have discussed different things regarding Software Coding in lectures from 28-35. Writing a maintainable code makes the product with High Quality. Here you are given a scenario where you have to write a maintainable code for the given problem.
Scenario:
Relax Solutions is an IT solution provider company. It has hired you as a Software Engineer. Your job is to write code, but at the same it should be of High Quality. Your Team Lead has asked you to write a code for daily sale of medical store. The code should be of High Quality.
You are required to
a. Write correct code for entering the daily sale of a medical store. Note that the whenever a medicine is sold, it is immediately entered in system. For each medicine following fields must be stored:
a. MedicineID
b. Medicine Name
c. Quantity sold
d. Total price (should automatically be calculated)
Note: you will initially have all medicines stored in database (MedicineID, Medicine Name and Unit Price) so that you may automatically calculate the cost. You can manually enter the master information (MedicineID, Medicine Name and Unit Price) about each medicine, no need to provide separate interface.
b. Display a report of daily sale. This report will show complete record of sales of a particular day (record of all medicine sold on that day) along with the total sale in Rupees.
c. Make use of Hungarian Notation for coding purpose
d. Make use of Comments in the Code where required necessary.
TIPS: you can use filling for storing the basic information
GOOD LUCK.
Saturday, January 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment