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
A teacher tells her​ students, "When you do your math homework​ assignments, you must use white lined paper.​ Please, no​ tear-o
Sindrei [870]

Answer:

The white lined paper

Explanation:

The teacher is most likely putting the while line paper in jeopardy because of the detail process involved in taking care of the paper prior to the submission of the home work.

The fact that a mistake must not be visible due to the instruction of every erasures being thorough and clean.  this can cause jeopardy to the paper.

8 0
2 years ago
Technician A says the final drive assembly always has a gear ratio of 1:1. Technician B says the final drive assembly provides f
Olenka [21]

Answer:

Technician B only is correct

Explanation:

The last stage of gears found between the vehicle transmission system and the wheels is the final drive ratio. The function of the final drive gear assembly is to enable a gear reduction control stage to reduce the rotation per minute and increase the wheel torque, such that the vehicle performance can be adjusted and the final gear ratio can be between 3:1 and 4.5:1 not 1:1

Therefore, technician B only is correct

5 0
3 years ago
Water enters a centrifugal pump axially at atmospheric pressure at a rate of 0.12 m3
goldenfox [79]

Answer:

Water enters a centrifugal pump axially at atmospheric pressure at a rate of 0.12 m3/s and at a velocity of 7 m/s, and leaves in the normal direction along the pump casing, as shown in Fig. PI3-39. Determine the force acting on the shaft (which is also the force acting on the bearing of the shaft) in the axial direction.

Step-by-step solution:

Step 1 of 5

Given data:-

The velocity of water is .

The water flow rate is.

3 0
3 years ago
You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
kipiarov [429]
14256000. Kanjiuijhgg
5 0
2 years ago
Read 2 more answers
The velocity of a particle which moves along the s-axis is given by = 40 − 3 2/ , ℎ t is in seconds. Calculate the displacement
scoundrel [369]

The displacement ∆S of the particle during the interval from t = 2sec to 4sec is; 210 sec

<h3>How to find the displacement?</h3>

We are given the velocity equation as;

s' = 40 - 3t²

Thus, the speed equation will be gotten by integration of the velocity equation to get;

s = ∫40 - 3t²

s = 40t - ¹/₂t³

Thus, the displacement between times of t = 2 sec and t = 4 sec is;

∆S = [40(4) - ¹/₂(4)³] - [40(2) - ¹/₂(2)³]

∆S = 210 m

Read more about Displacement at; brainly.com/question/4931057

#SPJ1

8 0
2 years ago
Other questions:
  • Whenever you are around construction sites, you should A speed up so you get through it quicker and avoid falling rocks B maneuv
    10·1 answer
  • Most licensed architects are members of which association?
    13·2 answers
  • OSHA does not approve individual states to have their own safety and health program.
    15·2 answers
  • You start your car and begin to pull out of a parking space. After leaving the space, You notice that the brake light on your in
    12·1 answer
  • According to the EWR specifications, ___ is responsible for picking up and disposing of debris or rubbish from
    15·1 answer
  • For the Mohr's circle of a plane-strain element, which of the following changes as a result of shear strain change?
    7·1 answer
  • What are the important things to remember when arriving for an interview?
    15·1 answer
  • E xercise 17.1.2: For each of the transactions of Exercise 17.1.1, add the read- and write-actions to the computation and show t
    12·1 answer
  • Calculate the percentage of recyclables in high socioeconomic localities.
    13·1 answer
  • When hermetic refrigerant motor-compressors are designed to operate continuously at currents greater than 156 percent of the rat
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!