Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do in C language. what am i doing wrong (1) Prompt the user to input an integer, a double, a character, and a string,

Please do in C language. what am i doing wrong image text in transcribed

image text in transcribed

image text in transcribed

(1) Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables, Then, output those four values on a single line separated by a space. (2 pts) Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs. Enter integer: 99 Enter double: 3.77 Enter character: z Enter string: Howdy 993.770000 z Howdy (2) Extend to also output in reverse. (1 pt) Enter integer: 99 Enter double: 3. 77 Enter character: z Enter string: Howdy 993.770000 z Howdy Howdy z 3.77000099 (3) Extend to cast the double to an integer, and output that integer. ( 2 pts) Enter integer: 99 Enter double: 3. 77 Enter character: z Enter string: Howdy 993.770000 z Howdy Howdy z 3.77000099 3.770000 cast to an integer is 3 2.39.1: LAB: Warm up: Variables, input, and casting Output differs. See highlights below. 4-Compare output 0/1 Output differs. See highlights below. Enter integer: Enter double: Youroutput Enter character: Enter string: 993.770000z Howdy Enter integer: Enter double: Enter character: Expectedoutput Enter string: 993.770000 z Howdy Howdy z 3.770000994 3.770000 cast to an integer is 34

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

Understand the principles of a learning organization.

Answered: 1 week ago

Question

4. Does cultural aptitude impact ones emotional intelligence?

Answered: 1 week ago

Question

7. Do the organizations social activities reflect diversity?

Answered: 1 week ago