COMP 328 Lab 5 Java IO

COMP 328 Lab 5 Java - COMP 328 Lab 5 Java IO COMP 328 Lab 5 Java IO Do this programming exercise after completing Homework 5 Topic 3 Introduction

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP 328 Lab 5 Java IO COMP 328 Lab 5 Java IO Do this programming exercise after completing Homework 5 Topic 3 Introduction to Java. 1. Write a Java application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers. Use a Scanner object to get the input from the user. Use System.out or System.out.printf , as necessary, to output the results. The average should be a floating point result, and should be displayed with two digits after the decimal point. 1.1. When you have tested your program and are sure it is working correctly, print out the source file, demonstrate it to your instructor or F.A., get a sign-off on the printout and put it here (RIGHT HERE – NOT ATTACHED – use a page break in Word and simply insert the printout here, physically, before attaching the remainder of this report and stapling it). 1.2. Run the program with the following input, then copy and paste the output here. Input these three numbers: 1234, 567 and 91.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/08/2011 for the course ECET 220 taught by Professor Smith during the Spring '11 term at DeVry Austin.

Ask a homework question - tutors are online