|
|
|
& Handouts |
Assignments |
|
|
|
Distribute & Discuss Course Outline Log Out Of UNIX - To NT Log Out of NT To UNIX Operating System Telnet janus01.cs.trinity.edu - ls, ls -l, ls -a, ls -al clear ls P*, ls *.jpg cat |
Fill Out Questionnaire (Lab I-5 points) Telnet Requires That You Set Up A UNIX Account
If Mailed Password Does Not Work
Telnet From Off Campus is Disabled! |
|
|
|
|
yppasswd cp mv rm rmdir vi man cd mkdir rmdir |
Practice Telnet Review & Practice vi commands |
|
|
|
|
vi commands command mode A, i :5 Arrow Keys x, 3x dd, 3dd 2yy, P, p arrow keys ESC:wq ESC:w ESC:q! /cout, /main, /{ :r FileName G Insert Mode Keys, ESC |
|
|
|
|
|
Motherboard DIMM - SIMM ROM/RAM BUS CPU Information Representation
Numerical Information Representation
No Calculators!
|
|
Due 1 Week |
|
|
|
|
|
|
|
|
|
Convert Base 10 to Base 2 Convert Base 2 to Base 10 Convert Base 10 to Base 8 Convert Base 8 to Base 10 Convert Base 16 to Base 8 Convert Base 16 to Base 2 Convert Base 2 to Base 16 Convert Base 8 to Base 16 Convert Base 10 to Base 16 |
|
|
|
|
|
Datatypes & Range & Size float 7 digits double 15 digits long double 19 digits char, string
5 Software Life Cycle
Decisions
if ( condition)
if ( condition)
if ( condition)
if ( condition)
|
|
|
|
|
|
Modulus representing mathematical expressions Escape Sequences \n, \a display stream decimals
Compound Decisions
real division vs integer division
PostTest Loop ---------- while ( condition) do
PreTest Loop while ( condition)
while ( condition)
for ( init ---- ; condition ; loop ----)
for ( init ---- ; condition ; loop ----)
|
|
|
|
|
|
PostTest Loops PreTest Loops |
|
|
|
|
|
Review Loop Processing Guess My Number Game |
|
|
|
|
|
math.h library Bad Code Example Transform Single Program
Input From File
AreaCalculation
void Commercial(void);
|
|
|
|
|
|
Pass By Value Scope Of Variables - Access void Calculate (short int ShapeNo,
void DisplayInfo (short int ShapeNo,
void Add (int Addend1, int Addend2,
|
|
Due Friday By 4:30 MailBox |
|
|
|
Quadratic Application GetInfo Calculate Display |
|
|
|
|
|
Array of char cout << "Enter Name: ";
cout << "Enter Name: ";
GetInfo (float & Diameter,
Random Number Generation
INT_MAX 2147483647 |
|
|
|
|
|
long int Random(long int Low, long int High); Void Functions
|
|
|
|
|
|
Functions With Explicit Returns |
|
|
|
|
|
strcpy(Name, "Tom") # include <fstream.h>
|
|
|
|
|
|
int Nos[5]; Nos[0] = 5; Sets Of Related Array Elements
#define MAX_BOWLING 21
|
|
|
|
|
|
#define MAX_EXAMS 5 int Array[MAX_EXAMS]; int ActNoExams; FillArrayFromFile |
|
|
|
|
|
printf ("%s %d %ld %f\n", string, int, long int, float); scanf () gets(String) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Bowling Exams DisplayIntArray FillIntArrayFromKeyboard |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fill RandomArrayFromKeyboard BubbleSort |
|
Due Friday |
|
|
|
Methods Constructor Destructor Set Display Declare/Allocate Class Object
|
|
Due 11/3 |
|
|
|
Methods Constructor Destructor Set Display Declare/Allocate Class Object
Optional Arguments
|
|
|
|
|
|
Methods Constructor Destructor Set Display Constructor Overloads
Static Array
Dynamic Array
|
|
Due 11/3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||