Tags: %TAGME{ tpaction="" web="SCMP118" tag="" }% view all tags

Recent Changes in SCMP118 Web retrieved at 11:46 (GMT)

Hands On with files Goal: Learn to use files. Step 1 1 Create a new project `CountWordsInFile` 1 Down load EmilyDickinson1.dat. Place in new project folder...
string toString(int i) A function to convert an int to a string (Since to string() may not be available on some versions of NetBeans. The code below shows the funciton...
In Class Activity Classes, Friends, Operators We will be writing code to use Friends and Operators 1 Finish the name input routine 1 Add a version of equalLast...
Strings, Vectors and Classes Goal: Count the number if unique words in a series of lines. 1. Create a function to split a line of text into a vector of strings (words...
Date computations / Returns the day number of a date / int Date::dayNumber() { int m (month 9) % 12; int y year m / 10; return 365 y y /...
Date class code Date.h #include using namespace std; class Date { public: Date(); Date(int m, int d, int y); // constructor void input(); void display...
Hands on Date object. Goal Create and augment a Date class. Steps 1 Create and run the following date class below. 1 Write a Date methods that set and get...
Candidate Example #include using namespace std; class Candidate { private: string name; string party; int polls; public:...
Non OO Tic Tac Toe #include using namespace std; void displayBoard(char board 3 3 ); void nextMove(char player, char board 3 ); bool notValid(int r, int c); bool...
Object Oriented Tic Tac Toe TTTBoard.h #ifndef TTTBOARD H #define TTTBOARD H class TTTBoard { public: TTTBoard(); // Board constructor void clear(); /...
2 Dimensional Array Hands on Learning Activity Objectives: To be able to declare a two dimensional array. To be able to perform fundamental operations on...
Hands on Exercise 2 Solution: 1 What value is stored in row index 2, column index 1? 7 1 Give the name of the location where the value 0 is stored? A 1 3...
Exercise 1 Solution Declare a two dimensional array which can be used to store a yearly budget. Each row of the array corresponds to a particular budgeted item like...
Day 1 Sample code Hello world #include #include #include #include #include / clock t, clock, CLOCKS PER SEC / using namespace std; vector genIntList...
SCMP 118 Introduction to Programming in C Fall 2017: Sections 01 and 02 Section 01: 9:40 11:00AM THSection 02: 1:10 2:30PM TH Instructor: James Skon This course...
Recursion Merge sort #include #include using namespace std; void display(vector a); void merge(vector a, int s, int e); void merge sort(vector iArray, int s...
Shakespeare Demo code from class #include #include #include #include #include using namespace std; const string SHAKEFILE `shakespeare.txt`; vector getWords...
Word Count using Vectors, Strings, and Classes WordCount.h #include using namespace std; #ifndef WORDCOUNT H #define WORDCOUNT H class WordCount { private:...
Hands On Arrays 2 Goal Sorting Arrays and 2 dimensional arrays Arrays with Function calls Step 1 1 Create a function to enter a list of up to 25 quiz scores in...
Tick Tack Toe Goal Create a simple TTT game Steps 1 Consider the game Tic Tac Toe. How could a game be represented? Represent as a two dimensional array of char...

«Previous   1  2  3  4   Next»

Show 10, 20, 50, 100, 500, 1000 results per page, or show all.

Related topics: RSS feed, rounded corners RSS feed, ATOM feed, WebNotify, site changes, site map

Topic revision: r1 - 2006-11-15 - TWikiContributor
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback