Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

java. Problem Description: Universal Manufacturers is a manufacturing Company that manufactures Engineering tools since 1961. The company has however not been automated and works on

java.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Problem Description: Universal Manufacturers is a manufacturing Company that manufactures Engineering tools since 1961. The company has however not been automated and works on mechanical logging of new tools that are manufacture here The company now understands that it is time that they catch up with the world and automate their process of adding tools they manufacture and displaying tools that match the consumer's requirement An application is hence needed to be created to automate the manufacturing process. Can we trust you to create this application with the below mentioned requirements within 3 hours so that the company can run smoothly and come back to the currenter of technology? It includes the following two modules Add Tools Details View Tools that match the customer's requirements Artifact Description File Name application. Tool.java application Data Provider rep ort resources LogConfig java Implemented Add Tools Details View Tools that match the customer's requirements rtifact Description: Description Implemented File Name pplication Tool application Data Provider application. Tester resource.AppConte resources.loyConfig java resources.configuration properties reure el application. Tool Detail java application Validater je application Applications test.Application Test Java To be implemented Incomplete file is given) The Tester class is used as an interface between the system and the user to accept the inputs and display the output. For all the requirements, the populated bean object or variables with hard-coded alues have been provided. You may need to change the values to verify different scenarios. The code to invoke appropriate Application class methods and the code to display appropriate output is ready provided Tote Uncomment the commented code in the Tester and DataProvider classes after the required bean classes have been implemented Exception messages should not be hard coded and should be read from properties file in the Tester e v thi HH Li HLV PARK HANH Exception messages should not be hard-coded and should be read from properties file in the Tester Module 1: Add Tools Details Inputs: Tool Description: This module is used to validate and add the tool details. Valid Input: When the user enters valid inputs as given in the table below! H002 toolName manufacturingid quality Grade durabilityin Years percentage Strength manufacturingate 870 16 April 2017 The output should be displayed as shown below: Tool details are successfully added Invalid Inputs: When the user enters an invalid toolName as "Hammer_122", then output should be displayed as shown below The Tool Name entered should not contain special character or just spaces. When the user enters an invalid manufacturingld as "1234567", then output should be displayed as shown below. Exam Data Subrnit Help When the user enters an invalid toolName as "Hammer_122", then output should be displayed as shown below: The Tool Name entered should not contain special character or just spaces. When the user enters an invalid manufacturingid as "1234567", then output should be displayed as shown below: Manufacturing Id should be of for at first letter of tool name> >> o If the rule is violated, then it should return false else return true Valid Inputs: . For toolName = "Hammer", manufacturingid "H003" . For toolName - "Nail Guard", manufacturingid "N121" For toolName "Screw-Driver", manufacturingid "S454" o Invalid Inputs: . For toolName = "Hammer", manufacturingid "h002" For toolName = "Nail Guard", manufacturingid "NG021" For toolName = "Screw.Driver", manufacturingld - "44" pogon addTool Toon Boolean strendy To Use Tool Boolean get Tool Depechenhet ddTool (Tool tool) This method is used to validate the tool details and save the same Invoke the validate() method of Validator class and pass the Tool object. If all the validations are successful, then it should set the readyToUse attribute of the tool by calling the check Readiness() method of the Application dans le passing will return a Boolean value. Save tool details by invoking addTool (Tool tool) of Data Provider, which in turn returns a Boolean value Return the Boolean value obtained in the above step. neckReadiness (Tool tool) This method returns the readyToUse value of the tools being added. Create a variable with the name ready ToUse. If durability is more than 3 years, quality is 'A' or 'B', and percentage of strength is higher or equal to 60 then readyToUse should be set as trueekse setas false Return the readyToUse. "oolDetails (Double durability In Year, Double percentageStrength) . This method returns the tool details, for the tools which have their percentageStrength less than or equal to the entered value and durabilityinYear more than or equal tot T o vetails (Uouble durabilitylnYear, Double percentageStrength) This method returns the tool details, for the tools which have their percentageStrength less than or equal to the entered value and durability in Year more than or equal to the input It should invoke getToolDetails() of DataProvider, which in turn returns a SetcTools It should check if every Tool in the Set Tool> obtained in the previous step have the percentageStrength less than or equal to the entered vakre and durabilityinYear more than input provided. If so then create and populate a new ToolDetail object using the Tool attribute values. It should populate a Set ToolDetail using the ToolDetail populated in previous step It should check if the Sets ToolDetail > is empty, if it is empty then throw an Exception with the message Application.NO_RECORDS_FOUND. Else it should return the Set >> o If the rule is violated, then it should return false else return true Valid Inputs: . For toolName = "Hammer", manufacturingid "H003" . For toolName - "Nail Guard", manufacturingid "N121" For toolName "Screw-Driver", manufacturingid "S454" o Invalid Inputs: . For toolName = "Hammer", manufacturingid "h002" For toolName = "Nail Guard", manufacturingid "NG021" For toolName = "Screw.Driver", manufacturingld - "44" pogon addTool Toon Boolean strendy To Use Tool Boolean get Tool Depechenhet ddTool (Tool tool) This method is used to validate the tool details and save the same Invoke the validate() method of Validator class and pass the Tool object. If all the validations are successful, then it should set the readyToUse attribute of the tool by calling the check Readiness() method of the Application dans le passing will return a Boolean value. Save tool details by invoking addTool (Tool tool) of Data Provider, which in turn returns a Boolean value Return the Boolean value obtained in the above step. neckReadiness (Tool tool) This method returns the readyToUse value of the tools being added. Create a variable with the name ready ToUse. If durability is more than 3 years, quality is 'A' or 'B', and percentage of strength is higher or equal to 60 then readyToUse should be set as trueekse setas false Return the readyToUse. "oolDetails (Double durability In Year, Double percentageStrength) . This method returns the tool details, for the tools which have their percentageStrength less than or equal to the entered value and durabilityinYear more than or equal tot T o vetails (Uouble durabilitylnYear, Double percentageStrength) This method returns the tool details, for the tools which have their percentageStrength less than or equal to the entered value and durability in Year more than or equal to the input It should invoke getToolDetails() of DataProvider, which in turn returns a SetcTools It should check if every Tool in the Set Tool> obtained in the previous step have the percentageStrength less than or equal to the entered vakre and durabilityinYear more than input provided. If so then create and populate a new ToolDetail object using the Tool attribute values. It should populate a Set ToolDetail using the ToolDetail populated in previous step It should check if the Sets ToolDetail > is empty, if it is empty then throw an Exception with the message Application.NO_RECORDS_FOUND. Else it should return the Set

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

Students also viewed these Databases questions

Question

3-3 Identify and describe the three stages of perception.

Answered: 1 week ago