What is the consequences of no break statement in a case.

Size: px
Start display at page:

Download "What is the consequences of no break statement in a case."

Transcription

1 REVIEW DID YOU THINK ABOUT THE SUBTLE ISSUES HERE The Example using the switch statement. PLAY COMPUTER in class show in a table the values of the variables for the given input!!!! char ch; int ecount=0, vowels=0, other=0; cin.get(ch); while(ch!= x ) switch(ch) case e : ecount++; case a : case i : case o : case u : vowels++; break; default: other++; //end switch cin.get(ch); //end while cout << ecount <<, << vowels <<, << other << endl; Class? First time Output for input of e x? U x? a x? Output for the following sequence e u z i x? NOTE: Each letter input is obtained by the cin.get(ch) with an enter key. What is the consequences of no break statement in a case.

2 REVIEW BE SURE TO DO Hand in HW CHAP3. Be sure to read and study the Summary section of each Chapter to understand what you should know with the exception of the section(s) I skip for now. HAND IN the Exam Practice 1-20 on pages Note for the memory snapshot 14,15 questions. Show the value of variables after the statements have been executed and any output that might occur in the end

3 Outline chapter 4 control structures: REPETITION Objectives 1. Algorithm Development (FLOWCHARTS) for repetition 2. Repetition Structures while do/while for 3. Special use of C++ break and continue Statements 4. Study of text applied problems GPS Data & Weather Balloons

4 Text uses isspace( ) but does not define it isspace() int isspace ( int c ); Check if character is a white-space Checks whether c is a white-space character. Character Meaning ' ' space (SPC) '\t' horizontal tab (TAB) '\n' newline (LF) '\v' vertical tab (VT) '\f' feed (FF) '\r' carriage return (CR)

5 /* isspace example */ #include <stdio.h> // (header file) NEW NEEDED FOR putchar() #include <ctype.h> // NEW NEEDED FOR isspace() int main () char c; int i=0; char str[]="example sentence to test isspace\n"; while (str[i]) c=str[i]; if (isspace(c)) c='\n'; putchar (c); i++; return 0; Output! Example sentence to test isspace

6 The while Statement Syntax: while (boolean_expression) statement; while (boolean_expression) statement1; statement_n; Examples while (!isspace(ch)) cin.get(ch); //statement repeated until a // space character is read While LOOP while (x>y) //statement block executed //while x>0 ++cl; --x; // loop variable changes

7 Example sentence to test isspace Example: Computing Velocity over a Range of Time. Sequential structures are not well suited for computing the same quantities repeatedly. Flow charts are very useful Also to describe repetition. CLASS WRITE THE PROGRAM NOW FROM THIS CHART RUN IT AND HAND IN! Note: v=at a=1.8 m/s 2 Make a comment // FLOWCHART TRANSLATION

8 Motion with constant acceleration v = final velocity v 0 = initial velocity a= acceleration (the change in velocity per time) v = v 0 +at Also note that all objects fall at the same rate as discovered by Galileo a= gravity constant = 9.80 m/s an amazing fact!

9 /*****************************************************/ Program chapter4_1 variation now online! */ This program computes and prints a velocity for time */ table values in the range of: 0 <= time <= 10 */ #include<iostream> //required for cout #include<iomanip> // required for what????? using namespace std; int main() // Declare and initialize some constants const double V0(0.0); //initial velocity m/s const double A(2.537); //constant acceleration m/s*s double time, velocity; //print heading cout << "Time, s\t\tvelocity, m/s\n"; time = 0; while(time <= 10.0) velocity = A*time + V0; cout << setw(10) << time << "\t\t" << velocity << endl; ++time; return 0; RUN! THIS PROGRAM and hand in some of its output along with The next MODIFICATIONS.

10 MID TERM EXAM IN ONE WEEK!

11 Infinite Loops SOME CLASS WORK An infinite loop is one in which the loop condition is always true. RUN THE PREVIOUS PROGRAM BUT REMOVE OR comment out the ++ time What happens? Why do we run the program in a separate window? ANSWER THESE QUESTIONS ON YOUR PREVIOUS HAND IN BUT NOW DO THE NEXT MODIFICATIONS TO HAND IN IF NOT DONE IN CLASS

12 HAND IN PROJECT I bet in a bar $100 each that my Volks Wagon could get to 60 miles/hr Faster than cars owned by some folks I met at the bar. These folks who had the cars listed below, and they gave me the time for their cars to reach 60 miles an hour starting from a stop. Fortunately the guys and gals there were engineers and when I ran the previous program at an acceleration of 9.80 m/s 2 up to 4 sec of time at a Step of 0.1 sec so they could understand the consequences. I pointed out that m/s = 60 mi/hr HAND in a Modification of the last program and the key output data attached (not all!) as I specified and let me know which cars did my Volks Wagon beat! How did I do, did I make a lot of money? If so How much did I win or lose or both? Also answer the following. NOTE: My Volks Wagon has no engine. How did I do this? 2015 Porshe 918 spyder 2.21 sec 2015 Nissan GT-R 2.8 sec 2015 Chevrolet Corvette z sec 2015 Mercedes-Benz E63 Amg 3.2 sec 2015 Dodge Viper SRt sec 2015 Dodge Vhallenger SRT hell sec 1994 Jaguar XJ sec

13 IN CLASS PROJECT FOX HEAVEN an island off the coast of Costa Rica near Isla Sorna (REPORTS OF STRANGE CREATURES ON THIS ISLAND) Write a program to study the population of foxes ON Fox Heaven Island as the years go by with the following conditions You study the island and count the foxes at 20 with a lot of rabbits, namely 13,000 rabbits. Looks like plenty of rabbits to keep this island going for a long time. So in your study you find information About the fox and rabbit reproduction and build this program to predict the future for the island. As follows: If every thing is ok, ie a GOOD YEAR foxes can survive by eating 208 rabbits for the year That means that a good year is if the total number of rabbits is greater than the number of present foxes times the 208 rabbits, if the present number of rabbits falls below the good year then it s a BAD YEAR AND AND FOXES WOULD NEED TO EAT ONLY 104 RABBITS TO JUST SURVIVE very skinny. In a good year the rabbit population goes up by 50% times the previous years value. And the foxes population increases 20% of the previous years value but if year is bad (#of rabbits < # foxes *208) ie not enough rabbits to fully satisfy the foxes and keep them healthy so they go on A lean diet of only eating 104 rabbits a year as noted above. The fox population grow now at only 10% and the rabbits increase by 50% (they are still healty) their population as rabbit normally do! These rates are a combination of births and deaths. 1. Write a program with year 1 starting numbers of foxes and rabbits as above. Have it calculate the first good year And see how many rabbits and foxes there are then check to see if it s a good or bad year and use the rates above. Output the year, the fox population, rabbit population in nice labeled table. Run for 15 years. Can FOX HEAVEN sustain itself, if the rabbit population drops to 0 or less then the foxes all die (if this happens your program should set the number Of foxes to zero in such a bad year and thus all on the island die. What year(s) did the island turn bad? What year does it die? 2. Take into account that the island has been discovered by hunters who hunt rabbits And foxes in a good year. The hunters kill 5% of the rabbits and 10% of the foxes. Rerun the program for as many years you need to see if the island Survives, flourishes or dies. If it goes bad what year(s)? And what year does it die if it does? Did the hunters make the situation on the island worse or better? Explain??

14 Avoiding Bugs When programming longer programs, it is not uncommon to have a large number of error messages from the compiler. A single error often causes several errors as the compiler gets confused over what follows an error. Start correcting errors from the top of the error list, NOT the bottom. Recompile your program frequently, limiting the places where errors may occur. Use endl in debugging output statements to be sure what you send is actually seen on screen.

15 start r in while() nest F r>100 T h F F r==0 r>0&&r<50 in T T WHILE() IS LIKE A NEST WITH STATEMENTS AND IF ELSE, etc INSIDE IT out out h, r, A sh, in r end

16 The do-while Statement Syntax: do statement; while (boolean_expression); do statement1; statement_n; while (boolean_expression); Examples do cin.get(ch); //statement repeated until an while (ch!= \n ) // newline character is read Focus on this do //statement block executed (AT LEAST ONCE v = a*t + v0; cout << t << << v << endl; t += 0.5; (NOTE LOOP VARIBLE MUST CHANGE) while (t<10); //while t< 10

17 /* Program chapter4_3 */ /* This program prints a degree-to-radian table */ /* using a do-while loop structure. */ #include<iostream> //Required for cout #include<iomanip> //Required for setw() using namespace std; const double PI = ; int main() // Declare and initialize objects. int degrees(0); double radians; // Set formats. cout.setf(ios::fixed); cout.precision(6); // Print degrees and radians in a loop. cout << "Degrees to Radians \n"; do radians = degrees*pi/180; cout << setw(6) << degrees << setw(10) << radians << endl; degrees += 10; while (degrees <= 360); // Exit program. return 0; Degrees to Radians HAND in PROGRAM and output Run this program to 180 degrees, source IS on line Has an error. ANSWER! What is so special about the 180 degree line?

18 HW more do-while fun. RUN prog 4_1 AGAIN 1. MODIFY WITH A do-while check output is the same 2 MODIFY THAT user inputs initial velocity, constant acceleration, initial time and final time. Run and hand in this last modification with part 1 done with some output.

19 FOR LOOP The for Statement note flowchart symbol a full control on loop -very useful in scientific programs. The figure is called?

20 The for Statement Syntax: for (initialization_stmt; boolean_condition; modification_stmt) statement(s); Examples int sum=0; NOTE int i; for (int i = 1; i <= 10; i++) can also do as sum += i; usual and start cout << sum << endl; for(i=1. int sum=0; for (int i = 1; i < 11; ++i) sum += i; cout << sum << endl;

21 For loop possibilities and counting! Study page How does these loops execute? for (int k=1;k<=10; ++k) statements; or n-=2 for (n=20; n>0; n=n-2;) statements How many time does this one execute? This is a a block for (int k=5; k< =83; k+=4) statements Secret for counting number floor ((Final Initial)/increment + 1) Later we apply for loops to arrays. 1D chap 7, 2D chap 8 E.g. 1 D array members could be vector components or list of data values for graphing! double s[6] = 1,4,7,4.9,5.1,20.45 so s[3]=7 s[6]=? s[?]=20.45 Class? like a vector components but here 6 values rather than 3. for (int i=0; i<6; ++i) cout << s[i] << ; CLASS OUTPUT? cout << endl;

22 Matrices as 2 D arrays! How do you solve the following ( the long way and short way)? 2x -8y =9 3x +6y =4 x=? y=? Using rows and columns of numbers we create matrices and evaluate them By the determinate rules x= = = =2.389 y = = = check first equation 2 * * (-0.528) = We consider an entity that keeps track of values in rows and columns an array! So we can create a 2 Dimensional array from the above equations as or two rows and three columns each position can be referred to the by what row number and what column number the value is in in computers the first row is the 0 th row, as is the first columns the 0 th column. (math uses 1 in that case). So the the member at 0, 2 = 9 in this case, 1,2 =4 so 0,1 =? 1,0 =?

23 More Taste of 2D array with for loops! NESTED FOR LOOP. VERY IMPORTANT FOR ARRAY (MATRICES) HOW MANY TIMES DOES EACH LOOP EXECUTE & output =? For (int k=0; k<3; ++k) for (int j=0; j<2; ++j) ++ count cout <<k<< <<j<<count<<endl; CHECK OUT 1 D ARRAYS AND 2 D ARRAYS IN THE BEGINNINGS OF CHAP 7 AND CHAP 8 Welcome to Matrices: show output for the following, now in class! 2 D array ill. Int ving[3] [3] For (int k=0; k<3; ++k) for (int j=0; j<3; ++j) ving[k] [j]=k+j; cout <<ving[k] [j]<< <<; cout << endl;

24 /* Program chapter4_4 for loop (while loop would do the same!*/ /* */ /* This program prints a degree-to-radian table */ /* using a for loop structure. */ #include<iostream> // Required for setw() #include<iomanip> // Required for cout using namespace std; const double PI = ; int main() // Declare the objects. double radians; // Set formats. cout.setf(ios::fixed); cout.precision(6); // Print degrees and radians in a loop. cout << "Degrees to Radians \n"; for (int degrees = 0; degrees <= 360; degrees += 10) radians = degrees*pi / 180; If we wanted to step by 0.1 degrees would This program be ok.? How would you modify to handle steps of 0.1? cout << setw(6) << degrees << setw(10) << radians << endl; // Exit program. return 0; /* */

25 HW hand in answers to practice page 152 problems 1 to 6 MAJOR PROGRAMMING PROBLEM A STUDY of THE GLOBAL POSTIONING SYSTEM (GPS) It all started with Celestial Navigation. TYPICALLY A LOCATION CAN BE FOUND AT THE INTERSECTION OF THREE CIRCLES ON a flat map of the EARTH SINCE IF YOU KNOW THE DISTANCE(range) TO THREE REFERENCE POINTS AND CAN DRAW CIRCLES of proper size ON THE EARTH the Intersection of three such circles is our unique position. The three references on earth are where the star, or moon or Sun is directly over known As the sub point. Illustrated below are two sub points and known circular sizes Determined by a sextant instrument. Where is the possible location(s) of the observer In this case? Why is a third circle needed?

26 GPS consideration: Since satellites positioning is a three dimensional picture not a flat map as before we need the intersection of objects but spheres in 3D to find our position. The radius of a sphere is the range to the satellite and the minimum needed is 4 of them. A radio signal carrying data moving at the speed of light is broadcast to the satellite and rapidly there is received data. If you know the Time you sent the broadcast, T b and the time you received the response T r, you now know how much the round trip time called the TRANSIT TIME by taking the difference of the two times. T r -T b and since Rate x time =distance we define the range to the satellite (called the pseudorange,p) as P= (T r -T b ) C with C the speed of the radio wave which is the speed of light! Our problem to study is a part of the GPS solution (not all) as follows.

27 Problem Solving Applied: GPS Data

28 Problem Solving Applied: GPS Data

29 Problem Solving Applied: GPS Data

30 #include<iostream> //Required for cout prog 4_5! #include<cfloat> //required for DBL_MAX using namespace std; int main() //Declare and initialize objects const double C( ); //meters per second const int NUMBER_OF_SATELLITES(4); int satid, minid; double ttime, prange, minprange(dbl_max); cout << "Enter id and transit time for " //Prompt user for input << NUMBER_OF_SATELLITES << " satellites:\n" << "Use whitespace to separate the values(ie: )\n" << endl; for(int i=1; i<=number_of_satellites; ++i) cin >> satid >> ttime; prange = ttime*c; if(prange < minprange) //Check for closest satellite minprange = prange; minid = satid; cout << "Satellite " << satid << " has a pseudorange of " << prange << " m\n" << endl; //Output ID of closest satellite cout << "\nsatellite " << minid << " is closest to GPS receiver." << endl; return 0; FINDING MIN AND MAX VALUES VERY IMPORANT PROCESS NOTE TECHNIQUE

31 HAND IN PROG Run the hand example first to be sure the code Is doing the right calculations. Then DO THE THREE MODIFICATIONS ON PAGE 157 OF THE SATELLITE GPS FOUND ONLINE AS PROG 4_5

32

33 REMINDER ALWAYS ON YOUR OWN BE SURE TO DO THE PRACTICE EXERCISE IN THE SECTIONS OF THE TEXT WE COVER IN CLASS. EVEN IF I DO NOT ASK FOR THEM, I EXPECT YOU TO HAVE DONE THEM! ALSO PLEASE LET ME KNOW IF YOU FIND ERRORS IN THE TEXT AS YOU READ IF I MISS THEM. ALL WORKS WHETHER POWER POINTS OR TEXTS DO HAVE SUCH SINCE THE AUTHOR GETS BLIND TO THEIR MISTAKES.. KEEP THIS IN MIND WHEN YOU HAVE TO WRITE ENGINEERING REPORTS! (EXTRA CREDIT FOR EACH ERROR FOUND IN THE TEXT!).

34 REMINDER EFFICENT CODING COUNTS! The next two illustrations show how to efficiently make Selections in the logic of your programs. It also demonstrates how not to do it and though the poor style was Tolerated to now, it no longer will be acceptable programming. Keep the latter in mind. Not sure, ask the professor! In each illustration Int code; cin >> code;

35 If (code=10) cout << Warning Too hot, turn the system off << endl; Else if (code= 11) cout << Warning check temperature every 5 minutes << endl; else if (code =13) cout << Warning, better turn on the circulating fan << endl; else if (code=16) cout << Emergency, Abandon the building explosion imminent << endl; else cout << Normal operating range, no problems << endl; NOTE ONCE ANY CONDITION IS TRUE THE PROGRAM MOVES ON THIS IS EFFICIENT CODING. THE SYSTEM DOES NOT HAVE TO TEST ALL, ALWAYS

36 THE FOLLOWING WILL HAVE THE SAME BASIC LOGIC BUT IS VERY BAD PROGRAMMING! WHY? Such coding though tolerated is no longer acceptable! If (code=10) cout << Warning Too hot, turn the system off << endl; if (code= 11) cout << Warning check temperature every 5 minutes << endl; if (code =13) cout << Warning, better turn on the circulating fan << endl; if (code=16) cout << Emergency, Abandon the building explosion imminent << endl; else cout << Normal operating range, no problems << endl;

37 The break Statement break; terminates loop ANY LOOP IN THIS CHAPTER! execution continues with the first statement following the loop Example: What is the output? for (int i=0; i<=10; ++i) if(i%2) break; cout << i << endl;

38 The continue Statement continue; forces next iteration of the loop, skipping any remaining statements in the loop Example: What is the output? for (int i=0; i<=10; ++i) if(i%2) continue; cout << i << endl;

39 ILLUSTRATION OF BREAK AND CONTINUE sum =0; for (int i=1; i<=20; ++i) cin >>x; if(x>10) break; What is sum for if we want inputs sum = sum + x; 5,7,8,12,9,11 cout <<sum<< endl; sum =0; for (int i=1; i<=20; ++i) cin >>x; if(x>10) continue; What is sum for if we want inputs sum = sum + x; 5,7,8,12,9,11 cout <<sum<< endl;

40 Structuring Input Loops Repetition is useful when inputting data from standard input or from a file. Common repetition structures: counter-controlled we are Counting! sentinel-controlled - special value! end-of-data controlled -

41 Counter-Controlled Loops May be used for reading input data if the number of data values is known before the data are entered.

42 COUNTER CONTROL /* This programs finds the average of a set of exam scores. */ #include<iostream>//required for cin, cout using namespace std; int main() double exam_score, sum(0), average; // Declare and initialize objects. int counter; // Prompt user for input. cout << "Enter the number of exam scores to be read "; cin >> counter; cout << "Enter " << counter << " exam scores separated " << " by whitespace "; // Input exam scores using counter-controlled loop. for(int i=1; i<=counter; ++i) cin >> exam_score; sum = sum + exam_score; // Calculate average exam score. average = sum/counter; cout << counter << " students took the exam.\n"; cout << "The exam average is " << average << endl; // Exit program return 0; WHAT IS FINAL OUTPUT FOR ?

43 Sentinel-Controlled Loops May be used for reading input data if a special data value exists that can be used to indicate the end of data.

44 SENTINEL CONTROL */ /* This programs finds the average of a set of exams */ #include<iostream> //Required for cin, cout using namespace std; int main() // Declare and initialize objects. double exam_score, sum(0), average; int count(0); // Prompt user for input. cout << "Enter exam scores separated by whitespace. "; // Input exam scores using end-of-data loop. cin >> exam_score; while(exam_score>=0) what value(s) terminates the loop? sum = sum + exam_score; ++count; cin >> exam_score; // Calculate average exam score. average = sum/count; cout << count << " students took the exam.\n"; cout << "The exam average is " << average << endl; // Exit program return 0;

45 End-of-data Controlled Loops Is the most flexible for reading input data. No prior knowledge of the number of data values is required. No sentinel value is required. We use a function called cin.eof() returns 0 when special input signally end of data. This eof = end of file used here (also used in files) is system defined. Key board entry for cin.eof()! Use different ctrl + some key? to indicate no more data will be entered Our system uses ctrl z anything else will send your output to computer heaven!

46 End of Data Loop /* Program chapter4_7 */ /* This programs finds the average of a set of exam scores. */ #include<iostream> //Required for cin, cout using namespace std; int main() // Declare and initialize objects. double exam_score, sum(0), average; int count(0); // Prompt user for input. cout << "Enter exam scores separated by the enter key. "; // Input exam scores using end-of-data loop. cin >> exam_score; while(!cin.eof()) note use of! sum = sum + exam_score; ++count; note use of count here. cin >> exam_score; // Calculate average exam score. average = sum/count; cout << count << " students took the exam.\n"; cout << "The exam average is " << average << endl; // Exit program return 0;

47 RUN NOW in class A VERSION OF THE LAST program online prog4_7 study the program before you run it! Add the following exam numbers for the average What did you use to terminate the input? Run again and try something different to terminate? What is the average your program produces.

48 Problem Solving Applied: Weather Balloons Weather Balloons gather info on the atmosphere as the rise. Temperature and pressure. They are filled with helium and they rise to a Specific altitude where the upward buoyant force is balanced by gravity (equilibrium) but as the air temperature changes during the day and night the The balloon will expand and contract and rise higher and lower with air Temperature.. Thus the altitude of the balloon changes as the hours go by. alt(t)= -0.12t 4 +12t t t +220 t in hours alt in meters The velocity of the balloon is max at the start and as it ascends it will stop at Its maximum height and then the velocity changes direction as it descends to a minimum and stop there before rising again, this pattern continues. v(t)= -0.48t 3 +36t 2-760t The graph below for 48 hrs shows this situation

49 Problem statements: Weather Balloons to construct a flow chart first. User enters the following 3 items Output expected

50 Problem Solving Applied: Weather Balloons: Checking our program! We want to produce this table and its maximum alt and time to be sure We coded our program properly before going on to more time data.

51

52 Weather Balloon Project: 1. construct the flow chart for this weather balloon project to hand in with the program. You may find the GPS flowchart useful 2. Write the code and produce the table to be sure your code is tested and attach to the code as usual. 3. Run the program for the 48 hours and attach output with the maxium alt found. 4. Answer this question does your data and conclusion in 3 match the curves of alt and v given in the power points and in the text

53 HW Exam practice pages questions 1-16 to hand in.

54 -

55

QUIZ-II QUIZ-II. Chapter 5: Control Structures II (Repetition) Objectives. Objectives (cont d.) 20/11/2015. EEE 117 Computer Programming Fall-2015 1

QUIZ-II QUIZ-II. Chapter 5: Control Structures II (Repetition) Objectives. Objectives (cont d.) 20/11/2015. EEE 117 Computer Programming Fall-2015 1 QUIZ-II Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed. It should then output the numbers, the operator, and the result. (For

More information

While Loop. 6. Iteration

While Loop. 6. Iteration While Loop 1 Loop - a control structure that causes a set of statements to be executed repeatedly, (reiterated). While statement - most versatile type of loop in C++ false while boolean expression true

More information

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language

Simple C++ Programs. Engineering Problem Solving with C++, Etter/Ingber. Dev-C++ Dev-C++ Windows Friendly Exit. The C++ Programming Language Simple C++ Programs Engineering Problem Solving with C++, Etter/Ingber Chapter 2 Simple C++ Programs Program Structure Constants and Variables C++ Operators Standard Input and Output Basic Functions from

More information

9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements

9 Control Statements. 9.1 Introduction. 9.2 Objectives. 9.3 Statements 9 Control Statements 9.1 Introduction The normal flow of execution in a high level language is sequential, i.e., each statement is executed in the order of its appearance in the program. However, depending

More information

Chapter One Introduction to Programming

Chapter One Introduction to Programming Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of

More information

An Incomplete C++ Primer. University of Wyoming MA 5310

An Incomplete C++ Primer. University of Wyoming MA 5310 An Incomplete C++ Primer University of Wyoming MA 5310 Professor Craig C. Douglas http://www.mgnet.org/~douglas/classes/na-sc/notes/c++primer.pdf C++ is a legacy programming language, as is other languages

More information

What is a Loop? Pretest Loops in C++ Types of Loop Testing. Count-controlled loops. Loops can be...

What is a Loop? Pretest Loops in C++ Types of Loop Testing. Count-controlled loops. Loops can be... What is a Loop? CSC Intermediate Programming Looping A loop is a repetition control structure It causes a single statement or a group of statements to be executed repeatedly It uses a condition to control

More information

The While Loop. Objectives. Textbook. WHILE Loops

The While Loop. Objectives. Textbook. WHILE Loops Objectives The While Loop 1E3 Topic 6 To recognise when a WHILE loop is needed. To be able to predict what a given WHILE loop will do. To be able to write a correct WHILE loop. To be able to use a WHILE

More information

Sources: On the Web: Slides will be available on:

Sources: On the Web: Slides will be available on: C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,

More information

Physics Kinematics Model

Physics Kinematics Model Physics Kinematics Model I. Overview Active Physics introduces the concept of average velocity and average acceleration. This unit supplements Active Physics by addressing the concept of instantaneous

More information

Flowchart Techniques

Flowchart Techniques C H A P T E R 1 Flowchart Techniques 1.1 Programming Aids Programmers use different kinds of tools or aids which help them in developing programs faster and better. Such aids are studied in the following

More information

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 3: Input/Output

C++ Programming: From Problem Analysis to Program Design, Fifth Edition. Chapter 3: Input/Output C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 3: Input/Output Objectives In this chapter, you will: Learn what a stream is and examine input and output streams Explore

More information

C++ Input/Output: Streams

C++ Input/Output: Streams C++ Input/Output: Streams 1 The basic data type for I/O in C++ is the stream. C++ incorporates a complex hierarchy of stream types. The most basic stream types are the standard input/output streams: istream

More information

Lecture 2 Notes: Flow of Control

Lecture 2 Notes: Flow of Control 6.096 Introduction to C++ January, 2011 Massachusetts Institute of Technology John Marrero Lecture 2 Notes: Flow of Control 1 Motivation Normally, a program executes statements from first to last. The

More information

Microsoft Excel Tutorial

Microsoft Excel Tutorial Microsoft Excel Tutorial by Dr. James E. Parks Department of Physics and Astronomy 401 Nielsen Physics Building The University of Tennessee Knoxville, Tennessee 37996-1200 Copyright August, 2000 by James

More information

ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013)

ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013) ChE-1800 H-2: Flowchart Diagrams (last updated January 13, 2013) This handout contains important information for the development of flowchart diagrams Common Symbols for Algorithms The first step before

More information

Exam 1 Review Questions PHY 2425 - Exam 1

Exam 1 Review Questions PHY 2425 - Exam 1 Exam 1 Review Questions PHY 2425 - Exam 1 Exam 1H Rev Ques.doc - 1 - Section: 1 7 Topic: General Properties of Vectors Type: Conceptual 1 Given vector A, the vector 3 A A) has a magnitude 3 times that

More information

Appendix K Introduction to Microsoft Visual C++ 6.0

Appendix K Introduction to Microsoft Visual C++ 6.0 Appendix K Introduction to Microsoft Visual C++ 6.0 This appendix serves as a quick reference for performing the following operations using the Microsoft Visual C++ integrated development environment (IDE):

More information

UEE1302 (1102) F10 Introduction to Computers and Programming

UEE1302 (1102) F10 Introduction to Computers and Programming Computational Intelligence on Automation Lab @ NCTU UEE1302 (1102) F10 Introduction to Computers and Programming Programming Lecture 03 Flow of Control (Part II): Repetition while,for & do..while Learning

More information

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.

Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program. Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to

More information

WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math

WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math Textbook Correlation WESTMORELAND COUNTY PUBLIC SCHOOLS 2011 2012 Integrated Instructional Pacing Guide and Checklist Computer Math Following Directions Unit FIRST QUARTER AND SECOND QUARTER Logic Unit

More information

Sequential Program Execution

Sequential Program Execution Sequential Program Execution Quick Start Compile step once always g++ -o Realtor1 Realtor1.cpp mkdir labs cd labs Execute step mkdir 1 Realtor1 cd 1 cp../0/realtor.cpp Realtor1.cpp Submit step cp /samples/csc/155/labs/1/*.

More information

Random Fibonacci-type Sequences in Online Gambling

Random Fibonacci-type Sequences in Online Gambling Random Fibonacci-type Sequences in Online Gambling Adam Biello, CJ Cacciatore, Logan Thomas Department of Mathematics CSUMS Advisor: Alfa Heryudono Department of Mathematics University of Massachusetts

More information

JavaScript: Control Statements I

JavaScript: Control Statements I 1 7 JavaScript: Control Statements I 7.1 Introduction 2 The techniques you will learn here are applicable to most high-level languages, including JavaScript 1 7.2 Algorithms 3 Any computable problem can

More information

CS100B Fall 1999. Professor David I. Schwartz. Programming Assignment 5. Due: Thursday, November 18 1999

CS100B Fall 1999. Professor David I. Schwartz. Programming Assignment 5. Due: Thursday, November 18 1999 CS100B Fall 1999 Professor David I. Schwartz Programming Assignment 5 Due: Thursday, November 18 1999 1. Goals This assignment will help you develop skills in software development. You will: develop software

More information

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine Blender Notes Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine The Blender Game Engine This week we will have an introduction to the Game Engine build

More information

Basics of I/O Streams and File I/O

Basics of I/O Streams and File I/O Basics of This is like a cheat sheet for file I/O in C++. It summarizes the steps you must take to do basic I/O to and from files, with only a tiny bit of explanation. It is not a replacement for reading

More information

Name: Earth 110 Exploration of the Solar System Assignment 1: Celestial Motions and Forces Due in class Tuesday, Jan. 20, 2015

Name: Earth 110 Exploration of the Solar System Assignment 1: Celestial Motions and Forces Due in class Tuesday, Jan. 20, 2015 Name: Earth 110 Exploration of the Solar System Assignment 1: Celestial Motions and Forces Due in class Tuesday, Jan. 20, 2015 Why are celestial motions and forces important? They explain the world around

More information

Chapter 3.8 & 6 Solutions

Chapter 3.8 & 6 Solutions Chapter 3.8 & 6 Solutions P3.37. Prepare: We are asked to find period, speed and acceleration. Period and frequency are inverses according to Equation 3.26. To find speed we need to know the distance traveled

More information

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013

CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 Oct 4, 2013, p 1 Name: CS 141: Introduction to (Java) Programming: Exam 1 Jenny Orr Willamette University Fall 2013 1. (max 18) 4. (max 16) 2. (max 12) 5. (max 12) 3. (max 24) 6. (max 18) Total: (max 100)

More information

State Newton's second law of motion for a particle, defining carefully each term used.

State Newton's second law of motion for a particle, defining carefully each term used. 5 Question 1. [Marks 28] An unmarked police car P is, travelling at the legal speed limit, v P, on a straight section of highway. At time t = 0, the police car is overtaken by a car C, which is speeding

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Business Objects. Report Writing - CMS Net and CCS Claims

Business Objects. Report Writing - CMS Net and CCS Claims Business Objects Report Writing - CMS Net and CCS Claims Updated 11/28/2012 1 Introduction/Background... 4 Report Writing (Ad-Hoc)... 4 Requesting Report Writing Access... 4 Java Version... 4 Create A

More information

Curriculum Map. Discipline: Computer Science Course: C++

Curriculum Map. Discipline: Computer Science Course: C++ Curriculum Map Discipline: Computer Science Course: C++ August/September: How can computer programs make problem solving easier and more efficient? In what order does a computer execute the lines of code

More information

ASCII Encoding. The char Type. Manipulating Characters. Manipulating Characters

ASCII Encoding. The char Type. Manipulating Characters. Manipulating Characters The char Type ASCII Encoding The C char type stores small integers. It is usually 8 bits. char variables guaranteed to be able to hold integers 0.. +127. char variables mostly used to store characters

More information

Regression Clustering

Regression Clustering Chapter 449 Introduction This algorithm provides for clustering in the multiple regression setting in which you have a dependent variable Y and one or more independent variables, the X s. The algorithm

More information

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON

PROBLEM SOLVING SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON PROBLEM SOLVING WITH SEVENTH EDITION WALTER SAVITCH UNIVERSITY OF CALIFORNIA, SAN DIEGO CONTRIBUTOR KENRICK MOCK UNIVERSITY OF ALASKA, ANCHORAGE PEARSON Addison Wesley Boston San Francisco New York London

More information

Practice Test SHM with Answers

Practice Test SHM with Answers Practice Test SHM with Answers MPC 1) If we double the frequency of a system undergoing simple harmonic motion, which of the following statements about that system are true? (There could be more than one

More information

Beginner s Matlab Tutorial

Beginner s Matlab Tutorial Christopher Lum lum@u.washington.edu Introduction Beginner s Matlab Tutorial This document is designed to act as a tutorial for an individual who has had no prior experience with Matlab. For any questions

More information

2After completing this chapter you should be able to

2After completing this chapter you should be able to After completing this chapter you should be able to solve problems involving motion in a straight line with constant acceleration model an object moving vertically under gravity understand distance time

More information

Computer Science 1 CSci 1100 Lecture 3 Python Functions

Computer Science 1 CSci 1100 Lecture 3 Python Functions Reading Computer Science 1 CSci 1100 Lecture 3 Python Functions Most of this is covered late Chapter 2 in Practical Programming and Chapter 3 of Think Python. Chapter 6 of Think Python goes into more detail,

More information

Informatica e Sistemi in Tempo Reale

Informatica e Sistemi in Tempo Reale Informatica e Sistemi in Tempo Reale Introduction to C programming Giuseppe Lipari http://retis.sssup.it/~lipari Scuola Superiore Sant Anna Pisa October 25, 2010 G. Lipari (Scuola Superiore Sant Anna)

More information

CHAPTER 6 WORK AND ENERGY

CHAPTER 6 WORK AND ENERGY CHAPTER 6 WORK AND ENERGY CONCEPTUAL QUESTIONS. REASONING AND SOLUTION The work done by F in moving the box through a displacement s is W = ( F cos 0 ) s= Fs. The work done by F is W = ( F cos θ). s From

More information

ALGORITHMS AND FLOWCHARTS

ALGORITHMS AND FLOWCHARTS ALGORITHMS AND FLOWCHARTS A typical programming task can be divided into two phases: Problem solving phase produce an ordered sequence of steps that describe solution of problem this sequence of steps

More information

Microsoft Access 2010 Overview of Basics

Microsoft Access 2010 Overview of Basics Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create

More information

Microsoft Access 2010 handout

Microsoft Access 2010 handout Microsoft Access 2010 handout Access 2010 is a relational database program you can use to create and manage large quantities of data. You can use Access to manage anything from a home inventory to a giant

More information

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459)

Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Management Information Systems 260 Web Programming Fall 2006 (CRN: 42459) Class Time: 6:00 8:05 p.m. (T,Th) Venue: WSL 5 Web Site: www.pbvusd.net/mis260 Instructor Name: Terrell Tucker Office: BDC 127

More information

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms

PROG0101 Fundamentals of Programming PROG0101 FUNDAMENTALS OF PROGRAMMING. Chapter 3 Algorithms PROG0101 FUNDAMENTALS OF PROGRAMMING Chapter 3 1 Introduction to A sequence of instructions. A procedure or formula for solving a problem. It was created mathematician, Mohammed ibn-musa al-khwarizmi.

More information

Optimism for Mental Health

Optimism for Mental Health 1.2.0 Optimism Apps Pty Ltd 2008-2010. All Rights Reserved. Table of Contents About Optimism... 1 Introduction... 1 Software Assumptions... 1 Overview of the Record Screen... 2 Choosing a Day... 3 Using

More information

Two-way selection. Branching and Looping

Two-way selection. Branching and Looping Control Structures: are those statements that decide the order in which individual statements or instructions of a program are executed or evaluated. Control Structures are broadly classified into: 1.

More information

Work, Energy and Power Practice Test 1

Work, Energy and Power Practice Test 1 Name: ate: 1. How much work is required to lift a 2-kilogram mass to a height of 10 meters?. 5 joules. 20 joules. 100 joules. 200 joules 5. ar and car of equal mass travel up a hill. ar moves up the hill

More information

Getting Started with Excel 2008. Table of Contents

Getting Started with Excel 2008. Table of Contents Table of Contents Elements of An Excel Document... 2 Resizing and Hiding Columns and Rows... 3 Using Panes to Create Spreadsheet Headers... 3 Using the AutoFill Command... 4 Using AutoFill for Sequences...

More information

5. Unable to determine. 6. 4 m correct. 7. None of these. 8. 1 m. 9. 1 m. 10. 2 m. 1. 1 m/s. 2. None of these. 3. Unable to determine. 4.

5. Unable to determine. 6. 4 m correct. 7. None of these. 8. 1 m. 9. 1 m. 10. 2 m. 1. 1 m/s. 2. None of these. 3. Unable to determine. 4. Version PREVIEW B One D Kine REVIEW burke (1111) 1 This print-out should have 34 questions. Multiple-choice questions may continue on the next column or page find all choices before answering. Jogging

More information

FREE FALL. Introduction. Reference Young and Freedman, University Physics, 12 th Edition: Chapter 2, section 2.5

FREE FALL. Introduction. Reference Young and Freedman, University Physics, 12 th Edition: Chapter 2, section 2.5 Physics 161 FREE FALL Introduction This experiment is designed to study the motion of an object that is accelerated by the force of gravity. It also serves as an introduction to the data analysis capabilities

More information

State Newton's second law of motion for a particle, defining carefully each term used.

State Newton's second law of motion for a particle, defining carefully each term used. 5 Question 1. [Marks 20] An unmarked police car P is, travelling at the legal speed limit, v P, on a straight section of highway. At time t = 0, the police car is overtaken by a car C, which is speeding

More information

Data representation and analysis in Excel

Data representation and analysis in Excel Page 1 Data representation and analysis in Excel Let s Get Started! This course will teach you how to analyze data and make charts in Excel so that the data may be represented in a visual way that reflects

More information

Chapter 5: Circular Motion, the Planets, and Gravity

Chapter 5: Circular Motion, the Planets, and Gravity Chapter 5: Circular Motion, the Planets, and Gravity 1. Earth s gravity attracts a person with a force of 120 lbs. The force with which the Earth is attracted towards the person is A. Zero. B. Small but

More information

Lateral Acceleration. Chris Garner

Lateral Acceleration. Chris Garner Chris Garner Forward Acceleration Forward acceleration is easy to quantify and understand. Forward acceleration is simply the rate of change in speed. In car terms, the quicker the car accelerates, the

More information

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection

More information

Solutions to old Exam 1 problems

Solutions to old Exam 1 problems Solutions to old Exam 1 problems Hi students! I am putting this old version of my review for the first midterm review, place and time to be announced. Check for updates on the web site as to which sections

More information

Passing 1D arrays to functions.

Passing 1D arrays to functions. Passing 1D arrays to functions. In C++ arrays can only be reference parameters. It is not possible to pass an array by value. Therefore, the ampersand (&) is omitted. What is actually passed to the function,

More information

I PUC - Computer Science. Practical s Syllabus. Contents

I PUC - Computer Science. Practical s Syllabus. Contents I PUC - Computer Science Practical s Syllabus Contents Topics 1 Overview Of a Computer 1.1 Introduction 1.2 Functional Components of a computer (Working of each unit) 1.3 Evolution Of Computers 1.4 Generations

More information

Rows & Columns. Workbooks & Worksheets

Rows & Columns. Workbooks & Worksheets + O + N + P + S F12 + W + Q Esc + C + X + V + Z + Y + A + F Ctrl + H + Tab +, + Y The Fundamentals + Option + R Open File New File Print Save File Save File As Close File Close Excel Exit Dialog Copy Cut

More information

Contact Center Anywhere: Supervision Manager (SM) Overview

Contact Center Anywhere: Supervision Manager (SM) Overview Contact Center Anywhere: Supervision Manager (SM) Overview Supervision Manager Overview The majority of all Call Center expenses revolve around people. The ability to more effectively manage the people

More information

Compiler Construction

Compiler Construction Compiler Construction Regular expressions Scanning Görel Hedin Reviderad 2013 01 23.a 2013 Compiler Construction 2013 F02-1 Compiler overview source code lexical analysis tokens intermediate code generation

More information

Name Class Date. true

Name Class Date. true Exercises 131 The Falling Apple (page 233) 1 Describe the legend of Newton s discovery that gravity extends throughout the universe According to legend, Newton saw an apple fall from a tree and realized

More information

Lecture 3. Arrays. Name of array. c[0] c[1] c[2] c[3] c[4] c[5] c[6] c[7] c[8] c[9] c[10] c[11] Position number of the element within array c

Lecture 3. Arrays. Name of array. c[0] c[1] c[2] c[3] c[4] c[5] c[6] c[7] c[8] c[9] c[10] c[11] Position number of the element within array c Lecture 3 Data structures arrays structs C strings: array of chars Arrays as parameters to functions Multiple subscripted arrays Structs as parameters to functions Default arguments Inline functions Redirection

More information

Common Beginner C++ Programming Mistakes

Common Beginner C++ Programming Mistakes Common Beginner C++ Programming Mistakes This documents some common C++ mistakes that beginning programmers make. These errors are two types: Syntax errors these are detected at compile time and you won't

More information

Chapter 7: Software Development Stages Test your knowledge - answers

Chapter 7: Software Development Stages Test your knowledge - answers Chapter 7: Software Development Stages Test your knowledge - answers 1. What is meant by constraints and limitations on program design? Constraints and limitations are based on such items as operational,

More information

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0 VISUAL GUIDE to RX Scripting for Roulette Xtreme - System Designer 2.0 UX Software - 2009 TABLE OF CONTENTS INTRODUCTION... ii What is this book about?... iii How to use this book... iii Time to start...

More information

Lesson 2.15: Physical Science Speed, Velocity & Acceleration

Lesson 2.15: Physical Science Speed, Velocity & Acceleration Weekly Focus: Reading for Comprehension Weekly Skill: Numeracy Skills in Science Lesson Summary: This week students will continue reading for comprehension with reading passages on speed, velocity, and

More information

OX Spreadsheet Product Guide

OX Spreadsheet Product Guide OX Spreadsheet Product Guide Open-Xchange February 2014 2014 Copyright Open-Xchange Inc. OX Spreadsheet Product Guide This document is the intellectual property of Open-Xchange Inc. The document may be

More information

USC Marshall School of Business Marshall Information Services

USC Marshall School of Business Marshall Information Services USC Marshall School of Business Marshall Information Services Excel Dashboards and Reports The goal of this workshop is to create a dynamic "dashboard" or "Report". A partial image of what we will be creating

More information

Lab 2: Swat ATM (Machine (Machine))

Lab 2: Swat ATM (Machine (Machine)) Lab 2: Swat ATM (Machine (Machine)) Due: February 19th at 11:59pm Overview The goal of this lab is to continue your familiarization with the C++ programming with Classes, as well as preview some data structures.

More information

Inertia, Forces, and Acceleration: The Legacy of Sir Isaac Newton

Inertia, Forces, and Acceleration: The Legacy of Sir Isaac Newton Inertia, Forces, and Acceleration: The Legacy of Sir Isaac Newton Position is a Vector Compare A A ball is 12 meters North of the Sun God to A A ball is 10 meters from here A vector has both a direction

More information

9. The kinetic energy of the moving object is (1) 5 J (3) 15 J (2) 10 J (4) 50 J

9. The kinetic energy of the moving object is (1) 5 J (3) 15 J (2) 10 J (4) 50 J 1. If the kinetic energy of an object is 16 joules when its speed is 4.0 meters per second, then the mass of the objects is (1) 0.5 kg (3) 8.0 kg (2) 2.0 kg (4) 19.6 kg Base your answers to questions 9

More information

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide Open Crystal Reports From the Windows Start menu choose Programs and then Crystal Reports. Creating a Blank Report Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick

More information

The C++ Language. Loops. ! Recall that a loop is another of the four basic programming language structures

The C++ Language. Loops. ! Recall that a loop is another of the four basic programming language structures The C++ Language Loops Loops! Recall that a loop is another of the four basic programming language structures Repeat statements until some condition is false. Condition False True Statement1 2 1 Loops

More information

Monitoring Software using Sun Spots. Corey Andalora February 19, 2008

Monitoring Software using Sun Spots. Corey Andalora February 19, 2008 Monitoring Software using Sun Spots Corey Andalora February 19, 2008 Abstract Sun has developed small devices named Spots designed to provide developers familiar with the Java programming language a platform

More information

HELP CONTENTS INTRODUCTION...

HELP CONTENTS INTRODUCTION... HELP CONTENTS INTRODUCTION... 1 What is GMATPrep... 1 GMATPrep tip: to get the most from GMATPrep software, think about how you study best... 1 Navigating around... 2 The top navigation... 2 Breadcrumbs,

More information

Physics Notes Class 11 CHAPTER 3 MOTION IN A STRAIGHT LINE

Physics Notes Class 11 CHAPTER 3 MOTION IN A STRAIGHT LINE 1 P a g e Motion Physics Notes Class 11 CHAPTER 3 MOTION IN A STRAIGHT LINE If an object changes its position with respect to its surroundings with time, then it is called in motion. Rest If an object

More information

SPEED, VELOCITY, AND ACCELERATION

SPEED, VELOCITY, AND ACCELERATION reflect Look at the picture of people running across a field. What words come to mind? Maybe you think about the word speed to describe how fast the people are running. You might think of the word acceleration

More information

http://school-maths.com Gerrit Stols

http://school-maths.com Gerrit Stols For more info and downloads go to: http://school-maths.com Gerrit Stols Acknowledgements GeoGebra is dynamic mathematics open source (free) software for learning and teaching mathematics in schools. It

More information

Basic Excel Handbook

Basic Excel Handbook 2 5 2 7 1 1 0 4 3 9 8 1 Basic Excel Handbook Version 3.6 May 6, 2008 Contents Contents... 1 Part I: Background Information...3 About This Handbook... 4 Excel Terminology... 5 Excel Terminology (cont.)...

More information

Physics: Principles and Applications, 6e Giancoli Chapter 2 Describing Motion: Kinematics in One Dimension

Physics: Principles and Applications, 6e Giancoli Chapter 2 Describing Motion: Kinematics in One Dimension Physics: Principles and Applications, 6e Giancoli Chapter 2 Describing Motion: Kinematics in One Dimension Conceptual Questions 1) Suppose that an object travels from one point in space to another. Make

More information

2-1 Position, Displacement, and Distance

2-1 Position, Displacement, and Distance 2-1 Position, Displacement, and Distance In describing an object s motion, we should first talk about position where is the object? A position is a vector because it has both a magnitude and a direction:

More information

Gas Dynamics Prof. T. M. Muruganandam Department of Aerospace Engineering Indian Institute of Technology, Madras. Module No - 12 Lecture No - 25

Gas Dynamics Prof. T. M. Muruganandam Department of Aerospace Engineering Indian Institute of Technology, Madras. Module No - 12 Lecture No - 25 (Refer Slide Time: 00:22) Gas Dynamics Prof. T. M. Muruganandam Department of Aerospace Engineering Indian Institute of Technology, Madras Module No - 12 Lecture No - 25 Prandtl-Meyer Function, Numerical

More information

Studying Topography, Orographic Rainfall, and Ecosystems (STORE)

Studying Topography, Orographic Rainfall, and Ecosystems (STORE) Studying Topography, Orographic Rainfall, and Ecosystems (STORE) Basic Lesson 3: Using Microsoft Excel to Analyze Weather Data: Topography and Temperature Introduction This lesson uses NCDC data to compare

More information

8. As a cart travels around a horizontal circular track, the cart must undergo a change in (1) velocity (3) speed (2) inertia (4) weight

8. As a cart travels around a horizontal circular track, the cart must undergo a change in (1) velocity (3) speed (2) inertia (4) weight 1. What is the average speed of an object that travels 6.00 meters north in 2.00 seconds and then travels 3.00 meters east in 1.00 second? 9.00 m/s 3.00 m/s 0.333 m/s 4.24 m/s 2. What is the distance traveled

More information

Welcome to Physics 40!

Welcome to Physics 40! Welcome to Physics 40! Physics for Scientists and Engineers Lab 1: Introduction to Measurement SI Quantities & Units In mechanics, three basic quantities are used Length, Mass, Time Will also use derived

More information

Chapter 6 Work and Energy

Chapter 6 Work and Energy Chapter 6 WORK AND ENERGY PREVIEW Work is the scalar product of the force acting on an object and the displacement through which it acts. When work is done on or by a system, the energy of that system

More information

MICROSOFT ACCESS STEP BY STEP GUIDE

MICROSOFT ACCESS STEP BY STEP GUIDE IGCSE ICT SECTION 11 DATA MANIPULATION MICROSOFT ACCESS STEP BY STEP GUIDE Mark Nicholls ICT Lounge P a g e 1 Contents Task 35 details Page 3 Opening a new Database. Page 4 Importing.csv file into the

More information

Problem Solving Basics and Computer Programming

Problem Solving Basics and Computer Programming Problem Solving Basics and Computer Programming A programming language independent companion to Roberge/Bauer/Smith, "Engaged Learning for Programming in C++: A Laboratory Course", Jones and Bartlett Publishers,

More information

Lecture 2 Mathcad Basics

Lecture 2 Mathcad Basics Operators Lecture 2 Mathcad Basics + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority

More information

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query.

Applying a circular load. Immediate and consolidation settlement. Deformed contours. Query points and query lines. Graph query. Quick Start Tutorial 1-1 Quick Start Tutorial This quick start tutorial will cover some of the basic features of Settle3D. A circular load is applied to a single soil layer and settlements are examined.

More information

Physics 2A, Sec B00: Mechanics -- Winter 2011 Instructor: B. Grinstein Final Exam

Physics 2A, Sec B00: Mechanics -- Winter 2011 Instructor: B. Grinstein Final Exam Physics 2A, Sec B00: Mechanics -- Winter 2011 Instructor: B. Grinstein Final Exam INSTRUCTIONS: Use a pencil #2 to fill your scantron. Write your code number and bubble it in under "EXAM NUMBER;" an entry

More information

The Payroll Program. Payroll

The Payroll Program. Payroll The Program 1 The following example is a simple payroll program that illustrates most of the core elements of the C++ language covered in sections 3 through 6 of the course notes. During the term, a formal

More information