Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

City McKeesport Bowie Napa Montebello Napa Montebello Prior Lake Napa Phenix City Draper Phenix City Lake

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


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...)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The challenge requires you to develop three pivot tables to examine data about geographies client groups shipping options and order priority counts Th... 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

C++ Primer Plus

Authors: Stephen Prata

6th Edition

978-0321776402, 0321776402

More Books

Students also viewed these Programming questions

Question

=+c. Describe, in words, the complement of A.

Answered: 1 week ago