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
Ronch [10]
3 years ago
7

Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output tho

se four values on a single line separated by a space. Enter integer: 99 Enter double: 3.77 Enter character: z Enter string: Howdy 99 3.77 z Howdy Extend to also output in reverse. (Submit for 1 point, so 3 points total). Enter integer 99 Enter double: 3.77 Enter character: z Enter string: Howdy 99 3.77 z Howdy Howdy z 3.77 99 Extend to cast the double to an integer, and output that integer Enter integer: 99 Enter double: 3.77 Enter character: z Enter string: Howdy 99 3.77 z Howdy Howdy z 3.77 99 3.77 cast to an integer is 3

Engineering
1 answer:
Likurg_2 [28]3 years ago
4 0

Answer:

See explanation

Explanation:

//Include the

//required header files.

#include <stdio.h>

//Define the

//main() function.

int main(void) {

//Declare the

//required variables.

char input_char;

int input_int;

double input_double;

char input_string[100];

//Prompt the user

//to enter an integer.

printf("Enter integer: ");

//Read and store

//the integer.

scanf("%d", &input_int);

//Prompt the user

//to enter a double value.

printf("Enter double: ");

//Read and store

//the double value.

scanf("%lf", &input_double);

//Prompt the user

//to enter a character.

printf("Enter character: ");

//Read and store

//the character.

scanf(" %c", &input_char);

//Prompt user to

//enter the string

printf("Enter string: ");

//Read and

//store the string.

scanf("%s", input_string);

//(1)

//Display the values.

printf("%d %lf %c %s\n",

input_int, input_double,

input_char, input_string);

//(2)

//Display the values

//in reverse order.

printf("%s %c %lf %d\n",

input_string, input_char,

input_double, input_int);

//(3)

//Cast the double to

//an integer and display it.

printf("%lf cast to an integer is %d",

input_double, (int)(input_double));

//Return from the

//main() function.

return 0;

}

You might be interested in
This is hard please help me you will give brainlist
Musya8 [376]
It spirals clockwise
5 0
2 years ago
Read 2 more answers
Consider two Carnot heat engines operating in series. The first engine receives heat from the reservoir at 1400 K and rejects th
Aleksandr-060686 [28]

Answer:

The temperature T= 648.07k

Explanation:

T1=input temperature of the first heat engine =1400k

T=output temperature of the first heat engine and input temperature of the second heat engine= unknown

T3=output temperature of the second heat engine=300k

but carnot efficiency of heat engine =1 - \frac{Tl}{Th} \\

where Th =temperature at which the heat enters the engine

Tl is the  temperature of the environment

since both engines have the same thermal capacities <em>n_{th} </em> therefore n_{th} =n_{th1} =n_{th2}\\n_{th }=1-\frac{T1}{T}=1-\frac{T}{T3}\\ \\= 1-\frac{1400}{T}=1-\frac{T}{300}\\

We have now that

\frac{-1400}{T}+\frac{T}{300}=0\\

multiplying through by T

-1400 + \frac{T^{2} }{300}=0\\

multiplying through by 300

-420000+ T^{2} =0\\T^2 =420000\\\sqrt{T2}=\sqrt{420000}  \\T=648.07k

The temperature T= 648.07k

5 0
3 years ago
Consider a very long, cylindrical fin. The temperature of the fin at the tip and base are 25 °C and 50 °C, respectively. The dia
nekit [7.7K]

Answer:

98°C

Explanation:

Total surface area of cylindrical fin = πr² + 2πrl , r = 0.015m; l= 0.1m; π =22/7

22/7*(0.015)² + 22/7*0.015*0.1 = 7.07 X 10∧-4 + 47.1 X 10∧-4 = (54.17 X 10∧-4)m²

Temperature change, t = (50 - 25)°C = 25°C = 298K

Hence, Temperature =  150 X (54.17 X 10∧-4) X 298/123 = 242.14/124 = 2.00K =

∴ Temperature change = 2.00K

But temperature, T= (373 - 2)K = 371 K

In °C = (371 - 273)K = 98°C         

7 0
3 years ago
Who can use NIST resources?
sukhopar [10]

Answer:

Federal agencies

Explanation:

NIST (National Institute of Standards and Technology) also called between 1901 and 1988 National Bureau of Standards (NBS), it is an agency of the Technology Administration of the United States Department of Commerce. The mission of this institute is to promote innovation and industrial competition in the United States through advances in metrology, standards and technology in ways that improve economic stability and quality of life.

As part of this mission, NIST scientists and engineers continually refine the science of measurement (metrology) by creating precise engineering and manufacturing required for most current technological advances. They are also directly involved in the development and testing of standards made by the private sector and government agencies. The NIST was originally called the National Bureau of Standards (NBS), a name it had from 1901 to 1988. The progress and technological innovation of the United States depends on the abilities of the NIST, especially if we talk about four areas: biotechnology , nanotechnology, information technologies and advanced manufacturing.

7 0
3 years ago
Explain the working and performance of a centrifugal clutch with a sketch​
FinnZ [79.3K]

Answer:

A centrifugal clutch works, as the name suggests, through centrifugal force.

One of the most common methods is by mounting the clutch onto the parallel or taper crank shaft of the engine.

When the crank shaft rotates the shaft of the clutch rotates at the same speed as the engine

5 0
2 years ago
Read 2 more answers
Other questions:
  • Describe three advantages and three disadvantages of JIT?
    12·1 answer
  • Why does the auto industry prefer uniform (national) standards for automobile emissions as opposed to regionally varying standar
    11·1 answer
  • If a machine uses LESS effort to overcome a given resistance force (if Fe is less than FR), it has an actual mechanical advantag
    13·1 answer
  • A minor road intersects a major 4-lane divided road with a design speed of 50 mph and a median width of 12 ft. The intersection
    13·1 answer
  • When the rod is circular, radial lines remain straight and sections perpendicular to the axis do not warp. In this case, the str
    11·1 answer
  • Scientists use characteristics to compare stars. Match each characteristic on the left with the statement on the right that uses
    15·1 answer
  • (a) calculate the moment at point "c", where point "c" is the square 3'' below the centroid
    13·1 answer
  • fdkgdsvdgvdfgvsdcvbfbfdbvfdbsdvbesgvdslgfkrledmgoskflodjgloerjgvoljgegjp;erorf;wgp;kiaers;ogjo;rhgerjfrejgfdlhodjglodjheihtgo;rg
    13·1 answer
  • Help please i will give brainlist
    9·2 answers
  • Which of the given strategies is specifically a competitive advantage sustainment strategy?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!