Project3 - CS 180 Project 3 1 Simple Calculator Project...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 180 Project 3 1 Simple Calculator Project assigned on: Friday Feb 10 th 2012 Project due date: Thursday Feb 16 th 11:59 p.m. 2012 1.1 Description In this project, your program will output the result of a specified arithmetic calculation based on user inputs: an operator, and two operands. You read the operation to be performed (+, -, *, or /) using the Scanner class. You also read two operands (of type double) on which the operation needs to be performed. Then, output the result of performing that operation on the two operands. Figure 4 shows the overall requirements of the project. 2 Learning objectives 1. Learn how to use selection statements (switch and if-else). 2. Learn how to perform basic input validation. 3 Project Setup Create a project3 folder in your cs180 folder. Save all your Java source files in this project3 folder. You will be turning in the contents of this folder when the project is completed. Note: Use the following commands if needed:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/19/2012 for the course CS 180 taught by Professor Staff during the Spring '08 term at Purdue University-West Lafayette.

Page1 / 4

Project3 - CS 180 Project 3 1 Simple Calculator Project...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online