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
One of the best methods for understanding a company’s policies and procedures is
11Alexandr11 [23.1K]

Answer:

Usually a handbook or website

7 0
3 years ago
How do you extablish a chain of dimensions​
kap26 [50]

Answer:

Certamente você conhece três dimensões: comprimento, largura e profundidade. Além disso, quando se pensa um pouco fora da caixa também seria possível adicionar a dimensão do tempo.

Provavelmente, algumas pessoas viajam na maionese quando toca-se nesse assunto. Vem em suas mentes universos paralelos e até mesmo realidades alternativas. Mas também não se trata disso.

Explanation:

Basicamente as dimensões são as facetas do que nós percebemos a ser realidade. Existem muitos debates sobre dimensões na física. Um dos que mais chamam a atenção se chama Teoria das Cordas.

r

5 0
3 years ago
A "type 30" brake chamber has a diaphragm diameter of 8" which gives it
Montano1993 [528]
The piston makes four strokes in the crankshaft makes two revolutions between combustion firings. The diameter of the piston, and the inside diameter of the cylinder, is called a bore, so the area of the head of the piston is pi times the diameter squared divided by four.
5 0
3 years ago
Quantitative meaning
pychu [463]

Answer:

Explanation:

relating to, measuring, or measured by the quantity of something rather than its quality.Often contrasted with qualitative.

6 0
3 years ago
Read 2 more answers
Use the following assumptions for problems 1 and 2:
Salsk061 [2.6K]

Answer:

The text file attached has the detailed solution of all the parts individually.

Download txt
6 0
3 years ago
Other questions:
  • A material condition used to indicate that a specified geometric tolerance applies at each increment of size of a feature within
    15·1 answer
  • A cannon ball is fired with an arching trajectory such that at the highest point of the trajectory the cannon ball is traveling
    5·1 answer
  • Amorphous material is characterized by by a) organized crystalline structure; b) high hardness and ductility c)the chaotic arran
    6·1 answer
  • Plis 3 conclusiones de este video
    15·1 answer
  • Training is a way for employers to provide ____ to enable employees to protect themselves and others from injuries.
    9·2 answers
  • Anyone want to play among us with me the code is MMJSUF
    14·2 answers
  • A battery provides electricity in the state of ?
    15·1 answer
  • Which of the following is not part of a connecting
    10·1 answer
  • A vibration system consists of a mass 50 kg, a spring of stiffness 30 kN/m and a damper. The
    13·1 answer
  • Why is it important to push a dolly instead of pulling it?
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!