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
I want to solve the question
DedPeter [7]

Answer:

yes.

Explanation:

5 0
3 years ago
Technician A states that if someone is asking a question of you, then he or she is showing interest. Technician B states that si
eimsori [14]

Answer:

They are both correct

Explanation:

When someone is asking a question of you, it means he or she has either been paying attention, and is interested in you, what you're doing, or what you're saying. Also, silence when used properly can be golden in the sense that it can prevent unnecessary problems from arising, and can save one from a lot of unforeseen problem. Whatever is said cannot be taken back again, and some things should never be said at all, especially in a professional setting.

8 0
4 years ago
If the dry-bulb temperature is 95°F and the wet-bulb temperature is also 78°F, what is the relative humid- ity? What is the dew
Sidana [21]

Answer:

Relative humidity 48%.

Dew point 74°F

humidity ratio 118 g of moisture/pound of dry air

enthalpy 41,8 BTU per pound of dry air

Explanation:

You can get this information from a Psychrometric chart for water, like the one attached.

You enter the chart with dry-bulb and wet-bulb temperatures (red point in the attachment) and following the relative humidity curves you get approximately 48%.

To get the dew point you need to follow the horizontal lines to the left scale (marked with blue): 74°F

for the humidity ratio you need to follow the horizontal lines but to the rigth scale (marked with green): 118 g of moisture/pound of dry air

For enthalpy follow the diagonal lines to the far left scale (marked with yellow): 41,8 BTU per pound of dry air

5 0
3 years ago
In which crash did the puck experience a stronger force? WHY/
Serggg [28]
I cant see the words
3 0
3 years ago
A converging - diverging frictionless nozzle is used to accelerate an airstream emanating from a large chamber. The nozzle has a
vodomira [7]

Answer:

a. 617.958kpa

b. 1.351kg/sec

Explanation:

Please see attachment for step by step guide.

5 0
4 years ago
Read 2 more answers
Other questions:
  • A 10 wt % aqueous solution of sodium chloride is fed to an evaporative crystallizer which operates at 80o C. The product is a sl
    7·1 answer
  • Air flows steadily and isentropically from standard atmospheric conditions to a receiver pipe through a converging duct. The cro
    14·1 answer
  • What is the composition of the two phases that form when a stream of 40% A, 39% B, and 21% C separates into two phases? Label th
    9·1 answer
  • A 0.01 significance level is used for a hypothesis test of the claim that when parents use a particular method of gender? select
    13·1 answer
  • Developed an automated program in any language which take 12 dependent variable and corresponding independent variables and show
    14·1 answer
  • Please help and thank u so much
    6·1 answer
  • Why should females not be concerned about developing manly muscles? <br><br> Please help
    7·1 answer
  • Con una tasa de interés de 8% por año, ¿a cuánto equivalen $10 000 de hoy, a) dentro de un año, y b) hace un año?
    6·1 answer
  • Electronics and electrical <br> Convert the decimal number 2497.50 base 10 to it equivalent octal
    9·1 answer
  • Hich of the following would be a strong incentive for people interested in construction to choose being an electrician as a care
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!