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
Akimi4 [234]
4 years ago
8

Write a complete program that copies each character that is input from the keyboard and prints it to the screen, with the follow

ing three exceptions. (1) when the user hits the "Enter" key of the keyboard (newline) the two characters '\' and 'n' are printed to the screen with no space between them. The newline is not printed to the screen. What value/values does scanf( ) get from the keyboard when the user hits the Enter key? (2) when the user enters cntrl-Z the program terminates

Engineering
1 answer:
fiasKO [112]4 years ago
8 0

Answer:

program:

#include<stdio.h>

#include<string.h>

int main()

{

char character;

int count =0;

int i;

while (1)

{

while((character=getchar())!='^z')

{

if (character=='\n')

{

printf("\/n");

}

else

printf("%c",character);

}

break;

}

}

Output:

You might be interested in
If the bolt head and the supporting bracket are made of the same material having a failure shear stress of 'Tra;i = 120 MPa, det
Nina [5.8K]

Answer:

P=361.91 KN

Explanation:

given data:

brackets and head of the screw are made of material with T_fail=120 Mpa

safety factor is F.S=2.5

maximum value of force P=??

<em>solution:</em>

to find the shear stress

                            T_allow=T_fail/F.S

                                         =120 Mpa/2.5

                                         =48 Mpa

we know that,

                               V=P

<u>Area for shear head:</u>

                              A(head)=π×d×t

                                           =π×0.04×0.075

                                           =0.003×πm^2

<u>Area for plate:</u>

                               A(plate)=π×d×t  

                                            =π×0.08×0.03

                                            =0.0024×πm^2

now we have to find shear stress for both head and plate

<u>For head:</u>

                                   T_allow=V/A(head)

                                    48 Mpa=P/0.003×π                 ..(V=P)

                                             P =48 Mpa×0.003×π

                                                =452.16 KN

<u>For plate:</u>

                                   T_allow=V/A(plate)

                                    48 Mpa=P/0.0024×π                 ..(V=P)

                                             P =48 Mpa×0.0024×π

                                                =361.91 KN

the boundary load is obtained as the minimum value of force P for all three cases. so the solution is

                                                P=361.91 KN

note:

find the attached pic

7 0
3 years ago
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
4 years ago
What are the functions of a gear
iogann1982 [59]
It’s engineering gnzvxhfhbkchufkh
6 0
3 years ago
Read 2 more answers
Need help with these 3 questions pls help
Anton [14]

Answer:

I think 5 is passion and 6 is true I think and 7 is time management I'm pretty sure

3 0
3 years ago
After a car is jump started, you should allow the car to run without stopping for _____.
True [87]
At minimum 10-20 minutes
8 0
3 years ago
Read 2 more answers
Other questions:
  • The time to failure for a gasket follows the Weibull distribution with ß = 2.0 and a characteristic life of 300 days. What is th
    13·1 answer
  • Air at 293k and 1atm flow over a flat plate at 5m/s. The plate is 5m wide and 6m long. (a) Determine the boundary layer thicknes
    14·1 answer
  • How can I use the flux density B formula if I don’t know magnetic flux
    15·1 answer
  • To test the effects of a new fertilizer, 100 plots were divided in half. Fertilizer A is randomly applied to one half, and B to
    13·2 answers
  • 2. What formula relates work and power?​
    10·1 answer
  • Waste that is generated by a business is called a _____________.
    10·1 answer
  • The critical resolved shear stress for a metal is 39 MPa. Determine the maximum possible yield strength (in MPa) for a single cr
    6·1 answer
  • Why it is important to clean all mixing equipment out after mixing paint?​
    7·2 answers
  • Give the largest positive number that can be represented in 13 bits for the two cases:
    8·1 answer
  • (5 points) Which of the following circuits may not be used to determine the value of the resistor? Circle all that apply.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!