Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ENGR 331: Assignment #4 Accounting for Tolerance in Design Your employer has ask

ID: 3595973 • Letter: E

Question

ENGR 331: Assignment #4 Accounting for Tolerance in Design Your employer has asked you to design a light guide for an automobile instrument ch that the stepper motor shaft passes through the hole with the maximum distance between tachometer and speedometer our knowledge of stack up tolerance analysis to determine appropriate dimensions su clearance. The horizontal center to center is 90 mm. The cent gage is 80 mm the left of the tachometer. The locatio line of the insturment. The printed circiut board (PCB) is in the rear and made from FR4 glass reinforced epoxy composite material and the light guide is made from Dolycarbonate (PC). Assume that the pins and stepper motors are rigidly attached to the PCB. The stepper motor shaft is 3 mm in diameter. Assume the diameters have a negligible standard deviation. The diameter of the holes in the light guide are 6 mm Assume that FR4 can be manufactured with a standard deviation of.10 mm and PC can be manufactured with a standard deviation of .20 mm. The cluster must operate from rizontal center to center distance between tachometer and temperature and the vertical distance is 30 mm. A locating pin lies 100 mm directly to ns of the 4 gages are symmetric about the center 40°C to 50°C. Optimize the dimensions of the light guide to achieve maximurm manufacturing capability pin speedometer slot tachometer pin 20 temperature fuel

Explanation / Answer

package com;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.util.ArrayList;
import java.util.Random;

import javax.swing.JPanel;

public class Graph extends JPanel {
public Graph() {
setSize(500, 500);
}

@Override
public void paintComponent(Graphics g) {
Graphics2D gr = (Graphics2D) g; // This is if you want to use Graphics2D
// Now do the drawing here
ArrayList<Integer> scores = new ArrayList<Integer>(10);

Random r = new Random();

for (int i : scores) {
i = r.nextInt(20);
System.out.println(r);
}

int y1;
int y2;

for (int i = 0; i < scores.size() - 1; i++) {
y1 = (scores.get(i)) * 10;
y2 = (scores.get(i + 1)) * 10;
gr.drawLine(i * 10, y1, (i + 1) * 10, y2);
}
}
}