1st docWrite an application that accepts information for on
1st docWrite an application that accepts information for one product from the user. Your application should be user-friendly and provide clear prompts to the user. The user should enter product ID, product name, and product price. After the user has entered all three values, the application should display this information to the user. This allows the user to verify the information entered. The product information should display in an easy-to-read format using the appropriate combination of printf(), print() and println() statements. Headers or labels should be used in the display to make it clear what each value displayed represents.Your code should be well commented. Use the following steps to guide your work:Before you write your Java code, start your design by using pseudocode to outline your algorithm. Write down this algorithm in a Word document.Use NetBeans IDE (Click here if you have not installed) to edit, compile and run your Java code. This document will be the beginning of your design document for your application.Take screenshots to show your code, successful compile, and successful run. Click here for how to make a screenshot on a PC or here on a Mac.Insert the screenshots into the Word document.Finally, save your Word document as “yourname_IP1.docx”. Click the “Edit” button on this submission node to submit the saved document.2nd document In this week, you will design and implement a class. The class represents a product category that your company sells. Example product categories could be toasters, books, cars, televisions, and computers. Your class should have at least 3 attributes (instance variables). Getters and setters for each instance variables should be provided. Attributes should be appropriately typed and scoped to incorporate data hiding. Appropriate constructors should be implemented.Create an application that constructs at least 1 instance (object) of your class. The application should call the constructor that you implemented to construct the object. The default constructor should not be used. The initial values passed to the constructor should be values entered by the user. The application should provide clear prompts for the required initial values to be used by the constructor.Your application should test each getter and setter for each class. Display the results of each call to a getter to demonstrate that the correct results are returned. This information should display in a well-formatted manner and using a combination of printf(), print(), and println() statements. Headers and labels should be used in the display to make it clear what each value displayed represents.Your code should be well commented. Use the following steps to guide your work:Update your design document created in Week 1 to include your class diagram.Use NetBeans IDE (Click here if you have not installed) to edit, compile and run your Java code. This document will be the beginning of your design document for your application.Take screenshots to show your code, successful compile, and successful run. Click herefor how to make a screenshot on a PC or here on a Mac.Insert the screenshots into the Word document.Finally, save your Word document as “yourname_IP2.docx”. Click the “Edit” button on this submission node to submit the saved document.3rd documentImplement the data validation enhancement you designed in the previous task. Include an error-checking condition to allow the user to reenter a data value that is not valid. For example, if a class should have a positive number for an attribute, continuously prompt the user for a valid positive number until one has been entered by the user. Based on the attributes you provided, you have selected where to include appropriate error checking. You must include error checking for at least 1 value required by the user.Your code should be well commented. Use the following steps to guide your work:Update your design document to include this enhancement.Use NetBeans IDE (Click here if you have not installed) to edit, compile and run your Java code.Take screenshots to show your code, successful compile, and successful run. Click herefor how to make a screenshot on a PC or here on a Mac.Insert the screenshots into the Word document.Finally, save your Word document as “yourname_IP3.docx”. Click the “Edit” button on this submission node to submit the saved document.4th documentYou have been tasked with creating an application that accepts product data and displays this information. The application also computes average sales and shipping charges. Using appropriate control structures, enhance your product class to include the 2 new methods designed in an earlier task.The computeAverageSales() method should use sentinel-controlled repetition to allow a user to enter product sales data until the user has indicated that he or she is done. The average of the entered sales data will be computed and returned by the method to be displayed by the application. For example, if the user entered 500.50, 250.50, and 300.30, then the average sales would be computed for these 3 values and returned by the method. The prompting of the sales data is done within the method. If the value of the average sales exceeds $200.00, a message should be displayed to alert the user that the product has produced a significant amount of revenue. The computeAverageSales() method should return type ‘double.’The computeShippingCharges() method should use sentinel-controlled repetition, to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value.Modify your application to call the computeAverageSales() and computeShippingCharges() methods.As a result of these modifications, the following requirements should be met:Your application should use the class you created in the earlier tasks. Your class represents one product that your company sells. Your class should have at least 3 attributes (instance variables). Getters and setters for each instance variable should be provided. Attributes should be appropriately typed and scoped to incorporate data hiding. Appropriate constructors should be implemented by each class and called by the application.The application should provide a user-friendly interface that allows the user to input data for at least 2 instances of your product class.Data validation should be incorporated at the time of data entry. At least one error-checking condition must be incorporated to allow the user to reenter a data value that is not valid.Constructors should be called to create instances of your classes once the user has entered valid data. The valid data should be used appropriately by the constructors.After product information has been entered and displayed, your application should allow the user to compute average sales and shipping charges. The application should call the computeAverageSales() and computeShippingCharges() methods. There is no limit to the number of orders placed for each product. Using sentinel-controlled repetition, the computeAverageSales() method should allow a user to enter product sales data until the user has indicated that he or she is done. The average of the entered sales data will be computed and returned by the method to be displayed by the application. For example, if the user entered 500.50, 250.50, and 300.30, then the average sales would be computed for these 3 values and returned by the method. The prompting of the sales data is done within the method. If the value of the average sales exceeds $200.00, a message should be displayed to alert the user that the product has produced a significant amount of revenue.The computeShippingCharges() method should use sentinel-controlled repetition to allow a user to enter shipping data until the user has indicated that he or she is done. The total shipping charges will be computed and returned as a double value. The application will display the computed shipping charges.Your code should be well commented. Use the following steps to guide your work:Compile all of your pseudocode from the earlier IPs into a design document. Your design document should have a section that includes the functional requirements and any class diagrams used to describe the system. Include any design requirements imposed by your technical leadership.Use NetBeans IDE (Click here if you have not installed) to edit, compile and run your Java code.Take screenshots to show your code, successful compile, and successful run. Click herefor how to make a screenshot on a PC or here on a Mac.Insert the screenshots into the Word document.Finally, save your Word document as “yourname_IP4.docx”. Click the “Edit” button on this submission node to submit the saved document.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
