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
Do the coil resistances have any effect on the plots?
PolarNik [594]
Because of the skin depth effect, the current at high frequency tends to flow at very low depth from radius. Then at high frequency the effective cross section of the wire is narrower than at DC.

Fro example skin depth at 100 kHz is 0.206 mm (0.008”), a wire more thicker than AWG26 could be a waste of copper, better use a bunch of thin wire (Litz wire) to rise the Q factor.
8 0
3 years ago
For some metal alloy, a true stress of 345 MPa (50040 psi) produces a plastic true strain of 0.02. How much will a specimen of t
Strike441 [17]

Answer:

the elongation of the metal alloy is 21.998 mm

Explanation:

Given the data in the question;

K = σT/ (εT)ⁿ

given that metal alloy true stress σT = 345 Mpa, plastic true strain εT = 0.02,

strain-hardening exponent n = 0.22

we substitute

K = 345 / 0.02^{0.22

K = 815.8165 Mpa

next, we determine the true strain

(εT) = (σT/ K)^1/n

given that σT = 412 MPa

we substitute

(εT) = (412 / 815.8165 )^(1/0.22)

(εT) = 0.04481 mm

Now, we calculate the instantaneous length

l_i = l_0e^{ET

given that l_0 = 480 mm

we substitute

l_i =480mm × e^{0.04481

l_i =  501.998 mm

Now we find the elongation;

Elongation = l_i - l_0

we substitute

Elongation = 501.998 mm - 480 mm

Elongation = 21.998 mm

Therefore, the elongation of the metal alloy is 21.998 mm

6 0
3 years ago
During his military campaign in what is now Germany, Julius Caesar lead his army of 40,000 soldiers to the western bank of the R
CaHeK987 [17]

Answer:

identifying a problem

Explanation:

its right

5 0
3 years ago
What are the benefits of NSTP CWTS?​
geniusboy [140]

Explanation:

The purpose of this program is to recognize the Youth's vital role in nation- building, promote consciousness among youth and develop their physical, moral, spiritual, intellectual and social well-being. It shall inculcate in the youth patriotism, nationalism, and advance their involvement in public and civic affairs.

8 0
3 years ago
A 4140 steel shaft, heat-treated to a minimum yield strength of 100 ksi, has a diameter of 1 7/16 in. The shaft rotates at 600 r
velikii [3]
Answer:










Explanation:



4140-40 I’d pick wood




I hope this helps! :)
4 0
3 years ago
Read 2 more answers
Other questions:
  • A civil engineer is studying a left-turn lane that is long enough to hold seven cars. Let X be the number of cars in the line at
    11·2 answers
  • Which of the following scenarios describes someone who is a materials engineer?
    13·1 answer
  • Determine the Thevenin/Norton Equivalent Circuit with respect to the terminalsa,bas shown in the figure. (Here 1A is an independ
    11·1 answer
  • Which one of the following is a list of devices from least efficient to most efficient
    9·1 answer
  • Consider a section of muscle tissue of a cylindrical shape with a radius of 1.5 cm. During highly rigorous exercise, metabolic p
    8·1 answer
  • The natural material in a borrow pit has a mass unit weight of 110.0 pcf and a water content of 6%, and the specific gravity of
    11·1 answer
  • Pleaseeee help me with this!!
    10·1 answer
  • A 240-ton tugboat is moving at 6 ft/s with a slack towing cable attached to a 100-ton barge that is at rest. The cable is being
    14·1 answer
  • Although studs are sometimes spaced 24" O.C. in residential structures, a spacing of_____ O.C. is more commonly used.
    5·1 answer
  • assuming complementary inputs are available, the minimum number of transistors needed to realize a two input xor gate is:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!