Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Write a program containing a for loop which prints the integers from 100 down to 0 by ten that is, the first three lines

C++
image text in transcribed
Write a program containing a for loop which prints the integers from 100 down to 0 by ten that is, the first three lines should be 100, 90, 80... Write a program that will find and print the first integer which is greater than 1000, and is divisible by 7. Write a program to extract the fractional part of a number input by the user, using the function: fractional part =number -floor(number). For example, if the user inputs 3.5, then the outputs the fractional part 3.5-floor(3.5)=3.5-3=0.5; and if the user inputs 7.1, then the program out the fractional part 7.1-fbor(7.1)=7.1 -7=0.1. Write a program to perform rounding on a floating point number input by the user, the fractional part of the number. For example, if the user inputs 2.5, then the number to be output the user inputs 7.7, then the output is 8; if the user inputs 11.4, then the output is 11. Draft a report for each of the questions after you complete the coding, including the problem description, source codes, discussion with the program output captured in screen shots, and conclusions about the lab Please upload the lab reports to ePortfolio

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago