Computers and Technology

Write a program to ask the user for a number that includes a decimal point. Then display the integer part of the number (the part of the number to the left of the decimal point) and the decimal part of the number (the part of the number to the right of the decimal point, including the decimal point). Follow the 3 steps in the Information Processing Cycle - Input, Processing, and Output. Do not format the output to any number of decimal places, and don't forget the ending punctuation.
Have a blank line at the end of your program to separate the last line of output from your program from the "Press any key to continue . . .", and do this for all programs that you write.
Example Run #1
(bold type is what is entered by the user)
Enter a number that includes a decimal point: 123.456
The integer part of 123.456000 is 123.
The decimal part of 123.456000 is 0.456000.
The example run shows EXACTLY how your program input and output will look.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 18:30, emmaishere69
List 3 items that were on kens resume that should have been excluded
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, dareaalcaam111
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
image
Computers and Technology, 25.06.2019 13:00, Mikkixo3114
Which color produces a calming effect on the mind a. pink b. blue c. red d. white e. green
Answers: 1
image
Computers and Technology, 25.06.2019 22:00, beabivine7023
Iam doing microsoft excel and i have do formulas, can some explain to me how do them?
Answers: 1
Do you know the correct answer?
Write a program to ask the user for a number that includes a decimal point. Then display the integer...

Questions in other subjects:

Konu
Mathematics, 13.02.2020 02:05