Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 and 5 please and thank you. the language is C++ 4. Write a program that prints the number 1639.74592 with four decimal places, with

image text in transcribed

4 and 5 please and thank you. the language is C++

4. Write a program that prints the number 1639.74592 with four decimal places, with three decimal places, with two decimal places, and with one decimal place. The width of each output should be set to be 10. 5. Extra Credit (10 points): Write a program that prints the tens digit of integer constant. For example, if constant is 1456, your program should print 5. If constant is 245, your program should print 4. If constant is 5, the output should be 0. Your program should include the original number followed by the digit in the hundreds position

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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions