Rounding to Nearest Integer
An application of method Math.floor is rounding a value to the nearest integer. The statement y = Math. Floor( x + 0. 5 ) ; will round the number x to the nearest integer and assign the result to y. Write an application that reads double values and uses the preceding statement to round each of the numbers to the nearest integer. For each number processed, display both the original number and the rounded number.
Please use C# and submit as a zip file.
5 years ago 30
Answer(1)
Purchase the answer to view it
- RoundNumber.zip
other Questions(10)
- A.S.A.P
- 10 quest
- Intro. to design
- PhD Doctorate ONLY
- I need a paper, and the requirements are in the annex.just answer the question and write paper.
- Need this done tonight
- MGT 330 final paper Effective Management Practices in the Workplace management practices of planning, leading, organizing, staffing, and controlling are implemented in your workplace
- math
- two journal article reviews
- PSC-410