1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.

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

George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
Part 2 Biophysics 101 Jon Radoff, TF Teaching materials by Ivan Ovcharenko
Get number The ginput command creates crosshairs. When the user clicks the x,y values of the crosshairs are returned.
Guide To UNIX Using Linux Third Edition
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.
SAM 2010 v1.5 Student Walkthrough. Initial Set Up 1.Ensure that you are connected to the Internet. 2.Launch your web browser (Internet Explorer 7 or 8.
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.
Introduction to Internet Engineering Tutorial 7 All about Assignment 2 By Tse Hok
CS105 Lab 1 – Introduction Section: ??? TA: ??? ??? Announcements CITES Accounts Compass Netfiles Other Administrative Information CS105 Fall
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.
INTERNET APPLICATION DEVELOPMENT For More visit:
© 2003 By Default! A Free sample background from Slide 1 Week 2  Free PHP Hosting Setup  PHP Backend  Backend Security 
Guidelines for Homework 6. Getting Started Homework 6 requires that you complete Homework 5. –All of HW5 must run on the GridFarm. –HW6 may run elsewhere.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
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 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.
CSCI 51 Introduction to Computer Science Dr. Joshua Stough January 20, 2009.
Operating Systems Session 1. Contact details TA: Alexander(Sasha) Apartsin ◦ ◦ Office hours: Homepage:
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.
Operating Systems Session 1. Contact details TA: Alexander(Sasha) Apartsin ◦ ◦ Office hours: TA: Sasha Alperovich.
Go to your school’s web locker site Your user name is the first letter of your first name, the first four letters of.
1 JavaScript
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.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
Loops.  (No Quiz)  Hand in Assignment #1  Last chance for Q+A on the midterm  Loops 2.
Introduction to BASIC Programming Ken R. Hall, Ph.D. Ken R. Hall Consultants Portland, Oregon.
Introduction to Perl. What is Perl Perl is an interpreted language. This means you run it through an interpreter, not a compiler. Similar to shell script.
Project 3: Ticket Printer
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
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.
Since you’ll need a place for the user to enter a search query. Every form must have these basic components: – The submission type defined with the method.
1 ENGI 2420 Structured Programming (Lab Tutorial 7) Memorial University of Newfoundland.
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.
Homework #4: Operator Overloading and Strings By J. H. Wang May 22, 2015.
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 Project 15: Animals Using Derived Classes and Inheritance.
Comp1004: Introduction III Java. Content How Java Works: The JVM Writing a Class in Java – Class – Member Variables – Method – Statement Magic incantations.
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.
Note: Some of the slides are repeated from Introduction to C++
Exam 3 Information George Koutsogiannakis
IST256 : Applications Programming for Information Systems
ICS 143 Principles of Operating Systems
Quiz 2 Information George Koutsogiannakis
Programming in JavaScript
Programming in JavaScript
Command line.
CSCE 206 Lab Structured Programming in C
Announcements HW1 is due TODAY.
Challenge Guide Grade Code Type Slides
Presentation transcript:

1 Project 4: Venue Sort

2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input

3 Operator Overloading Modify the Venue class from the Ticket Printer project by adding a < operator _02_19_In_Class/ _02_19_In_Class/ If two venues have different zip codes, consider the one with the smaller zip code smaller. If two venues have equal zip codes, consider the one whose name comes first alphabetically as smaller. < operator for class string Let the < operator for Venue implement these rules.

4 Text File Input Read a text file with information about venues. Create a Venue object for each venue in the file. Store the addresses of the Venue objects in an array of Venue* Handle a variable number of venues in the file. Maximum of 100. A sample input file is available in the Downloads area of the class web site. You can use this file for testing, but you program should work with any such file with any number of venues, up to the max of 100.

5 Program Flow Prompt the user for filename. Read the file and create array of Venue* Output the venues to the screen as read. Sort the array into increasing order, using the < operator for class Venue. Be sure to compare the Venue objects, not the pointers. Sort the pointers. Output the venues to the screen as sorted.

6 Sample Input File Carol Morsani Hall 1010 North W.C. MacInnes Place Tampa FL Tampa Theatre 711 N Franklin Street Tampa FL Midflorida Credit Union Amphitheatre 4802 N US Highway 301 Tampa FL Amalie Arena 401 Channelside Dr Tampa FL The Tampa Improv 1600 E 8th Ave Tampa FL Skipper's Smokehouse 910 Skipper Road Tampa FL

7 Sample Run

8 Sample Run -- Continued

9 Development Environment You may develop your program on any system you like. But you should test the finished program on Circe. That’s where we will grade it. The same source files should compile and run on either Windows or Linux.

10 Ground Rules You may work with one other person. OK to work alone if you prefer. If you do work as a pair Work together! 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. It is 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.

11 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.

12 Submission Project is due by 11:59 PM, Thursday night, March 10 Deliverables: Use Canvas Assignments to submit your program. Source code only. Zip the source files for submission. Put your source files into a folder Use the Windows “Send to Compressed Folder” command. If you work with another student, include both names in the Canvas submission comments. Other student should submit just a comment including both names. End of Presentation