This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS180 Project 1 1 Creating a simple invoice Project assigned on: Friday, Jan 27th 2012 Project due date: Thursday, Feb 2nd, 11:59 p.m Last revised on: - List of revisions: - 1.1 Description In this project you will create an invoice based on user inputs like customer name, quantity, price of items, applicable tax etc. You will read in details of three items(item code, qty and price) and applicable discount to arrive at the total amount. A quick look at figure-1 and figure-2 will give a good overall requirement of the project. 2 Learning Objectives 1. Learn how to use Scanner to read user input 2. Learn how to work with numerical data types 3. Learn how to use standard java classes like Random, String, Math, Date etc 4. Learn how to format numerical data to required precision for display. 3 Project Setup Create a folder project1 in your cs180 folder. Save all your Java source files in the project1 folder. You will be turning in this folder when the project is completed. Note: Use the following commands if needed. % cd cs180 % mkdir project1 % cd project1 % pwd /u/u9x/yourlogin/cs180/project1 % drjava 1 4 Project Details Decide on the name of your java class and make sure to save it in a file with the same name. Remember that all names are case-sensitive. Once you start coding, remember tothat all names are case-sensitive....
View Full 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.
- Spring '08