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
What is the weight of a glider with a mass of 4.9 grams?
timama [110]

Answer:

0.0481 N

Explanation:

The mass of a body is the quantity of matter stored in that body. It is a property that measures resistance to acceleration when a force is applied. The S.I unit of mass is the kilogram (kg).

The weight of a body is the force exerted on that body by gravity. The S.I unit of weight is the Newton (N). The weight of an object can also be defined as the force acting on the object. The formula for weight is:

Weight (W) = Mass (m) × acceleration due to gravity(g).

Giving that: mass (m) = 4.9 g = 0.0049 g and acceleration due to gravity (g) = 9.81 m/s².

Therefore, Weight (W) = 0.0049 × 9.81 = 0.0481 N

4 0
3 years ago
g Calculate a better value for the convection coefficient using resources from heat transfer. Assume forced convection of the ai
ollegr [7]

Answer:results for h should on the same order of magnitude of the value I provided. If it isn't, check your units. Update to you calculated values for h and resolve your model.

Explanation:

4 0
3 years ago
Recently, there was an outbreak of a computer virus, known as the Melissa virus. The FBI is determining whether the virus meets
never [62]

Answer:

Correct answer is (c)

Explanation:

The transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer.

Melissa virus is a computer program that was meant to cause serious damage to computer system by sending e-mail from an infected computer to the mail address on that computer. The virus was investigated by the FBI's National Infrastructure Protection Center. By transmission of a program, information, code, or command that intentionally causes damage without authorization, to a protected computer, The FBI's NIPC will be able to investigate how Melissa is being proliferated.

5 0
3 years ago
Which welding processes normally use a constant current power source? (Select all that apply) PLEASE HELP​
Furkat [3]

Answer:

Explanation:

GTAW AND GMAW

5 0
3 years ago
O que é necessário se conhecer para a determinação de uma força concentrada em um ponto?
skelet666 [1.2K]

Answer: its c

Explanation:

7 0
3 years ago
Other questions:
  • In a given rocket engine, a mass flow of propellants equal to 87.6 lbm/s is pumped into the combustion chamber, where the stagna
    13·1 answer
  • What is the thermal efficiency of a gas power cycle using thermal energy reservoirs at 627°C and 60°C? The thermal efficiency is
    12·1 answer
  • ANSWER FAST AND I WILL GIVE BRAINLIEST What is the measurement of this square?
    11·1 answer
  • The Machine Shop has received an order to turn three alloy steel cylinders. Starting diameter = 250 mm and length = 625 mm. Feed
    7·1 answer
  • While he did not invent the assembly line, he did streamline his production line and was
    8·1 answer
  • Three capillary tubes with different radius (r1=1.0mm, r2=0.1mm, r3=0.01mm) are inserted into the same cup of water. The surface
    14·1 answer
  • Which option identifies what would be best to use to illustrate Pablo’s ideas in the following scenario?
    14·1 answer
  • According to the rules of dimensioning, how should the written notes appear?
    8·1 answer
  • How do I give brainless?
    14·1 answer
  • FD=CD*((P*(V^2)*A)/2)<br><br>Please solve for V
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!