1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Arisa [49]
2 years ago
8

8.2.1: Function pass by reference: Transforming coordinates. Define a function CoordTransform() that transforms the function's f

irst two input parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new
Engineering
1 answer:
ahrayia [7]2 years ago
4 0

Answer:

<em>The output will be (3, 4) becomes (8, 10) </em>

Explanation:

#include <stdio.h>

<em>//If you send a pointer to a int, you are allowing the contents of that int to change. </em>

void CoordTransform(int xVal,int yVal,int* xNew,int* yNew){

*xNew = (xVal+1)*2;

*yNew = (yVal+1)*2;

}

int main(void) {

int xValNew = 0;

int yValNew = 0;

CoordTransform(3, 4, &xValNew, &yValNew);

printf("(3, 4) becomes (%d, %d)\n", xValNew, yValNew);

return 0;

}

You might be interested in
The pads are 200mm long, 150 mm wide and thickness equal to 12mm. 1- Determine the average shear strain in the rubber if the for
lord [1]

Answer:

a) 0.3

b) 3.6 mm

Explanation:

Given

Length of the pads, l = 200 mm = 0.2 m

Width of the pads, b = 150 mm = 0.15 m

Thickness of the pads, t = 12 mm = 0.012 m

Force on the rubber, P = 15 kN

Shear modulus on the rubber, G = 830 GPa

The average shear strain can be gotten by

τ(average) = (P/2) / bl

τ(average) = (15/2) / (0.15 * 0.2)

τ(average) = 7.5 / 0.03

τ(average) = 250 kPa

γ(average) = τ(average) / G

γ(average) = 250 kPa / 830 kPa

γ(average) = 0.3

horizontal displacement,

δ = γ(average) * t

δ = 0.3 * 12

δ = 3.6 mm

5 0
3 years ago
Ti-6Al-4V has a fracture toughness of 74.6 MPa-m0.5. How much stress (in MPa) would it take to fail a plate loaded in tension th
Nikitich [7]

Answer:

critical stress  = 595 MPa

Explanation:

given data

fracture toughness =  74.6 MPa-\sqrt{m}

crack length = 10 mm

f = 1

solution

we know crack length = 10 mm  

and crack length = 2a as given in figure attach

so 2a = 10

a = 5 mm

and now we get here with the help of plane strain condition , critical stress is express as

critical stress  = \frac{k}{f\sqrt{\pi a}}    ......................1

put here value and we get

critical stress  = \frac{74.6}{1\sqrt{\pi 5\times 10^{-3}}}

critical stress  = 595 MPa

so here stress is change by plane strain condition because when plate become thinner than condition change by plane strain to plain stress.

plain stress condition occur in thin body where stress through thickness not vary by the thinner section.

6 0
3 years ago
Consider an infinitely thin flat plate of chord c at an angle of attack α in a supersonic flow. The pressure on the upper and lo
amm1812

Answer:

X_cp = c/2

Explanation:

We are given;

Chord = c

Angle of attack = α

p u (s) = c 1

​p1(s)=c2,

and c2 > c1

First of all, we need to find the resultant normal force on the plate and the total moment about leading edge.

I've attached the solution

4 0
3 years ago
A cone-shaped part is to be fabricated using stereolithography. The radius of the cone at its base = 35 mm, and its height = 50
iren [92.7K]

Explanation:

volume = πR²h/3

= πx35²x50/3

= 192325/3

= 64166.725

number of layers n = 50mm/0.05

n = 1000layers

average volume = 64166.725/1000

= 64.167mm³

average area = 64.167/0.05

= 1283.34mm²

average time = 1283.34/900mm x 0.22

= 6.48

6.48 + 15 seconds

= 21.48 seconds

time required = 1000x21.48

= 21480 seconds

convert to minutes

21480/60

= 358 minutes

21480/3600

= 5.967 hours

8 0
3 years ago
Which of the following animals can be found in the locality​
erastovalidia [21]

Answer:

c frog

Explanation:

frog have chance that can lived in the locality or in public place like river,lake,farm and other place that they can be lived and hunt foods. In the picture bear, elephant and tiger are can't lived in the locality that have many population of people. little percent of changes that they can hunts foods or lived in the public/locatlity place.

7 0
2 years ago
Other questions:
  • The title block generally contains ________.
    12·1 answer
  • Create a document that includes a constructor function named Company in the document head area. Include four properties in the C
    7·1 answer
  • Explain the effect of heat transfer, reversibilities and irreversibilities on changes in entropy
    11·1 answer
  • An air standard cycle with constant specific heats is executed in a closed system with 0.003 kg of air and consists of the follo
    15·1 answer
  • Acquisition of resources from an external source is called?
    15·1 answer
  • Can someone answer plz!! It’s 24 points
    15·2 answers
  • In a much smaller model of the Gizmo apparatus, a 5 kg mass drops 86 mm (0.086 m) and raises the temperature of 1 gram of water
    10·1 answer
  • 10. Identify one material we Mine and what we make with that material
    6·1 answer
  • Write a Nios II assembly program that reads binary data from the Slider Switches, SW11-0, on the DE2-115 Simulator, and display
    15·1 answer
  • The first thing you should do is develop a ____________________ to determine what vehicle you can afford.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!