Results from SCMP118 web retrieved at 18:19 (GMT)

Binary Search Example #include #include #include using namespace std; vector inputData(); void outputData(vector data); int rBinarySearch(vector sortedArray, int...
BlackJack Click `Setup` and then `Deal` to start playing. Then click `Hit` or `Stand` until done (Stand will end your play). Score: Dealer Card(s): Player...
Candidate Example #include using namespace std; class Candidate { private: string name; string party; int polls; public:...
Dealing with character data input for an numeric (int or double) value. If someone enters a string or character to the following: int x; cin The program no longer...
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...
Day 1 Sample code Hello world #include using namespace std; int main() { cout
Day 4 Sample code Initials //DISPLAY 2.3 The type char #include using namespace std; int main( ) { char symbol1, symbol2, symbol3; cout symbol1 symbol...
Day 5 Sample code Using do while to repeat program code int main() { int x, y; char done; do { cout x y; cout done; } while...
C Coding Style Standard Coding style is important as it make easier to read, easier to correct, and easier to change. It is an investment in the future! Features...
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...
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 /...
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...
Hands On Day 2 1. Create a new project and enter the program below: #include using namespace std; int main( ) { int number of pods, peas per pod, total peas;...
Hands on for Chapter 2.1 and 2.2 1. Create a project and get the following program to run: Candy bar calculations //DISPLAY 2.1 A C Program #include using namespace...
Hands On Section 2.3 2.5 1. Tonnage : A metric ton is 35,273.92 ounces. Write a program that will read the weight of a package of breakfast cereal in ounces and...
Hands On Arrays Goal Work with simple Arrays of integers Step 1 1 Enter a list of 10 quiz scores in array 1 Print the list back out. Step 2 1 Enter a list...
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...
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...
Hands On Overloaded Functions Step 1 Given the diameter and costs of two round pizzas determine which is a better buy. Step 2 Add the option for rectangular pizzas...
Hands On Overloaded Functions and call by reference Step 1 Consider the following program that calls `swap` to interchange two variables: Swap Two #include using...
Poem Processing Part 3 Goals 1 Github use 1 Add class Steps 1 Go to Github project: https://github.com/jimskon/PoemCount 1 Pull to local system...
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 Candidate Class Steps 1 Go here to get candidate class 1 Make a project using this code 1 Add 2 new candidates to the code. 1 Modify the class...
Hands On Functions and Random numbers Goal To gain experience using functions and learn how to generate random numbers. We will write a game program that allows a...
Recursion In this activity we will write and test a simple recursive function. Consider: string str `Kenyon College`; We can define the reverse of a string: rev...
#include using namespace std; void displayBoard(char b 3 ) { cout x; cin y; if (x 3) { cout 3) { cout #include...
How to print bold in c Use the following: `\e 1m` to start bolding `\e 0m` to end bolding Example: cout Comments
Final Study Guide 1 Boolean Logic 1 if, do, for, while, switch statements (use and syntax) 1 , , , , , , , , , / operator 1 function calls...
Introduction to Programming Midterm study Guide Overview This exam is a mostly multiple choice test on the concepts and mechanics of programming in C . This exam...
Lab 0 Link Lab based on Chapter 1. 0) The purpose of this exercise is to produce a catalog of typical syntax errors and error messages that will be encountered by...
Lab 0 Sample code #include using namespace std; int main( ) { int number of bars; double one weight, total weight; cout number of bars; cin one...
Classes and Objects with friends Goal Enhance Date function with friend and operator methods Steps 1. Start with the Date class developed previously in class. A...
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...
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...
Notes on Section 10.2 Terms Class Object Public Members (Variables and Functions) Private Members (Variables and Functions) Scope Resolution...
Object Oriented Tic Tac Toe TTTBoard.h #ifndef TTTBOARD H #define TTTBOARD H class TTTBoard { public: TTTBoard(); // Board constructor void clear(); /...
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...
Quote on programing productivity “Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”(Bill Gates)
Quote of the Day: Simplicity Simplicity is prerequisite for reliability. Edsger Dijkstra
SCMP 118.01 Introduction to Programming Instructor: James Skon Fall 2016, 1:10 TH This course presents an introduction to computer programming intended both for...
Shakespeare Demo code from class #include #include #include #include #include using namespace std; const string SHAKEFILE `shakespeare.txt`; vector getWords...
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...
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 Spring 2017: 1:10 2:30 TH Instructor: James Skon This course presents an introduction to computer programming intended...
SCMP 118 Introduction to Programming in C Spring 2018: Section 01: 1:10 2:30PM TH Instructor: James Skon This course presents an introduction to computer programming...
String Hands On 1. Write code to enter in two strings and tell while is earlier in sorted order 2. Write code to end a string and another string and tell if the second...
Altfeld, Clara L.Ambrosen, DelaneyChase, John B.Deryck, Sean K.Felle, CourtneyFemia, Isabella T.Fisher, Michael G. Grosh, Nathan C.James, Camisha B.Kelly, Stephen...
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...
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...
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...
Strings Write a function to test if a string is a palindrome. Write a function to find each word in a sentence, and reverse the characters of the word. Vector Write...
Word Count using Vectors, Strings, and Classes WordCount.h #include using namespace std; #ifndef WORDCOUNT H #define WORDCOUNT H class WordCount { private:...
TWiki`s SCMP118 web The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.
Edit this topic to customize this dashboard. Change the boxes (tiles) to fit the needs of your team. See TWiki Dashboard add on docs. Many banner images...
1 Web Create New Topic Index Search Changes Notifications RSS Feed Statistics Preferences
Web Notification This is a subscription service to be automatically notified by e mail when topics change in this 1 web. This is a convenient service, so you do...
SCMP118 Web Preferences The following settings are web preferences of the SCMP118 web. These preferences override the site level preferences in . and...
/SCMP118 The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.
Statistics for SCMP118 Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top viewers: Top contributors...
Top Menu of SCMP118 Web This topic defines the menu structure of the SCMP118 web, used by the TopMenuSkin. 1 Web` Create New Topic...
Number of topics: 68

See also the faster WebTopicList

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