When editing macro statements, you can undo any edits or deletions. SAS offers a potent programming tool called a macro that lets us avoid writing repetitive code and reuse it repeatedly when necessary.
Additionally, it aids in the creation of dynamic variables inside the code that may accept various values depending on the run instances of the same code. Similar to macro variables, macros may also be created for blocks of code that will be used repeatedly.
These are the variables that a SAS program can utilize repeatedly because they're used to store a value. In a SAS program, they are introduced at the beginning and referred to again later on. They may have a global or local focus.
Therefore, you can undo any edits or deletions.
Learn more about Macro Variables here:
https://brainly.com/question/30664484
#SPJ5
Construct a triangle , having its perimeter = 55 mm and the ratio of its angles 2:1:3 . I want the steps along with the drawing . this is ENGINEERING GRAPHICS grade 11 question .
Answer:
see attached
Explanation:
You want to construct a triangle with a perimeter of 55 mm and angles in the ratio 2:1:3.
AnglesThe 2+1+3 = 6 ratio units represent 180°, the sum of angles in a triangle. Hence each unit in the ratio is 180°/6 = 30°.
The angles are 60° : 30° : 90°.
PerimeterFrom your knowledge of "special triangles," you know the side lengths in a 30°-60°-90° triangle have the ratios 1 : √3 : 2.
That is, the perimeter of the triangle is (1+√3 +2) = 3+√3 times the length of the shortest side.
Side lengthsThe shortest side of the triangle will have the length ...
[tex]\dfrac{55\text{ mm}}{3+\sqrt{3}}=\dfrac{(3-\sqrt{3})(55\text{ mm})}{(3-\sqrt{3})(3+\sqrt{3})}= \dfrac{(165-55\sqrt{3})\text{ mm}}{3^2-(\sqrt{3})^2}\\\\\\=(27.5-\dfrac{55}{6}\sqrt{3})\text{ mm}\approx 11.6229\text{ mm}[/tex]
The longest side will be double this length, about 23.2457 mm. The side of intermediate length will be (55√3 -55)/2 ≈ 20.1314 mm.
ConstructionIf you're doing the drawing using only a compass and straightedge, you will start by constructing perpendicular lines (the right angle). Mark off 1 and two lengths of the shortest side on one of these perpendicular segments. Then draw the hypotenuse as 2 times the short length from the end of the short length. It will intersect the perpendicular segment at √3 times the short length.
The tricky part here is constructing a line segment of the desired irrational length. One way to do this is to construct a 30-60-90 triangle with a unit-length short side, then "unfold" it to a line segment with parts that are 1, √3, and 2 units long. A "proportioning" construction can divide the 55 mm length of the perimeter into these proportions, (10 mm might be a good "unit length" for this.)
__
Additional comment
The desired dimensions are sufficiently small that an accurate compass/straightedge construction will be difficult. It is unlikely your pencil line width is much less than about 0.2 mm, so already the error is about 2% in any length.
The attached drawing was made by telling the software what lengths we wanted in "exact" terms. Its calculation is generally good to 10 sf or better. To scale the drawing properly, you'd have to make the longest side about 23.25 mm, or 0.9152 inches.
Can someone convert this code into python? Please I need this code immediately.
int main(void)
{
double a[5],b[5],c=0;
int i;
for(i=0;i<5;i++)//입력
{
scanf("%lf %lf",&a[i],&b[i]);
}
for(i=0;i<5;i++)
{
c+=(b[i]-a[i]-1.0>0) ? ((b[i]-a[i]-1.0>4) ? 4.0 : b[i]-a[i]-1.0): 0;
}
c/=0.5;
c*=5000;
if(c>=150000)
c*=0.95;
else if(c<=50000)
c*=1.05;
printf("%.0f",c);
}
Can somebody help me with these. with solution
1 Two balls are drawn in succession without replacement from a box containing 4 red balls and 3 black balls. Let Y be the random variable, where Y is the number of the red balls. What is the expected value of this random event?
2. Two balls are drawn in succession from a box without repetition containing 3 red 3 blue and four yellow marbles. What is the probability that they are of the same color?
Answer:
See below, please.
Explanation:
Part 1.
Let Y be the random variable representing the number of red balls drawn in succession. The possible outcomes are (R, R), (R, B), (B, R), and (B, B). We can calculate the probability of each outcome as follows
P(Y=0) = P(B, B) = (3/7) * (2/6) = 1/7
P(Y=1) = P(R, B) + P(B, R) = (4/7) * (3/6) + (3/7) * (4/6) = 12/42 + 12/42 = 24/42
P(Y=2) = P(R, R) = (4/7) * (3/6) = 2/7
The expected value of Y is given by:
E(Y) = Σ yi * P(Y=y)
= 0 * (1/7) + 1 * (24/42) + 2 * (2/7)
= 0 + 8/14 + 4/7
= 16/14
= 1.14
Therefore, the expected value of Y is 1.14.
Part 2.
The total number of ways to draw two marbles from the box is 10C2 = 45. The number of ways to draw two marbles of the same color is 3C2 + 4C2 = 3 + 6 = 9. Therefore, the probability of drawing two marbles of the same color is
P(same color) = 9/45 = 1/5
Therefore, the probability that the two balls are of the same color is 1/5.