complete. Create a single document...
You may use a word processor such as Microsoft Word to
complete. Create a single document for the assignment. Word processing documents must be saved using Microsoft Word format.
You may also use a text editor such as Notepad++ to complete the homework
assignments. Again, create a single document for the assignment. .
When creating a UML class diagram in ArgoUML, open the file named ClassDiagramTemplate.zargo using the ArgoUML program. Immediately save the file using a different name by choosingFile/Save Project As…Then use ArgoUML to draw the class diagram for the assignment. Attach the .zargo file to your submission. Computer Windows 10.Design an application for each of the following problems writing the pseudocode for each; include a UML diagram if appropriate.
1. Wood Trim, Inc. wants a program that will allow its sales clerks to enter the length (in feet) of the trim ordered by a customer and the price of one foot of trim. Design an application that will calculate and print the total price of the trim before taxes, and then the total price of the trim after the 5% sales tax is added. Be sure to use a constant for the sales tax, and set the value of the constant to 0.05. Write pseudocode for an application program that contains a main() module and a printTrimCost() module. The main() module will input the data (the length in feet of the trim and the price of one foot of trim) and call the printTrimCost() module, passing the correct arguments. The printTrimCost() module that will display the data the user entered, perform the calculations for the total price of the trim before taxes, and the total price of the trim after taxes, and display the results of the calculations. (No UML diagram needed for this problem.)
2. The Free People Store sells different makes of sweaters, such as cashmere and cotton sweaters. Each style of sweater is offered in different colors, such as brown and black. Available sweater sizes range from size 32 to size 44, in both whole and half sizes. Design an object-oriented computer program by doing the following:
a. Create the class diagram and pseudocode for the Sweater class that contains the style of the Sweater, the color of the sweaters, and the size. Examples of valid values for the style are "cashmere" and "cotton". Examples of valid values for the color are "brown" and "black". Examples of valid values for the size are 32 and 34.5. Be sure to choose the most appropriate data type for the attributes. For this class definition, include the following:
i. A default constructor that initializes each attribute to some reasonable default value for non-existent sweaters.
ii. Another constructor method that has a parameter for each data member. This constructor initializes each attribute to the value provided when an object of this type is instantiated.
iii. Accessor and mutator methods for each attribute.
iv. A method that displays all the data about the sweaters.
b. Add a class diagram for the application to the one you created for part a above, add the correct relationship and multiplicity, and insert the completed diagram immediately before the pseudocode for this problem in the Word document. Write the pseudocode for the application program for the shoe store with a main() module that instantiates two objects of the Sweater class. The first object should be named nerdSweaters and use the default constructor. The second object should be named coolSweaters and use the second constructor to initialize the style to "cashmere", the color to "brown", and the size to 36. Include the following instructions in the main() method, in the order specified below:
i. A call to set the color of the nerdSweaters to "tan".
ii. A call to set the style of the nerdSweaters to “cotton”.
iii. A call to set the size of the nerdSweaters to 35.
iv. A statement that displays the style of the nerdSweaters, using the appropriate method call.
v. A call to change the color of the coolSweaters to "gold".
vi. A statement that displays the style of the coolSweaters, using the appropriate method call.
vii. A call for the coolSweaters object to the method that displays all the information about the sweaters.