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.

Slides:



Advertisements
Similar presentations
Submitting Further Information in Relation to a Previously Submitted Application Tutorial 3.
Advertisements

Copyright  Hannu Laine C++-programming Part 5 Strings.
Computer Security coursework 3 (part 2) Dr Alexei Vernitski.
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.
Part 2 Biophysics 101 Jon Radoff, TF Teaching materials by Ivan Ovcharenko
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Programming Assignment #4 Binary Trees
XP 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial 10.
COMS S1007 Object-Oriented Programming and Design in Java July 10, 2008.
Grep, comm, and uniq. The grep Command The grep command allows a user to search for specific text inside a file. The grep command will find all occurrences.
©2001 Chariot Software Group Using MicroGrade Classroom Management Software.
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.
11 Introduction to Object Oriented Programming (Continued) Cats II.
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.
ME 392 ME January 2012 Week 3 Joseph Vignola.
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.
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.
Intro to C++. Getting Started with Microsoft Visual Studios Open Microsoft Visual Studios 2010 Click on file Click on New Project Choose Visual C++ on.
1 Project 4: XML Product Browser (Not Graded). Objectives This project is an exercise of the following knowledge and skills: Accessing and displaying.
Running a Report.  List Bibliography Report  Found under: All Titles Purpose : Creates customized bibliographies by catalog, call number, or item characteristics.
C++ Basics Structure of a Program. C++ Source Code Plain text file Typical file extension .CPP Must compile the C++ source code without errors before.
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.
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.
Creating Projects in JCreator Computer Science 40S.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
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.
Principles of Computer Science I Honors Section Note Set 1 CSE 1341 – H 1.
11 Project 2 Temperature Conversion (Not graded).
11 Introduction to Object Oriented Programming (Continued) Cats.
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.
Computer Security coursework 1 Dr Alexei Vernitski.
ECE 122 Feb. 1, Introduction to Eclipse Java Statements Declaration Assignment Method calls.
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.
1 Project 3 The Kumquat Society Conference. 2 Conference Registration In this project you will write a program to handle a conference registration. The.
1 Derived Classes Chapter Objectives You will be able to: Create and use derived classes.
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.
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.
11 Introduction to Object Oriented Programming (Continued) Cats.
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 Derived Classes Chapter Objectives You will be able to: Create and use derived classes. Understand the meaning of polymorphism and how it works.
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.
CSCI-1411 F UNDAMENTALS O F C OMPUTING L AB Shane Transue Summer
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.
1 Project 4: Venue Sort. 2 This project is an exercise in Using C++ strings. Operator overloading. Text File Input.
Homework #4: Operator Overloading and Strings By J. H. Wang May 22, 2015.
1 Inheritance and Polymorphism Chapter Getting Started Continue the Cat Management example from previous presentation.
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.
Input and output device A Presentation. Task  Each group will research, design, create and present a short presentation regarding different and unusual.
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.
C++ Memory Management – Homework Exercises
ICS 143 Principles of Operating Systems
1. Open Visual Studio 2008.
Input and Output Python3 Beginner #3.
Presentation transcript:

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. Let the output be in alphabetical order according to the cats' names.

Specifications Create and sort an array of pointers to Cat objects. Each Cat object created with information read from the text file. You may reuse code from the class web site. Will need modifications. The input file will contain no more than 20 cats.

Specifications for Class Cat Use C++ string class for name. Add << operator to class Cat and use it (rather than the Display method) to output information about each cat. Add > operator to class Cat and use it to compare cats in the sort function. Base comparison on cats' names.

Sample Input File Weight Name Date of Birth _01_29/Project_2_Sorting_Cats/ 2016_01_29/Project_2_Sorting_Cats/ File cats.txt

Sample Output

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

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 work 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 code Don’t let anyone look at your code.

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.

10 Submission Project is due by 11:59 PM, Thursday Feb. 4. Deliverables: Source code only. Three files: main.cpp (Main Program), Cat.h, Cat.cpp Zip your files and submit the zip file using the Canvas Assignment for this class. If you work with another student, include both names in the assignment comments. Other student should submit just a Canvas comment including both names. End of Presentation