Recent Changes in SCMP118/Fall2016 Web retrieved at 02:56 (GMT)

Lab 8 Operator Overloading Due: Dec 2 11:55pm Link Your goal is to create a class for storing and manipulating fractions. We wish to write code to add, subtract...
Lab 7 Game of Life Due: November 19, 11:55pm Link Alternate Graphics Oriented Lab If you wish, you can try this alternate lab involving Allegro Graphics. You...
Lab 6 Tallying Due: Nov 5, 11:55pm Link Instructions Turn in the code (a cpp file or repl.it link), and the run outputs as requested below. Remember...
Bank Account Example BankAccount.h //DISPLAY 10.6 /Program to demonstrate the class BankAccount. //Demonstrates an alternative implementation of the class BankAccount...
Lab 5 Pattern Matching Due: Oct 24, 11:55pm Link Instructions Turn in the code (a cpp file or ideone.com link), and the run outputs as requested below...
Lab 4 2 The Duel Due: Oct 15, 11:55pm Link Instructions Turn in the code (a cpp file or ideone.com link), and the run outputs as requested below....
Lab 4 1 Count Coins Due: Oct 8, 11:55pm Link Instructions Turn in the code (a cpp file or ideone.com link), and the run outputs as requested below....
Lab 1 1 Link An employee is paid at a rate of $16.68 per hour for the first 40 hours worked in a week. Any hours over that are paid at the overtime rate of...
Lab 2 Roman Numerals Due: Oct 1, 11:55pm Link For each problem Turn in The code (as a cpp file), A file with the collected outputs from the trial...
Lab 1 2 Link Requirements: Write a C program which takes a 4 digit number (integer) as input from the user and prints the number in reverse order. For example...
Using repl.it with C In this activity we will repl.it C programming Environment, and trying it on on a simple program. The goal is to make sure we understand the...
Codelab Registration Instructions CodeLab is an online learning system for C . Use of it for this course costs $25.00 for the semester. REGISTRATION INSTRUCTIONS...
RequirementGrading CommentsPointsScore Easy to use user interface 5 5 Functional decomposition: Program should be factored into functions to reduce complexity...
Solutions 1. (10,10), (11, 10), (10, 11), (12, 11), (11, 12) This program is a C implementation of John Conway`s Game of Life. Welcome to LIFE. Enter row and column...
Final Project Shakespeare Due: May 3, 4:00pm (No late submissions allowed) Link Instructions Turn in the code (a cpp file), and the run outputs as requested...
Extra Credit Lab Tick Tack Toe with computer opponent Due: May 1, 11:55pm Link Instructions This optional lab is an opportunity to get points back on a previous...
Shakespeare in Class file activity Getting ready for the final project viewing and search the text. The goal here is to get everyone to step one on the final project...
Emily Dinkenson Example main.cpp #include #include #include #include #include #include #include `WordCount.h` using namespace std; const string EMILY `EmilyDickinson...
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...
Palindrome //DISPLAY 8.8 Palindrome Testing Program //Test for palindrome property. #include //#include //#include using namespace std; void swap(char v1,...
Lab 9 Blackjack Due: November 28, 11:55pm Link Blackjack Game using objects What is Blackjack? Blackjack, also known as twenty one, is the most widely played...
Functions Sample code 2 #include using namespace std; void displayBoard(char board 3 3 ); void getMove(char b 3 3 , char player, int r, int c); char checkWin(char...
Classes The Candidate Class Candidate.h #include using namespace std; class Candidate { private: string name; string party; int polls...
Classes 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);...
Sort #include using namespace std; void bar(int size); void inputData(int data , int max, int values); void outputData(int data , int values); void removeLow(int...
Lab 3 Functions Due: Feb 20, 11:55pm Link Turn in The code (as a cpp file), A file with the collected outputs from the trial inputs below the run...
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...
Graphics with Allegro An alternate lab 8 Due November 2 Goal Your goal is to make a graphic simulation of 2 or more balls interacting in a box. See an example...
Example Allegro Program #include #include #include const float FPS 60; const int SCREEN W 1640; const int SCREEN H 800; const int BOUNCER SIZE 32; int...
SCMP 118 Introduction to Programming in C Sections 1 (1:10 2:30 TH) and 2 (2:40 4:00 TH) Instructor: James Skon Fall 2016 This course presents an introduction...
For for Control Structures Fuel Warning //Illustrates the importance of using braces in if else statements. #include using namespace std; int main( ) { double...
Files Simple File Input/Output //DISPLAY 6.1 Simple File Input/Output //Reads three numbers from the file infile.dat, sums the numbers, //and writes the sum to the...
Baseball player program Player.h // Class Definition: Player // Version 1 // This class defines an object to hold information about // baseball player for use in...
Vectors #include #include using namespace std; int main( ) { vector v; cout next; while (next 0) { v.push back(next); cout...
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...
Sample Run Enter 1 to Compute area of a triangle Enter 2 to Compute your clothing size Enter 3 to Convert temperature from Fahrenheit to Celsius (nearest integers...
Lab 0 Due 11:59pm January 24. Link 0) Do the programming projects 6 and 7 on page 37. Use the program in Display 1.8 (source code available Here). Do this for yourself...
Classes Equality Function //DISPLAY 11.1 Equality Function //Program to demonstrate the function equal. The class DayOfYear //is the same as in Self Test Exercise...
How to print bold in c Use the following: `\e 1m` to start bolding `\e 0m` to end bolding Example: cout Comments
Creating Random Numbers The problem with creating random numbers is that you need to start with something random. If you call rand() without doing anything special...
Function Void //DISPLAY 5.2 void Functions //Program to convert a Fahrenheit temperature to a Celsius temperature. #include void initialize screen( ); //Separates...
Wind Chill Sample Run Not particularly good, but a sample nonetheless Make yours nicer! Enter A to Compute area of a triangle Enter B to Compute your clothing size...
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...
Day 2 Sample code Hello world #include using namespace std; int main() { cout 01 08.cpp #include using namespace std; int main( ) { int number of pods,...
Notes for Day 2 Terms Program/Software/Hardware Input Device/Output Device Memory High Level/Low Level Language Compiler Source Code...
Statistics for SCMP118/Fall2016 Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for...
Day 1 Sample code Hello world #include using namespace std; int main() { cout
Local customisations of site wide preferences Site level preferences are located in 1 , however this 2 prefs topic has override priority and should be used for...
Tutor Notes 1 Article text. everyone should use Net Beans Comments
Netbeans IDE Install Instructions NetBeans is supported on Windows, Mac OS and Linux. Step 1 get Netbeans Go to https://netbeans.org/ You need to download and...
Towers of Hanoi Example Code #include using namespace std; int moves; void hanoi(int diskSize, int source, int spare, int dest) { if (diskSize
Notes on Section 10.2 Terms Class Object Public Members (Variables and Functions) Private Members (Variables and Functions) Scope Resolution...
Notes on Section 10.1 Terms Structure Tag Member Names Structure Value Member Values Member Variables Syntax struct AcadRecord // Structure...
Strings Sample Code C Strings to Integers //DISPLAY 8.2 C Strings to Integers //Demonstrates the function read and clean. #include #include //#include using...
Notes on Section 8.1 Terms Null character C string Syntax char str var 20 `Kenyon Rules!` creates a character array of size 20, just as you`d expect...
SCMP 118 Course Calendar May be subject to change as course unfolds. Asways check here for latest update. Date Required Reading Quiz Homework Due...
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...
Lucy Jessie Ghada Kara Michael Grant Kaitlin Sophia Bennett Colleen Charlotte Emma Alexandra David...
Functions Sample code Temperature Convert //DISPLAY 5.2 void Functions //Program to convert a Fahrenheit temperature to a Celsius temperature. #include void initialize...
Notes on Sections 4.4, 4.5, 4.6 Term Black box Local variable Global constant Overloaded function name Automatic type conversion Syntax...
Functions Sample code Pizza Compare //DISPLAY 4.10 Buying Pizza //Determines which of two pizza sizes is the best buy. #include using namespace std; double unitprice...
Functions Sample code Simple Function Call //DISPLAY 4.1 A Function Call //Computes the size of a dog house that can be purchased //given the user`s budget. #include...
Notes on Sections 4.2 4.3 Term Function Argument Value returned Function call Type cast Function declaration Formal parameter...
Chapter 3 Notes Notes on Section 3.1 Term Boolean Expression Tips Take note of the precedence rules on p. 113 Be careful when mixing arithmetic and...
Day 4 Sample code Initials //DISPLAY 2.3 The type char #include using namespace std; int main( ) { char symbol1, symbol2, symbol3; cout symbol1 symbol...
Notes for Day 4 Notes on Section 2.3 Terms Character, Boolean, String Syntax The variable types we ve seen so far are int and double. To this we will...
Day 3 Sample code Candy bar calculations //DISPLAY 2.1 A C Program #include using namespace std; int main( ) { int number of bars; double one weight, total...
Notes for Day 3 Notes on Section 2.1 Terms Variable Value Identifiers Declare Assignment Initializing Syntax Identifiers may...
JimSkon 2015 08 24 Kenyon Logo: Kenyon Logo:
1 Web Create New Topic Index Search Changes Notifications RSS Feed Statistics Preferences
TWiki`s SCMP118/Fall2016 web The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.
/SCMP118/Fall2016 The 1 web of TWiki. TWiki is a Web Based Collaboration Platform for the Enterprise.
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 not have to come...

 

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