Author Archives: Mr. M

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

 

 

Draw Ghost shape for halloween

Use the Spline tool to make a picture of a ghost

spline tool

This is worth 5 points. You can see examples of grades a

 

3 out of 5

3 out of 5

4 out of 5

4 out of 5

5 out of 5

5 out of 5

 

Or you can do a comparable one

Below is what some students have already done :

 

 

5 out of 5

 

5 out 5 B

bat shape- on shape

Step 1)  Use the Spline tool to create a bat shape. The more complex the shape, the more the points.

Picture 1 : 4/5

Screenshot from 2025-10-23 07-56-38

 

Picture 2 : 5 out o 5

bat pciture 2

You can also pick a more complicted or different picture

 

Do an extrude on it.

 

Coffe Cup Tips

How to Dimension over a Construction (mirror line)

mirror lined dimension\

After offset, make sure you’re points are coincident– Watch the end carefully!

offset and coincident 2

 

Curve Point option of plane

curve point option