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
(I really need help ASAP please!! this is for science her is the problem)
grandymaker [24]

Answer:

Explanation:

c

5 0
2 years ago
Read 2 more answers
A long rod of 60-mm diameter and thermophysical properties rho=8000 kg/m^3, c=500J/kgK, and k=50 W/mK is initally at a uniform t
Monica [59]

Answer:

Tc = 424.85 K

Explanation:

Given that,

D = 60 mm = 0.06 m

\rho = 8000 kg/m^3

k = 50 w/m . kc = 500 j/kg.k

h_{\infty} = 1000 w/m^2t_{\infity} = 750 kt_w = 500 K

surface area = As = \pi dL \\\frac{As}{L} = \pi D = \pi \timeS 0.06

HEAT FLOW Q  is

Q = h_{\infty} As (T_[\infty} - Tw)  = 1000 \pi\times 0.06 (750-500)

 = 47123.88 w per unit length of rod

volumetric heat rate

q = \frac{Q}{LAs}

= \frac{47123.88}{\frac{\pi}{4} D^2 \times 1}

q = 1.66\times 10^{7} w/m^3

Tc = \frac{- qR^2}{4K} + Tw

= \frac{ - 1.67\times 10^7 \times (\frac{0.06}{2})^2}{4\times 50} +  500

  = 424.85 K

3 0
2 years ago
Their game off badminton is always on Tuesday
igomit [66]

Ok? is this a question or what?

5 0
2 years ago
3. Technician A says passive permanent
Angelina_Jolie [31]

Answer:

Both technician A and B

Explanation:

Passive permanent  magnet ABS wheel speed sensors produce an  A/C voltage signal. Wheel speed sensors are a necessary ABS component and sensor input. It is used to inform the ABS control module of rotational wheel speed. A passive sensor creates an AC signal that changes frequency as the wheel changes speed. Moreover, input  from wheel speed sensors are used for anti- lock brake, electronic traction control, and  electronic stability control systems. Therefore, both technicians are correct.

6 0
3 years ago
How is an orthographic drawing similar to or different from an isometric drawing?
evablogger [386]
An isometrical drawing is a nearly 3d drawing showing the object's width and depth in a complete image, from each curved plane of the orthhographic view, the viewpoint is at a 45 degree angle. From an observations point of view, isometric differs, since all longitudes are true.
4 0
3 years ago
Read 2 more answers
Other questions:
  • To cool a summer home without using a vapor compression refrigeration cycle, air is routed through a plastic pipe (k=0.15 W/m*K,
    15·1 answer
  • Air enters the compressor of an ideal cold air-standard Brayton cycle at 100 kPa, 300 K, with a mass flow rate of 6 kg/s. The co
    11·1 answer
  • Technician A says that when using an impact wrench to remove a bolt from the front of an engine's crankshaft, the crankshaft mus
    15·1 answer
  • When using levers like scissors or hedge clippers, what can be done to increase the cutting force so that you don’t have to sque
    5·1 answer
  • The Bureau of Labor and Statistics predicted that the field of biomedical engineering would increase by 62 percent over the comi
    10·1 answer
  • The Emergency Stop Button icon on the Inputs toolbar can be used to press or release the Emergency Stop button on the CNC machin
    10·1 answer
  • Under the normal sign convention, the distributed load on a beam is equal to the:_______A. The rate of change of the bending mom
    13·1 answer
  • Some General Motors flex fuel vehicles do not use a fuel sensor to measure the percentage of ethanol in the fuel. These vehicles
    5·1 answer
  • An atom that gained an electron is called​
    10·2 answers
  • Draw a surface development of a truncated cone
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!