Write a program to perform rounding on a floating point

Assignment Help Computer Engineering
Reference no: EM132210514

Question :

Write a program to perform rounding on a floating point number input by the user, based on the fractional part of the number.

For example, if the user inputs 2.5, then the number to be output is 3; if the user inputs 7.7, then the output is 8; if the user inputs 11.4, then the output is 11.

Reference no: EM132210514

Questions Cloud

Write a program which prompts a user for 5 2-d : Write a program which prompts a user for 5 2-D (x,y) coordinates and writes them to a file "points.txt", one point (x,y) coordinate pair per line.
Case study - local area network design : Detail explanation of the planning and designing of network. It is recommended that bullet points are included whenever necessary
What is the expected value and standard deviation : What are the investment proportion in the minimum variance portfolio of the selected five risky funds, and what is the expected value and standard deviation
Write a program for playing the game of nim : Write a program for playing the game of NIM. Our version of the game starts with up to 20 pegs and up to 10 discs in each peg.
Write a program to perform rounding on a floating point : Write a program to perform rounding on a floating point number input by the user, based on the fractional part of the number.
Compute the day of the week for any date entered by the user : Write a program named DayOfWeek that computes the day of the week for any date entered by the user.
Write function that creates string of path to a directory : Write a function that creates a string of the path to a directory. Use makeEmptyPicture to create a blank picture in the correct size.
Write a program to populate an array of size ten : Write a program to populate an array of size ten with ten numbers obtained through user input. Cycle through the array and generate two sums.
Design and implementation of the student registration : The administrators of Tiny College are so pleased with your design and implementation of their student registration and tracking system that they want.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Who are the influential users in each of the two samples

Who are the influential users in each of the two samples? Compare the list of influential users in the two samples to detect loyal users.

  In which fluid will the rate of cooling be lowest

A hot object suspended by a string is to be cooled by natural convection in fluids whose volume changes differently with temperature at constant pressure.

  How the prices paid differed for each staff member

ITECH1100 Understanding the Digital Revolution Assignment - Book Boomerang. How the prices paid differed for each staff member

  What was the scoop and results of the project

Describe an IT or similar business project you have done or are currently doing. In your discussion, provide information on the following.

  What are the four basic end-user environments

List and explain five application risks. How can applications become incompatible systems? What are the four basic end-user environments?

  Create an application that will make the given calculations

Create an application that will make these calculations. This method should accept a number of fat grams as an argument and return the number of calories.

  Write a method which will accept two parameters

Write a method which will accept 2 parameters. Each parameter is an array of doubles. The arrays are of equal length.

  What is physical address for each virtual address

CSC 305 Computer Organization-What is Physical address for each virtual address - find physical addresses and identify if each address generates TLB Hit page

  What is the frequency in hertz of a signal

What is the frequency in Hertz of a signal that repeats 80,000 times within one minute? What is its period (the length of one complete cycle)?

  Briefly explain top ten android malware attacks

Briefly explain top 10 Android Malware attacks with a keynote on the applications. List out the 10 attacks and briefly explain what triggered the attacks.

  The decades to include various methodologies

The System Development Life Cycle has developed over the decades to include a variety of Methodologies. Each of these Methodologies utilizes the same methods in a different way. define the primary SDLC Methodologies, their advantages and disadvant..

  Write a program that converts pounds to kilograms

Write a program that converts pounds to kilograms. Your program should prompt the user to enter a weight in pounds, convert it to kilograms.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd