requirements 1. Create a pivot table showing each region's total order priority count. 2. Create a pivot
Fantastic news! We've Found the answer you've been seeking!
Question:
requirements
1. Create a pivot table showing each region's total order priority count.
2. Create a pivot chart to show the total Regional sales, shipping cost, and order of priority per customer segment.
3.Create a pivot chart showing the shipping mode count used in each region
Transcribed Image Text:
Part B: Drawing a Hexagon Open and examine the code: 1) Download Lab2PartB.java from Canvas and save it to Desktop-->ITSC_1212--> book Classes In this lab, you need to write some code to make the turtle draw a hexagon. The only two turtle methods you need to use are the forward ( ) method (try 50 for the number of pixels) and the turn ( ) method. Drawing a hexagon may seem overwhelming, but consider that the code in Program 3 in the textbook makes the Page 1 of 5 ITSC 1212 Introduction to Computer Science 1: Module 3 Lab2 turtle draw a square by turning the turtle a certain number of degrees and then making him go forward a certain amount, and then repeating that two-step sequence 3 more times. A hexagon isn t that different - it s a six-sided figure where each side is the same length and the angle between any two sides is equal. The trick to know is in the Lab2PartB.java code as a comment: regular polygons (figures like squares, hexagons, pentagons, octagons, etc.) all have this property: if you sum up all the interior angles, they will always equal 180*(n-2) where n is the number of sides. So if there are six interior angles, figure out how big each interior angle needs to be. From that you can figure out how far the turtle has to turn to start the next line segment. You can use the example of Program 3 in the textbook to guide you in writing the Java code that will make the turtle draw a hexagon. /* Turtle Drawing Program Lab 2, Part B */ /* Started by Celine Latulipe, edited by Bruce Long */ public class Lab2PartB { public static void main(String [] args) { /* Create the world */ World w = new World(); } } /* Create the turtle, call him Tom, put him at (x,y) (100, 100) */ Turtle tom = new Turtle (100, 100, w); /* TODO: Make tom draw a hexagon */ /* HINT1: Hexagons are six-sided figures where: * all sides are the same length, * all the interior angles are the same, and * the sum of all the interior angles is given by: * 180* (n-2)= 180* (6-2) = 180*4 = 720 * HINT2: You should be able to do this by repeatedly calling: * tom. forward( ) then * tom.turn( ) NOTE: Make each side of the hexagon 50 pixels long */ [positive angle values turn right] Part C: Drawing Multiple Hexagons 1. In this part, you need to draw three hexagons, each starting at the following three coordinates (100, 100), (100, 200) and (200, 200) all with 50 pixel side lengths. You want to end up with something that looks like this: 1000 8 World 2. Download Lab2PartC.java from Canvas and save it to your Desktop-->ITSC_1212--> bookClasses folder. Open this file in DrJava. 3. Read through the file. This program has the first hexagon drawn for you, and then a few lines of code to have the turtle stop drawing and move to where the second hexagon needs to be drawn. Compile and run the file to see how much is already done for you. 4. Copy the code for drawing a hexagon from the first part of the file to under the comment that says TODO: draw the second hexagon . Compile and run and make sure that you are now seeing two hexagons. 5. Figure out how to move the turtle to the third location (200,200), and add this code under the comment for moving the turtle. 6. Copy the code for drawing the hexagon again under the comment that says TODO: draw the third hexagon . Compile and run the code to test and make sure that your picture looks the way it is supposed to. /* Turtle Drawing Program Lab 2, Part C */ /* Started by Celine Latulipe */ public class Lab2PartC { public static void main(String [] args) { /* Create the world */ World w = new World(); /* Create the turtle, call him Tom, put him at (x,y) (100, 100) */ Turtle tom = new Turtle (100, 100, w); /* TODO: Make tom draw three hexagons */ tom. forward (50); tom.turn (60); tom. forward (50); tom.turn(60); tom. forward (50); tom. turn(60); tom. forward (50); tom.turn (60); tom. forward (50); tom.turn (60); // pick up pen to stop drawing, move tom to new location (100, 200), put pen back down tom.penUp(); tom. moveTo(100, 200); tom.penDown(); } tom. forward (50); tom.turn(60); // TODO: draw the second hexagon (you can just copy the code from above!) // TODO: move turtle to the third location (200, 200) (how do you get the turtle there?) } // TODO: draw the third hexagon (copy again... or type it all out if you want...) Part B: Drawing a Hexagon Open and examine the code: 1) Download Lab2PartB.java from Canvas and save it to Desktop-->ITSC_1212--> book Classes In this lab, you need to write some code to make the turtle draw a hexagon. The only two turtle methods you need to use are the forward ( ) method (try 50 for the number of pixels) and the turn ( ) method. Drawing a hexagon may seem overwhelming, but consider that the code in Program 3 in the textbook makes the Page 1 of 5 ITSC 1212 Introduction to Computer Science 1: Module 3 Lab2 turtle draw a square by turning the turtle a certain number of degrees and then making him go forward a certain amount, and then repeating that two-step sequence 3 more times. A hexagon isn t that different - it s a six-sided figure where each side is the same length and the angle between any two sides is equal. The trick to know is in the Lab2PartB.java code as a comment: regular polygons (figures like squares, hexagons, pentagons, octagons, etc.) all have this property: if you sum up all the interior angles, they will always equal 180*(n-2) where n is the number of sides. So if there are six interior angles, figure out how big each interior angle needs to be. From that you can figure out how far the turtle has to turn to start the next line segment. You can use the example of Program 3 in the textbook to guide you in writing the Java code that will make the turtle draw a hexagon. /* Turtle Drawing Program Lab 2, Part B */ /* Started by Celine Latulipe, edited by Bruce Long */ public class Lab2PartB { public static void main(String [] args) { /* Create the world */ World w = new World(); } } /* Create the turtle, call him Tom, put him at (x,y) (100, 100) */ Turtle tom = new Turtle (100, 100, w); /* TODO: Make tom draw a hexagon */ /* HINT1: Hexagons are six-sided figures where: * all sides are the same length, * all the interior angles are the same, and * the sum of all the interior angles is given by: * 180* (n-2)= 180* (6-2) = 180*4 = 720 * HINT2: You should be able to do this by repeatedly calling: * tom. forward( ) then * tom.turn( ) NOTE: Make each side of the hexagon 50 pixels long */ [positive angle values turn right] Part C: Drawing Multiple Hexagons 1. In this part, you need to draw three hexagons, each starting at the following three coordinates (100, 100), (100, 200) and (200, 200) all with 50 pixel side lengths. You want to end up with something that looks like this: 1000 8 World 2. Download Lab2PartC.java from Canvas and save it to your Desktop-->ITSC_1212--> bookClasses folder. Open this file in DrJava. 3. Read through the file. This program has the first hexagon drawn for you, and then a few lines of code to have the turtle stop drawing and move to where the second hexagon needs to be drawn. Compile and run the file to see how much is already done for you. 4. Copy the code for drawing a hexagon from the first part of the file to under the comment that says TODO: draw the second hexagon . Compile and run and make sure that you are now seeing two hexagons. 5. Figure out how to move the turtle to the third location (200,200), and add this code under the comment for moving the turtle. 6. Copy the code for drawing the hexagon again under the comment that says TODO: draw the third hexagon . Compile and run the code to test and make sure that your picture looks the way it is supposed to. /* Turtle Drawing Program Lab 2, Part C */ /* Started by Celine Latulipe */ public class Lab2PartC { public static void main(String [] args) { /* Create the world */ World w = new World(); /* Create the turtle, call him Tom, put him at (x,y) (100, 100) */ Turtle tom = new Turtle (100, 100, w); /* TODO: Make tom draw three hexagons */ tom. forward (50); tom.turn (60); tom. forward (50); tom.turn(60); tom. forward (50); tom. turn(60); tom. forward (50); tom.turn (60); tom. forward (50); tom.turn (60); // pick up pen to stop drawing, move tom to new location (100, 200), put pen back down tom.penUp(); tom. moveTo(100, 200); tom.penDown(); } tom. forward (50); tom.turn(60); // TODO: draw the second hexagon (you can just copy the code from above!) // TODO: move turtle to the third location (200, 200) (how do you get the turtle there?) } // TODO: draw the third hexagon (copy again... or type it all out if you want...)
Expert Answer:
Answer rating: 100% (QA)
The challenge requires you to develop three pivot tables to examine data about geographies client groups shipping options and order priority counts Th... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Write a complete Java program called WellFormed that prints the following output:
-
Revise the Java program of Section 14.4.5 to use EOFException to detect the end of the input. Section 14.4.5 Following is the Java program with the capabilities of the C++ program in Section 14.3.5:...
-
Write a Java program to imitate a file system of an operating system. In your solution, design a class called BasicFile with options to carry out the following operations: (a) Select and open an...
-
machine element is made of an alloy with Yield strength of 200 Mpa and fracture strain is 0.08. A machine element is characterized by the normal stress components as shown in the figure. The Answer...
-
Is statistical arbitrage true arbitrage? Explain.
-
The board of directors of Allen Services Inc. authorized the issuance of $400,000 face value, 20-year, 5 percent bonds dated April 1, 2019, and maturing on April 1, 2039. Interest is payable...
-
Why paralegals must be familiar with the rules of evidence?
-
What macroenvironmental factors have affected Targets performance during that period? When you hear the term discount retail, two names that usually come to mind: Walmart and Target. The two have...
-
3. Heal Sdn Bhd Heal Sdn Bhd, a limited liability company, manufactures various heating products which it sells to both High Street and catalogue retailers. The statement of financial position for...
-
Fortune Corporations comparative balance sheet listed current assets and liabilities as follows: Dec. 31, Year 2 Dec. 31, Year 1 Accounts receivable $7,500 $5,200 Inventory 11,500 16,000 Accounts...
-
DDC and Bank are finalizing the terms of a $200MM Unsecured Term Loan (UTL) with an interest rate of 5%.As part of the loan, DDC agrees it wil payoff the $50MM venture loan it previously...
-
the walden manufacturing corporation has office support salaries of $4000, factory supplies of $1000, indirect labor of $6000, direct materials of $16000, advertising expense of $2500, office expense...
-
There are a number of facilitators and inhibitors to communication introduced in 'Beyond the numbers: Professional Interviewing Techniques'. Do you think there are other facilitators and inhibitors...
-
Morning View Company's 2023 sales revenue was $250,000 and 2022 sales revenue was $230,000. Morning View's total assets as of December 31, 2023 were $140,000 and total assets as of January 1, 2023...
-
How to account for intangibles is perhaps one of the most troublesome and controversial issues in accounting." Discuss and evaluate the above statement, referring to relevant academic literature...
-
What is the force acting on a unit width of the dam wall shown in Fig. 3.27, if the water is 15m deep and the wall is inclined at 60? Furthermore, how far along the wall from the water surface is the...
-
2. Assume a person bends forward to lift a load "with his back" as shown in Figure P12.42a. The person's spine piv- ots mainly at the fifth lumbar vertebra, with the principal supporting force...
-
This exercise is the same as Programming Exercise 1, except that you should use private inheritance instead of containment.Again, a few typedefs might prove handy. Also you might contemplate the...
-
Consider the class definitions of Programming Exercise 5 in Chapter 14,Reusing Code in C++. If you havent yet done that exercise, do so now.Then do the following: Write a program that uses standard...
-
What statement would you use to print the phrase Hello, world and then start a new line?
-
True or False. For an undamped system, the velocity leads the acceleration by \(\pi / 2\).
-
True or False. Coulomb damping can be called constant damping.
-
True or False. The motion diminishes to zero in both underdamped and overdamped cases.
Study smarter with the SolutionInn App