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
<img src="https://tex.z-dn.net/?f=%5Cint%5Climits%5Ea_b%20%7B7x%7D%20%5C%2C%20dx" id="TexFormula1" title="\int\limits^a_b {7x} \
Dafna11 [192]

Answer:

\frac{7}{2}a^2 - \frac{7}{2}b^2

Explanation:

\int\limits^a_b {7x} \, dx

=[\frac{7}{2}x^2]^a_b

=\frac{7}{2}a^2 - \frac{7}{2}b^2

5 0
3 years ago
what do you expect the future trends of an operating system in terms of (a) cost (b) size (c) multitasking (d) portability (e) s
tino4ka555 [31]

Answer:

plz follow in titkok

Explanation:

3 0
3 years ago
If x &lt; 5 and x &gt;c, give a value of c such that there
Arlecino [84]

we have  

x<5

x>c

we know that

The solution is the intersection of both solution sets of the given inequalities.  

The solutions of the compound inequality must be solutions of both inequalities.  

The value of c could be 5 or any number greater than 5, such that there are no solutions to the compound inequality

Because

A number cannot be both less than 5 and greater than 5 at the same time

therefore

the answer is

for c_> there are no solutions to the compound inequality

7 0
3 years ago
Need Answers Quick!!!! What is the purpose of structural components such as frames, bearings, and mounts? A.) Connect two rotati
elixir [45]

Answer:

D.) Transfer input energy from the power source throughout the machine.

Explanation:

Since the complex abnormalities of energy efficiency is depicted by the autonomy within self-operating machines, the correct answer is D.

3 0
3 years ago
A crude fermenter is set up in a shed in the backyard of a suburban house. Under anaerobic conditions with ammonia as the nitrog
Aleks04 [339]

Answer:

using calculations Heat losses will be 4512 J

5 0
4 years ago
Other questions:
  • Liquid water enters a valve at 300 kPa and exits at 275 kPa. As water flows through the valve, the change in its temperature, st
    10·1 answer
  • An air conditioner using refrigerant R-134a as the working fluid and operating on the ideal vapor-compression refrigeration cycl
    12·1 answer
  • The structure supports a distributed load of w. The limiting stress in rod (1) is 370 MPa, and the limiting stress in each pin i
    5·1 answer
  • How does a carburetor work?
    7·1 answer
  • How was math used to determine new origami crease plans?
    10·1 answer
  • Two satellites A and B are orbiting the earth around the equator, E, at different altitudes on a circular path of 2400km and 300
    8·1 answer
  • What did the ancient Greeks use simple machines for?
    15·2 answers
  • What effect will increasing numbers of high-profile green building projects likely have on thinking about building?
    5·1 answer
  • Trapezoidal screw press project
    6·1 answer
  • Which one of the following best defines hardness: (a) energy absorbed by a material when an object strikes its surface, (b) resi
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!