Author Archives: Mr. M

Angle, Symmetric, FIllet practice

Set document to MM

Step 1) Make a circle, centered at origin with a diameter of 30. Then create a circle with a diameter of 20 to its right.

twocircles1

Step 2)  Connect the 2 circles with 2 lines coincident on to both circles. You should see the highlighted constraints when you mouseover either of them:

twocircles2

Step 3) Dimention the angle between the 2 lines to be 12 degrees. Make sure it’s the ANGLE , not the distance. If you’re not sure how to do that, watch this short animation.

twocircles12 degrees

Step 4) Create a construction line connecting centers, then make the two lines symmetric to that line:

symmetric

Step 5) Add the 2 dimensions shown . The shape should now be fully defined (all black)

twocircles4

 

Step 6) Extrude the middle part by 15 . Symmetric extrude and then add a 1 MM Fillet:

extrude and fillet

 

Step 7) Extrude th e2 circle by 30 MM (no pic. You should be able to do this on your own)

Angles w Fillet

Workspace Units: MM, use the front plane

Step 1) Create 2 line segments, centered at the origin (as always) and dimension them to 10 MM each

10MM each

step 2)  These should be angled at 45 degrees

45degree angle

Step 3) Add a 12 and 9 MM segments :

12 and 9 segments

Step 4)  Dimension the 2 angles to 140:

140each

step 5) Connect with a tangent arc

connectwtangentarc

Step 6)  Add a 5 MM symmetric extrude

5mmsymmetric

Step 7)  Fillet the Edge of Extrude 1 in these 3 places:

filletasshown

Step 8)  Final Filletted version:

final-filleted-version

 

 

Lines and Angles and Symmetric Extrude

Step 1) Open up a new document.

Step 2) Create a line of length 2 from the origin and line of length 3 from the origin; something like . Their exact angle doesn’t matter, just something like :

2lines

Step 3) Create a 45 degree angle between the 2 line segments:

how-to-do-angle

Step 4) Connect the end points with a tangent arc:

tangent-arc

Step 5) Dimension the center of that arc with the point of top line as shown:

tangent-arc-dimensioned

Step 6) Create an inscribed circle as shown :

inscribed-circle

Step 7)  Create a symmetric extrudesymmetric-extrude2

Step 8) Finished product. Notice how the symmetric extrude goes up and goes down:

symmetric-extrude

Advanced Parts Design Tips I

Step 1)

lines should be larger on right side

tip_1

Step 2) Make the blue lines symmetric to the construction line

tip_2

Step 3)  Click on the top line and construction and dimension the 1.5 degree angle

tip_3

Step 4)  dimension the 2 left side points to 1.5

tip_4

Step 5) Resulting picture :

tip_5

 

Array Fun 2 [2025]

Complete all the methods below. When you are done, copy and paste the    testmethods.v5.1  into your class and run it to see if you have any obvious errors.  The above code does not guarantee you a 100 but will help catch most of the common errors that students make.

Note: You may not use any external libraries (like Java.Arrays etc )or import any code. Everything can be done with just loops and variables.

int sumEveryN(int[] nums, int n)

Description:This method returns the sum of every n  elements of nums ..

Method Call return value/output
sumEveryN( {1 , 2 , 3 , 4 }, 2 ) 4( ie 1 +3)
sumEveryN( {13 , 42, 15, 33 , 44 , 16 , 52} ,3) 98 ( ie 13 + 33+ 52)

String[] doubleArr(String[] strs)

Description: This method returns a new version of strs  in which each element now appears twice. This can be done with a for-each loop, which I believe is easier and more intuitive.

Method Call return value/output
doubleArr( {“a”,”b”,”c”} ) {“a”,”a”,”b”,”b”, “c” , “c”}
doubleArr( {“math”,”ware”,”house”,”.com” }) {“math”,”math”,”ware”,”ware”,”house”,”house”,”.com”, “.com”}

int  indexOf5(int[] nums )

Description:This returns the index of the first occurrence element 5  or -1 if 5 does not appear anywhere in the array.

Method Call return value/output
indexOf5( { 2 , 3 , 5 , 4 } ) 2
indexOf5( { 2 , 3 , 5 , 4, 5  } ) 2
indexOf5( { 2 , 3 ,7  , 4, 3,   } ) -1

More Sample calls and return vals

screenshot.41


int indexOf(int[] nums, int num)

Description: This method returns the index value of the first appearance of num  or -1 if num  is not an element of nums  .

Method Call return value/output
indexOf( {6,4 ,7,3, 4 }, 4) 1
indexOf( {6,4 7 ,3,2,7}, 7) 2
indexOf( {6,4 ,2,3}, 22) -1

 


int[] randos(int start, int end, int howMany)

Description:  This method returns an array of random numbers between [start,end] . Note make sure that each element in the new array attempts to make a new random int.  Use Math.random() , do not use any other mechanism for finding a random number. 

 randos_loop
 More example calls and returns :
randos2

double meanBetween(int[] nums, int min, int max)

Description:  This method returns the mean of nums  ; however, this method only counts values within the range (min,max) as shown in the examples below:

screenshot.12
(Not inclusive, so do not count min  or max  )

Old versions:

Array Fun 1 

Array F un 2 (v 1)

 

Array Fun 3 (resizing included)

Extrude with Offset

Step 1) Create a rectangle centered at the origin with a height of 20 and width of 30:

30by20rectangle

Step 2) add an arc as shown. Make sure it’s dimensioned :

30by20rectanglewarc

Step 3) Now the bottom:

30by20rectanglewarcNumba2

 

Step 4) Extrude the shape by 25MM:

extrude25mm

Step 5)  un-hide sketch 1

unhideSkettch1

Step 6)

Go into sketch 1 and create  2 MM offset on the top arc and on the bottom arc, then connect their endspoints with lines :

offset as 2

Step 7)

Final Result

final-result