Difference: WebChanges ( vs. 1)

Revision 12006-11-15 - TWikiContributor

Line: 1 to 1
Added:
>
>

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

<-- remove the format parameter to show absolute date instead if topic age -->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Final Study Guide 1 Boolean Logic 1 if, do, for, while, switch statements (use and syntax) 1 , , , , , , , , , / operator 1 function calls...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Binary Search Example #include #include #include using namespace std; vector inputData(); void outputData(vector data); int rBinarySearch(vector sortedArray, int...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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 /...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Candidate Example #include using namespace std; class Candidate { private: string name; string party; int polls; public:...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Object Oriented Tic Tac Toe TTTBoard.h #ifndef TTTBOARD H #define TTTBOARD H class TTTBoard { public: TTTBoard(); // Board constructor void clear(); /...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Day 1 Sample code Hello world #include #include #include #include #include / clock t, clock, CLOCKS PER SEC / using namespace std; vector genIntList...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Shakespeare Demo code from class #include #include #include #include #include using namespace std; const string SHAKEFILE `shakespeare.txt`; vector getWords...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Word Count using Vectors, Strings, and Classes WordCount.h #include using namespace std; #ifndef WORDCOUNT H #define WORDCOUNT H class WordCount { private:...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Notes on Section 10.2 Terms Class Object Public Members (Variables and Functions) Private Members (Variables and Functions) Scope Resolution...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
#include using namespace std; void displayBoard(char b 3 ) { cout x; cin y; if (x 3) { cout 3) { cout #include...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Quote on programing productivity “Measuring programming progress by lines of code is like measuring aircraft building progress by weight.”(Bill Gates)
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
Quote of the Day: Simplicity Simplicity is prerequisite for reliability. Edsger Dijkstra
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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;...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
How to print bold in c Use the following: `\e 1m` to start bolding `\e 0m` to end bolding Example: cout Comments
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->
<--/twikiTopRow-->
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...
<--/twikiSummary-->
<--/twikiBottomRow-->
<--/patternSearchResult-->

«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

 
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