Recent Changes in SCMP118 Web retrieved at 10:03 (GMT)

SCMP 118 Introduction to Programming in C Fall 2019: 1:10 2:30PM TH Instructor: James Skon This course presents an introduction to computer programming intended...
Poem Processing Part 3 Goals 1 Github use 1 Add class Steps 1 Go to Github project: https://github.com/jimskon/PoemCount 1 Clone to Repl.it 1 Get...
A test indexing program Text Index Last time we created a class to create an word index: https://repl.it/@JimSkon/IndexBuild Parse Parsing a document into words...
Word Index Create a class that stores a list of words, and for each word a list of lines that word appears on. Consider the poem: A stranger came to the door at eve...
Strings Write a function to test if a string is a palindrome. Write a function to find each word in a sentence, ond put it in a vector. Only save unique words. Vector...
String Class Hands On 1. Write code to enter two strings and then tell if the second is contained in the first. 2. Write code to enter two strings and then tell how...
Classes and Objects with friends Goal Enhance Date function with friend and operator methods Steps 1. Start with the Date class. A copy is here : DateClass 2. Add...
Exactly Which Years Are Leap Years? We add a Day on February 29, almost every four years. The leap day is an extra, or intercalary, day and we add it to the shortest...
Student Class Hands on Activity Lucern Vasquez is trying to keep track of her students grades, and you have volunteered to help. She wants to keep a list of students...
Hands On Candidate Class Steps 1 Go here to get candidate class 1 Make a fork of this code 1 Add 2 new candidates to the code. 1 Modify the class to...
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...
Hands On Functions Step 1 Write a function to take two numbers n and m, and print the sum, product, division (both ways), and the n^m and m^n Step 2 Write a function...
Lab 3 Functions Due: Oct 3, 11:55pm Moodle Link Turn in The code (as a cpp file), A file with the collected outputs from the trial inputs below...
While Loops and Flow Control 1 Write program to report if a number is even or odd. 1 Write a program where the user enters two numbers N and D. The program then...
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...
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...
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...
Final Study Guide 1 Boolean Logic 1 if, do, for, while, switch statements (use and syntax) 1 , , , , , , , , , / operator 1 function calls...
Binary Search Example #include #include #include using namespace std; vector inputData(); void outputData(vector data); int rBinarySearch(vector sortedArray, int...
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...
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 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...
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...
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...
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...
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...
Notes on Section 10.2 Terms Class Object Public Members (Variables and Functions) Private Members (Variables and Functions) Scope Resolution...
#include using namespace std; void displayBoard(char b 3 ) { cout x; cin y; if (x 3) { cout 3) { cout #include...
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...
Quote on programing productivity “Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”(Bill Gates)
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...
Quote of the Day: Simplicity Simplicity is prerequisite for reliability. Edsger Dijkstra
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...
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 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;...
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...
How to print bold in c Use the following: `\e 1m` to start bolding `\e 0m` to end bolding Example: cout Comments
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...
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...
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 1 Sample code Hello world #include using namespace std; int main() { cout
SCMP118 Web Preferences The following settings are web preferences of the SCMP118 web. These preferences override the site level preferences in . and...
Statistics for SCMP118 Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top viewers: Top contributors...
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...
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...
Top Menu of SCMP118 Web This topic defines the menu structure of the SCMP118 web, used by the TopMenuSkin. 1 Web` Create New Topic...
1 Web Create New Topic Index Search Changes Notifications RSS Feed Statistics Preferences
TWiki`s SCMP118 web The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.
/SCMP118 The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.

 

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