- A s s i gnme nt 2
- Due: 11:59pm Thursday 2/7/2013
- Points: 10
- Write a program that does the following:
- 1. Prompts the user to input five decimal numbers
- 2. Outputs the five decimal numbers input
- 3. Converts each decimal number to the nearest integer
- 4. Adds the five integers
- 5. Outputs the sum and average of the five integers
- Output may look as follows:
- Enter five decimal numbers separated by spaces: 5.4 8.33 11.7 15.1 17.99
- The five decimal numbers input are:
- 5.4
- 8.33
- 11.7
- 15.1
- 17.99
- The five decimal numbers converted to integers are:
- 58 11
- 15
- 17
- The sum of the integers: 56
- The average of the integers: 11.2
- NOTE: Do not worry about formatting the decimal numbers
- This project should be submitted using the course BlackBoard.
- HVCC BlackBoard
- Assignment submission process:
- 1. Logon to HVCC BlackBoard
- 2. Click on link to: Spring_2013_CISS_110_501_Programming & Logic I
- 3. Click Assignments button on left
- 4. Click View/Complete Assignment: Assignment 2
- 5. Enter any comments pertaining to the Assignment
- 6. Attach any files you want to upload for the assignment (Certainly the .java you've written
- and any additional files required for the assignment
- 7. “Submit” actually submits the assignment and “Save” saves an interim version of what
- you're submitting
- 8. The button to the right will let you know when I've reviewed and graded your assignment
- Programming Assignment 2 01/28/13 1

SHARE

TWEET

# Assignment2 Instructions

a guest
Feb 2nd, 2013
29
Never

**Not a member of Pastebin yet?**

**, it unlocks many cool features!**

__Sign Up__RAW Paste Data