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
On the pavement indicate that the adjacent lane is traveling in the same direction and passing is permitted
Mkey [24]

A broken yellow line on the pavement tells that the adjacent lane is traveling in the opposite direction and passing is permitted.

A broken white line on the pavement show that the adjacent lane is traveling in the same direction and passing is permitted.

<h3>What does pavement markings show?</h3>

Pavement markings are known to be tools that are used to pass infor or messages to roadway users.

Note  that they tell the part of the road that one need to use, give information about conditions ahead, and others

Note that A broken yellow line on the pavement tells that the adjacent lane is traveling in the opposite direction and passing is permitted.

Learn more about pavement markings from

brainly.com/question/10179521

#SPJ1

6 0
2 years ago
Travel Time Problem: Compute the time of concentration using the Velocity, Sheet Flow Method for Non-Mountainous Orange County a
Vaselesa [24]

Answer:

Total time taken = 0.769 hour

Explanation:

using the velocity method

for sheet flow ;

Tt = \frac{0.007(nl)^{0.8} }{(Pl)^{5}s^{0.4}  }  

Tt = travel time

n = manning CaH

Pl = 25years

L = how length ( ft )

s = slope

For Location ( 1 )

s = 0.045

L = 1000 ft

n = 0.06 ( from manning's coefficient table )

Tt1 = 0.128 hour

For Location ( 2 )

s = 2.5 %

L= 750

n = 0.13

Tt2 = 0.239 hour

For Location ( 3 )

s = 1.5%

L = 500 ft

n = 0.15

Tt3 = 0.237  hour

For Location (4)

s = 0.5 %

L = 250 ft

n = 0.011

Tt4 = 0.165 hour

hence the Total time taken = Tt1 + Tt2 + Tt3 + Tt4

                                              = 0.128 + 0.239 + 0.237 + 0.165 = 0.769 hour

5 0
3 years ago
Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III,
Rom4ik [11]

Answer:

See explanations for step by step procedures to get answer.

Explanation:

Given that;

Determine the deflection at the center of the beam. Express your answer in terms of some or all of the variables LLL, EEE, III, and M0M0M_0. Enter positive value if the deflection is upward and negative value if the deflection is downward.

4 0
4 years ago
You have removed a very large, thick plate of steel (AISI 1010) from your heat treat oven and have placed it on a large insulate
Andreas93 [3]

Answer:

for got sorry

Explanation:

6 0
3 years ago
What does it mean when your check engine light is flashing?
yawa3891 [41]

Answer:

That means u should prob get your engine checked out  

Explanation:

4 0
2 years ago
Read 2 more answers
Other questions:
  • Discuss four (4) advantages of direct and indirect water supply system.
    5·2 answers
  • Generally natural shape of stone is in shaped as (a)angular (b)irregular (c)cubical cone shape (d)regular
    10·2 answers
  • Use the overall heat-transfer resistance presented by the external air and the glass itself to determine the heat flux in W/m2 i
    10·1 answer
  • It has been estimated that 139.2x10^6 m^2 of rainforest is destroyed each day. assume that the initial area of tropical rainfore
    12·1 answer
  • What does it mean to wire solar cells in parallel vs. wiring them in series? I always get these switched around.​
    10·1 answer
  • This is various straps secured on a worker to distribute the fall arrest forces. What is depicted in the image?
    6·2 answers
  • QUESTION 6
    10·1 answer
  • When mass is the same, what is the relationship between radius and compression strength?
    5·1 answer
  • The metric ruler is typically divided into
    6·2 answers
  • Not all projects that engineers work on will have human factors involved.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!