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
Yall know what this is called?​
aliya0001 [1]

Answer:

oof no bro

Explanation:

5 0
3 years ago
Please help me fast, I don’t have time
Anna71 [15]

Answer: precision

Explanation: Because accuracy is where you keep on getting it right but precision is where you get closer and closer

5 0
3 years ago
Why is it reasonable to say that no system is 100% efficient?​
Virty [35]

Generally, frictional losses are more predominant for the machines being not 100% efficient. This friction leads to the loss of energy in the form of heat, into the surroundings. Some of the supplied energy may be utilised to change the entropy (measure of randomness of the particles) of the system.

5 0
3 years ago
You are driving on a roadway with multiple lanes of travel in the same direction, and are approaching an emergency vehicle parke
solmaris [256]

Answer: a. Leave the lane closest to the emergency as soon as it is safe to do so, or slow down to a speed of 20 MPH below the posted speed limit.

Explanation:

Giving a way to the law enforcement vehicle and a medical emergency vehicle is necessary. If one approaches an emergency vehicle parked along the roadway one should change the lane as the vehicle may not move and the driver may also waste his or her time also one should also slow down his or her speed while approaching the vehicle as most of the emergency vehicle are in rush to reach the hospital so the driver should maintain some distance with the medical emergency vehicle.

7 0
3 years ago
Estimate the endurance strength, Se, of a 37.5-mm- diameter rod of AISI 1040 steel having a machined finish and heat-treated to
7nadin3 [17]

Answer:

endurance length is 236.64 MPa

Explanation:

data given:

d = 37.5 mm

Sut = 760MPa

endurance limit is

Se = 0.5 Sut

   = 0.5*760 = 380 MPa

surface factor is

Ka = a*Sut^b

where

Sut is ultimate strength

for AISI 1040 STEEL

a = 4.51, b = -0.265

Ka = 4.51*380^{-0.265}

Ka = 0.93

size factor is given as

Kb =1.29 d^{-0.17}

Kb = 0.669

Se = Sut *Ka*Kb

    = 380*0.669*0.93

Se = 236.64 MPa

therefore endurance length is 236.64 MPa

4 0
3 years ago
Other questions:
  • A food department is kept at -12 °C by a refrigerator in an environment at 30 °C. The total heat gain to the food department is
    8·1 answer
  • What entrepreneurial activities do you know?are you capable of doing entrepreneurial activities
    15·1 answer
  • Refrigerant-134a enters a diffuser steadily as saturated vapor at 600 kPa with a velocity of 160 m/s, and it leaves at 700 kPa a
    10·2 answers
  • Suppose you were a heating engineer and you wished to consider a house as a dynamic system. Without a heater, the average temper
    6·1 answer
  • Basic output with variables (Java) This zyLab activity is intended for students to prepare for a larger programming assignment.
    7·1 answer
  • In science, a force is a push or a pull.<br> is it true or false ?
    5·1 answer
  • Un conejo puede recorrer una distancia de 90 m en 7 segundos .Cual es su velocidad?
    5·1 answer
  • A driver is traveling at 90 km/h down a 3% grade on good, wet pavement. An accident
    11·1 answer
  • Oil system cleaning products should not use solvents problem
    7·1 answer
  • saan nag tungo si Aguinaldo at ilang pinuno ng kilusan pagkatapos mapairal ang kasunduan na pansamantalang nag dulot ng kapayapa
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!