Tags:
create new tag
view all tags

Recent Changes in SCMP118 Web retrieved at 04:25 (GMT)

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...
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...
Binary Search Example #include #include #include using namespace std; vector inputData(); void outputData(vector data); int rBinarySearch(vector sortedArray, int...
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...
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 /...
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...
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...
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...
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(); /...
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...
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...
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...
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:...
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...
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...
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...
#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...
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...
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...

«Previous   1  2   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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback