CS150 Introduction to Computer Science 1

Slides:



Advertisements
Similar presentations
CS107 Introduction to Computer Science Lecture 3, 4 An Introduction to Algorithms: Loops.
Advertisements

Test practice Multiplication. Multiplication 9x2.
Georgia Department of Education. Information Technology Pathways.
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 10/16/06CS150 Introduction to Computer Science 1 switch Selection Structure.
1 9/29/06CS150 Introduction to Computer Science 1 Loops Section Page 255.
1 9/24/07CS150 Introduction to Computer Science 1 Relational Operators and the If Statement.
1 9/26/08CS150 Introduction to Computer Science 1 Logical Operators and if/else statement.
1 9/28/07CS150 Introduction to Computer Science 1 Loops section 5.2, 5.4, 5.7.
1 10/20/08CS150 Introduction to Computer Science 1 do/while and Nested Loops Section 5.5 & 5.11.
1 10/11/06CS150 Introduction to Computer Science 1 do/while and Nested Loops.
1 11/27/06CS150 Introduction to Computer Science 1 Searching Arrays.
1 10/9/06CS150 Introduction to Computer Science 1 for Loops.
1 9/25/06CS150 Introduction to Computer Science 1 Nested Ifs, Logical Operators, exit() Page 194.
1 CS150 Introduction to Computer Science 1 Relational Operators and the If Statement 9/22/08.
The If/Else Statement, Boolean Flags, and Menus Page 180
Chapter 4 MATLAB Programming Logical Structures Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 9/28/07CS150 Introduction to Computer Science 1 Logical Operators and if/else statement.
computer
1 09/20/04CS150 Introduction to Computer Science 1 Let ’ s all Repeat Together.
MULTIPLE ALTERNATIVES IF… THEN… ELSEIF SELECT CASE.
If Statements If statements: allow the computer to make a decision Syntax: if (some condition) { then do this; } else { then do that; } no semicolons on.
1 09/15/04CS150 Introduction to Computer Science 1 Life is Full of Alternatives Part 2.
111/18/2015CS150 Introduction to Computer Science 1 Announcements  I have not graded your exam yet.
Shapes What do we know about shapes? Kindergarten Science K.4b B. Mulligan, PES, 7/10/07.
Simplify. 2(r+ 1) -r. Solve. 7x + 2x = 45 Solve. t/4 + t/3 = 7/12.
Branching ACO101: Introduction to Computer Science.
1 CS161 Introduction to Computer Science Topic #8.
COMP 400: Technical Communication in Computer Science John Greiner.
1 9/26/05CS150 Introduction to Computer Science 1 Life is Full of Alternatives.
Reflections. Starter Objective: Recap on vertical & horizontal lines.
PHP-language, conditional statements
Decision making If.. else statement.
Introduction to Programming
Review Materials I (T) Subject : T0016 – ALGORITHM AND PROGRAMMING
AP Computer Science Practice Exam
Visual Basic I Programming
Chapter 4 MATLAB Programming
Chapter 4: Decision Structures and Boolean Logic
CS150 Introduction to Computer Science 1
For Monday Read WebCT quiz 18.
Topics discussed in this section:
Unary Operators ++ and --
Introduction to Computer Graphics with WebGL
CS 456 Interactive Software.
Student Feedback on Robotics in CS1 The Fleet!
Types, Truth, and Expressions (Part 2)
Chapter 4: Decision Structures and Boolean Logic
For Wednesday No new reading No quiz.
1.) ) ) 62° a b c a b 49° c b a 58° 4.) ) ) 96° 44° b 85° 63° a c b a
Decision making If statement.
Similar Figures.
Department of Computer Science & Engineering, HITEC University, Taxila
Topics discussed in this section:
Let’s all Repeat Together
CS150 Introduction to Computer Science 1
Life is Full of Alternatives
Understanding Conditions
CS2011 Introduction to Programming I Selections (I)
Selection Structures: Single-alternative
CS150 Introduction to Computer Science 1
CS150 Introduction to Computer Science 1
Unit 2 (Reading) F 2015 Unit 2 (Reading) H 2015
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
Chapter 3: Selection Structures: Making Decisions
AP CS Be able to fix a program written in Java
Chapter 4: Decision Structures and Boolean Logic
Life is Full of Alternatives Part 3
Agenda Warmup Review Finish 1.2 Assignments Lesson 1.3 (If Statements)
Presentation transcript:

CS150 Introduction to Computer Science 1 Program Write a program that computes the area of a triangle or a rectangle based on the user typing in ‘t’ or ‘r’ first. 4/30/2019 CS150 Introduction to Computer Science 1

Multiple Alternative Ifs if (condition1) statement1; else if (condition2) statement2; … else defaultstatement; 4/30/2019 CS150 Introduction to Computer Science 1

CS150 Introduction to Computer Science 1 Program Write a program that displays a letter grade corresponding to an exam score 90 - 100 A 80 - 89 B 70 - 79 C 60 - 69 D 0-59 F 4/30/2019 CS150 Introduction to Computer Science 1