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
When asked about favorite Thanksgiving leftovers, 9% of the people said turkey and 7100 said mashed potatoes. Which food is more
irakobra [83]

Answer:

how many people were asked though

Explanation:

8 0
2 years ago
5. (5 points) Select ALL statements that are TRUE A. For flows over a flat plate, in the laminar region, the heat transfer coeff
finlep [7]

Answer:

The following statements are true:

A. For flows over a flat plate, in the laminar region, the heat transfer coefficient is decreasing in the flow direction

C. For flows over a flat plate, the transition from laminar to turbulence flow only happens for rough surface

E. In general, turbulence flows have a larger heat transfer coefficient compared to laminar flows 6.

Select ALL statements that are TRUE

B. In the hydrodynamic fully developed region, the mean velocity of the flow becomes constant

D. For internal flows, if Pr>1, the flows become hydrodynamically fully developed before becoming thermally fully developed

Explanation:

7 0
3 years ago
An alternating current E(t) =120 sin(12t) has been running through a simple circuit for a long time. The circuit has an inductan
german

Answer:

Explanation:

we have given E(t)=120 sin(12t)

R=5 ohm

L=0.2 H

ω=12 ( from expression of E)

X_L=0.2\times 12=2.4 ohm

X_C=\frac{1}{\omega \times C}=\frac{1}{12\times 0.043}=1.9379\ ohm

Z=\sqrt{R^2+\left ( \omega L-\frac{1}{\omega C} \right )^2}

Z=\sqrt{5^2+\left ( \2.4-1.9379 )^2}

=5.021 ohm

so amplitude of current =  \frac{v}{z}=\frac{120}{5.021}=23.89

4 0
3 years ago
Given resistance 30ohms Inductance 200mH is connected to a 230v,50hZ supply. Impedance 69.6ohms Calculate current consumed?
Kisachek [45]

Answer:

the current consumed is 3.3 A

Explanation:

Given;

resistance, R = 30 ohms

inductance, L = 200 mH

Voltage supply, V = 230 V

frequency of the coil, f = 50 Hz

impedance, Z = 69.6 Ohms

The current consumed is calculated as;

I = \frac{V}{Z} \\\\I = \frac{230}{69.6} \\\\I = 3.3 \ A

Therefore, the current consumed is 3.3 A

4 0
2 years ago
State three active materials of a lead acid cell​
igomit [66]

Answer:

lead dioxide,sulfate and lead acid

6 0
3 years ago
Read 2 more answers
Other questions:
  • Assume a program requires the execution of 50 x 10^6 FP instructions, 110 x 10^6 INT instructions, 80 x 10^6 Load/Store (L/S) in
    11·1 answer
  • g A food department is kept at -12oC by a refrigerator in an environment at 30oC. The total heat gain to the food department is
    7·1 answer
  • Air at 7 deg Celcius enters a turbojet engine at a rate of 16 kg/s and at a velocity of 300 m/s (relative to engine). Air is hea
    7·1 answer
  • When -iron is subjected to an atmosphere of hydrogen gas, the concentration of hydrogen in the iron, CH (in weight percent), is
    5·1 answer
  • 10. Power = (Distance * Force) / Time
    7·1 answer
  • What is brainstorming and why is it important to create the perfect solution to a problem? giving brainliest to the first answer
    11·1 answer
  • I NEED HELP ASAP WILL AWARD BRAINLIEST
    8·2 answers
  • How many FastEthernet interfaces does a 2960 switch have?
    7·2 answers
  • How would you design a wheelchair for wheelchair-using basketball players? Would you make it more or less massive?
    11·1 answer
  • I) A sag vertical curve is to be designed to join a 4% grade to a 2% grade. If the design
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!