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...
-
In conceptual terms, explain the value earnings ratio. Explain the difference between the value-earnings ratio and the price earnings ratio. What is the critical assumption about future earnings in...
-
Why are some scientists reluctant to say that the Berlin Patient is cured?
-
The financial statements of Gibson Corporation for the first two years of operations reflected the following amounts. Assume a tax rate of \(25 \%\) for 2020 and 2021. Estimates of future earnings at...
-
(Part 1) Using a 4.5% discount rate, calculate the Net Present Value , Payback, Profitability Index, and IRR for each of the investment projects below (note, the inflows are for each year). Based on...
-
You deposit $5000 in a bank account that pays an APR of 3.25% and compounds interest monthly. How much money will you have after 5 years? 2 answers
-
The following items were derived from Woodbine Circle Corporations adjusted trial balance on December 31, 2016: Other financial data for the year ended December 31, 2016: Federal Income Taxes Paid...
-
Q:Question:Citibank holds \( \$ 39 \) milition in foreign exchange assets and \( \$ 33 \) million in foreign exchange liabiliues. Ciubank also conducted foreign currency trading activity in which it...
-
What are the objectives of IT governance?
-
Why is it necessary to treat previous process cost as a separate element of cost in a process costing system?
-
What are the four primary elements of the database approach?
-
How would you manage an employee who misses performance goals?
-
What is the flat-file model?
-
What are the main purposes of the codes of ethics for helping professionals? How can someone use the codes of ethics to guide your ethical decision making? What is consider to be the most important...
-
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?
-
Joyce Lee earns $30,000 a year. Her employer pays a matching Social Security tax of 6.2% on the first $94,200 in earnings, a Medicare tax of 1.45% on gross earnings, and a FUTA tax of 0.8% and a SUTA...
-
The Form 941 tax deposit includes which of the following types of taxes withheld from the employee and paid by the employer? (a) Federal income tax and FUTA tax (b) Federal income tax and Social...
-
The W-4, which shows total annual earnings and deductions for federal and state income taxes, must be completed by the employer and given to the employee by January 31. True/False
Study smarter with the SolutionInn App