1 Project 4: Vehicle Inventory. 2 Write a program to read a text file containing information about vehicles and output the information First in the order.

Slides:



Advertisements
Similar presentations
1 Project 6: Tic Tac Toe. 2 Tic Tac Toe A Challange Project 10 Points extra credit on final grade OK to work in groups of 2 or 3.
Advertisements

CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
Slides prepared by Rose Williams, Binghamton University Chapter 1 Getting Started 1.1 Introduction to Java.
1 Ant – Another Neat Tool Representation and Management of Data on the Internet.
30-Jun-15 Blackboard. Web sites All substantive information about this course is on the course website, 2007/index.html.
Compress a File & Upload Assignments to Blackboard.
1 Project 6: Cats in Tree. 2 Project 3: Cats in Tree In this project you will Create a class definition for a Cat class. Populate a BST with Cat information.
1 Project 7: Huffman Code. 2 Extend the most recent version of the Huffman Code program to include decode information in the binary output file and use.
Towson University COSC 236
1 Project 5: Median. 2 The median of a collection of numbers is the member for which there are an equal number less than or equal and greater than or.
MIS 3200 – Unit 6.2 Learning Objectives How to move data between pages – Using Query Strings How to control errors on web pages – Using Try-catch.
1 Project 7: My Photo Album Graded Project. 2 Assignment Write a web app to permit users to upload and view photos. User can keep up to five photos on.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 Object Oriented Design COP 3331 Spring 2011 MWF 11:50 AM – 12:40 PM CHE 103 Instructor:Dr. Rollins Turner Dept. of Computer Science and Engineering ENB.
1 Software Systems Development CEN Spring 2011 TR 12:30 PM – 1:45 PM ENB 116 Instructor:Dr. Rollins Turner Dept. of Computer Science and Engineering.
Chapter 1 Section 1.1 Introduction to Java Slides prepared by Rose Williams, Binghamton University Kenrick Mock, University of Alaska Anchorage.
1 Project 3: Chomp (Not graded). 2 Project 3 The game of Chomp was described in a Math Trek column in Science News:
1 Project 5: New Venue. 2 New Venue Based on the posted New Venue scenario 077_Ticket_Booth_Scenarios.pdf.
1 Project 7: Northwind Traders Order Entry. 2 Northwind Order Entry Extend the Select Customer program from Project 6 to permit the user to enter orders.
The content of these slides by John Galeotti, © Carnegie Mellon University (CMU), was made possible in part by NIH NLM contract# HHSN P,
11 Project 2 Temperature Conversion (Not graded).
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
1 Project 5: Printing Address Labels. 2 Assignment Write a Windows forms program to display and print a set of address labels. Input from a csv file.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
15-Dec-15 Blackboard. Web sites All substantive information about this course is on the course website, 2008/index.html.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
Project 3: Ticket Printer
1 COP 3331 Object Oriented Design Spring 2016 Section 001 F 8:00 AM – 10:45 AM CPR 115 Classroom Lecture 3 credit hours Instructor:Dr. Rollins Turner ENB.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
1-Feb-16 Blackboard. Web sites All substantive information about this course is on the course website,
1 Project 2: Using Variables and Expressions. 222 Project 2 Overview For this project you will work with three programs Circle Paint Ideal_Weight What.
1 Project 3 String Methods. Project 3: String Methods Write a program to do the following string manipulations: Prompt the user to enter a phrase and.
1 Project 1: Tickets. 2 Class Ticket Write a definition for class Ticket. A Ticket object corresponds to a physical ticket for a stage show. Attributes.
1 Project 2: Sorting Cats. Write a C++ console application to read a text file containing information about cats and output the information to the screen.
1 Project 4 Address Lookup. Project 4 Write an ASP.NET app that permits users to retrieve addresses from a potentially large list of addresses. There.
1 Project 3: Farey Sequences. 2 Farey Sequences Further details about Farey sequences, and more examples, can be found in the Wikipedia article:
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
11 Project 2 Temperature Conversion. 22 Project 2: Temperature Conversion Write an ASP.NET Web Forms app to convert temperatures from Fahrenheit to Celsius.
1 Project 5: Leap Years. 222 Leap Years Write a program that reads an integer value from the user representing a year and determines if the year is a.
1 Project 4: Computing Distance. 222 Computing Distance Write a program to compute the distance between two points. Recall that the distance between the.
1 Project 4: Palindrome Detector. 2 Assignment Write a C++ program that reads a line of text from the keyboard and reports to the user whether the text.
Project 1 Data Communication Spring 2010, ICE Stephen Kim, Ph.D.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
1 Project 5 Eyeglass Rx User Control. Eyeglass Rx Earlier in the semester we looked at an eyeglass prescription as an example of an HTML table. 2.
1 Creating a FNMA 1003 V.3.2.txt file that can be uploaded and submitted to emasshousing.com In order to upload a 1003 file to emasshousing.com you need.
1 Project 15: Animals Using Derived Classes and Inheritance.
1 Project 6: New Venue. 2 New Venue Based on the posted New Venue scenario
1 Project 8: Tic Tac Toe. 2 Assignment Write an HTML and JavaScript page that pemits users to play Tic Tac Toe. Both players use a single browser. Alternating.
1 Project 7: Ticket_Booth_0 Using XML. 2 Ticket Booth 0 Base Level 0 of the real Ticket Booth program. Gets information for a single venue from an XML.
1 Project 12: Cars from File. This is an extension of Project 11, Car Class You may use the posted solution for Project 11 as a starting point for this.
1 Project 6: Northwind Orders. 2 The Northwind Traders Database The Northwind Traders database was created by Microsoft for training and demonstration.
T3/Tutorials: Data Submission Uploading genotype experiments
Note: Some of the slides are repeated from Introduction to C++
Exam 3 Information George Koutsogiannakis
Compilation and Debugging
Compilation and Debugging
Shell Script Assignment 1.
PRG 410 Education for Service-- snaptutorial.com
Introduction to javadoc
Quiz 2 Information George Koutsogiannakis
In Class Programming BIS1523 – Lecture 11.
Introduction to Classes and Objects
How to Run a Java Program
Introduction to javadoc
POS 408 Week 1 Individual Assignment Individual: Console Display Message//tutorfortune.com Click on below link to buy
CSCE-221 Makefile Introduction
CSCE 206 Lab Structured Programming in C
Presentation transcript:

1 Project 4: Vehicle Inventory

2 Write a program to read a text file containing information about vehicles and output the information First in the order read. Then in increasing order by price.

3 Kinds of Vehicles There are three kinds of vehicles: Cars Trucks SUVs Define a class corresponding to each kind of vehicle. Let all classes inherit from base class Vehicle

4 Input File The input file has the following information for all vehicles: Vehicle type (Car, Truck, SUV) VIN Manufacturer Model Year Retail Price The input file has one additional piece of information for each vehicle type: CarNumber of doors TruckLoad capacity in pounds SUVPassenger capacity

5 Input File The input file is a text file consisting of comma separated values. There will be no more than 100 lines. Example: Car, ,Honda,2008,15900,2 Truck, ,Ford,2006,11424,1500 Truck, ,Dodge,2009,26545,2500 SUV, ,Ford,2011,29900,12 SUV, ,Mercury,2007,13929,8 SUV, ,Cadillac,2006,21500,7 Truck, ,Chevy,2007,20900,2000 Car, ,Nissan,2009,16929,4 File vehicles.csv

6 Specifications Prompt the user for filename. Output a meaningful error message filename is invalid or an error is encountered. Don't just crash or die. Your program should work with any valid input file of up to 100 lines. Your output format should match the sample run shown on the following slide. Columns separated by tabs.

7 Sample Run

8 Development Environment You may develop your program on any system you like. But you should test the finished program on Circe. The same source files should compile and run on either Windows or Linux.

9 Ground Rules You may work with one other person. OK to work alone if you prefer. If you do work as a pair Both members are expected to contribute. Submit a single program. Both members should understand the program in detail. Do not share your code with other students. Before or after submitting the project. OK to discuss the project. Do not copy any other student’s work. Don’t look at anyone else’s program. Don’t let anyone look at your program.

10 Ground Rules Except for code posted on the class web site Do not copy code from the Internet or any other source. Write your own code.

11 Submission Project is due by 11:59 PM, Sunday night, March 13. Deliverables: Source code only..h and.cpp file for each class plus main.cpp Zip the files for submission. Put your source files into a Windows folder. Use the Windows “Send to Compressed Folder” command. Do not submit any other form of zipped folder (e.g. WinRAR, tar) If you have trouble zipping the files, submit the separate files. If you work with another student, include both names in the Blackboard submission comments. Other student should submit just a Blackboard comment including both names. End of Presentation