Saturday, May 11, 2019

Software Development (JAVA) Coursework Example | Topics and Well Written Essays - 2500 words

Softw ar Development (JAVA) - Coursework ExampleThe working methods illustrate the functionalities / pusposes of the different classes. The underived class checkStock has not been dervied or linked to any child classes and therfore it has been shown seperately with its data members and method members. Class Hierarchy_Diagram The class hierarchy plat shows the 5 classes in a hierarchical way with the super class / parent class / stolid class on top i.e., the class calculateCost. The child classes are shown at the bottom and they have been denominate as implementing classes with definitions of the member methods of the parent class. The super class has been labelled as an abstract class because of the absence of method definitions i.e., abstract methods. Instance_Diagram The instance diagram shows the object instances of the class calculateCost and its sub classes recess, triangular and cylindrical. It shows the super classes defend data members being accessed by the sub classes. The instance diagram depicts the flow of the object oriented platform and traces the entire execution path or process flow of the application. It shows the values and the calculations as it occures in a real time execution scenario. Use Case Diagram The Use Case diagram illustrated the actors i.e., the promoter who initialises the stock of roll 1, grade 2, grade 3 of boards present in the companys reserves for designing of tubes and boxes. The processes of a customer logging in and making an order choice for a box or a tube, the grade and the other additional specifications like reinforcble bottom, sealable top, color print etc. counting of Cost The cost is calculated based on the grade of the material. The additional costs of sealable tops, reinforcble bottoms, color printing are added to the total cost as percentages The main calculation is involved in the part where the climb area is calculated using the method calculateSurfaceArea. It accepts the inputs for total units or dered (example n), the dimensions and the type ( board grade) from the user. For the Box it calculates the muster by employing the folowing mathematical calculation Surface area = n X length X heyday For the Triangular tube the following calculation is performed Surface area = n X (0.5 X side1 X side2) + squareroot (side1)2 + (side2)2* vizor +side1 X height + side2 X height For the cylindrical tube the surface area is calculated using the following mathematical formula Surface area = n X 3.14*radius2 + (2 X 3.14 X radius * height ) Here n is the number of ordered units or the quantity Height is the height of the triangular or cylindrical tube Side 1 and side 2 are the twain sides of the triangle base tube Radius is the radius of the cylindrical tube Length, breadth and height are the three sides of the box Calculation of available material (Quantity Exceeded) The total ordered surface areas of grade 1, grade 2 and grade 3 are compared with the initially entered quantity of board material by the order. because the output is displayed and message shown whether the ordered quantity has exceeded the stock

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.