January 24 In-Class Exercise
Solution Discussion
Statement or Not?
1. The greatest common divisor (GCD) of 305 and 735 is 21.
A. Yes B. No
2. It probably will rain today.
A. Yes B. No
Translate into symbolic notation
Symbols
A: Interest rates
Applied Computer Science
Mr. Neat
Class Rules
Dear Students, Parents/Guardians,
Thank you for your interest in this class. Computer programming is exciting and I look forward to our
adventures together. I take the AP distinction seriously and teach the cl
How Do Computers
Count?
Mr. Neat
Java
11-12
Counting in Base 10
0
1
2
3
4
5
6
7
8
9
10
11
12
.
.
12
tens digit
= 1x10 + 2x1
ones digit
Counting in Base 10
How do you write out 1,324 in base 10?
Base 10 Digits
10000
1000
100
10
1
104
103
102
101
100
Counti
class starter cfw_
public static void main(String args[])
cfw_
System.out.println("I love second period.");
System.out.println("My next favorite time is lunch.");
System.out.println("Then I wait for the 6th period bell to ring.");
System.out.print("
*");
CALIFORNIA STATE POLYTECHNIC UNIVERSITY
Department of Computer Science
CS210
N.D.
HWK5
Problems:
1. Simplify the following Boolean expression using K-Map.
F(A,B,C,D) = ABCD + ACD + AC D + AC
2. Simplify the following Boolean expression using K-Map and sho
CS 130.02
MATHEMATICAL STRUCTURES
FOR COMPUTER SCIENCE
Homework #1 Solutions
Exercise 1.1
1. Which of the following sentences are statements?
c. Two is a prime number.
e. Next Year interest rates will rise.
g.x^2-4 =0.
Exercise 1.1
3. Given the truth valu
CS 130 Mathematical Structures
For Computer Science
HomeWork #2 Questions
Exercise 1.3
1. What is the truth value of each of the following wffs in the
interpretation where the domain consists of the integers, O(x) is "x is
odd" L(x) is "x<10," and G(x) is
CS130Mathematical Structures
For Computer Sciences
Homework Questions #3
Exercises 2.1
3. Provide Counter examples to the following statements.
a. Every geometric figure with four right angles in a square.
b. If a real number is not positive, then it must
Homework #2 Suggested Solution
Section 2.1, Exercise 3
(not homework problem, just for review) Provide Counterexamples to the following statement
Every geometric figure with four angles is a square
Counterexample: a rectangle
If a real number
HW #6
Joshua Brooks
3.3
Ex:4
A= 28, B=17, C=13, 40=28+17+13-23+a = 5 with 3 defects
Ex: 8
A.
B, 73-69 =4, 69+114+4 =187, 189-187 =2 customers without a savings
EX:12
a. 2 =50 and 5= 20, 2 and 5 =10, so 60
b. 40
Ex:17
There are 4 suits so 5 cards need to b
Joshua Brooks
CS130.02
HW#2
NOTE: x is all, just cant find the right symbol on the computer.
1.3
1. The truth value is True.
1b. The truth value is False
7. All circles are round
7a. C: Something that isnt round cant be a circle.
9d. (x)(D(x)/\ (x)(S(x)
9
Hw5
Josh Brooks
3.1
EX: 11
A. T
c. F
d. T
f. F
g. T
EX: 26
S=cfw_A,(a),cfw_b,cfw_a,b,cfw_a,a,b,cfw_b,b,a
Ex:38
a.cfw_t
b.cfw_p,q,r,s,r,t,v
d.cfw_r,t
e.cfw_r,v
g.
Ex:50
b.
d.
g.
j.
Ex: 57
If
then we say it = A+B. A+B does = AuB therefore by contradiction
A
Joshua Brooks
CS 130.02 HW#1
1.1:EX 6
A: The carton is sealed or the milk is sour.
2. The carton is not sealed and also the milk is not sour.
B: Flowers will bloom only if it rains.
2. The flowers will not bloom and it will not rain.
3. The flowers will n
CS130-02 Group Exercises #1 (20 points)
Due Date: see blackboard assignment.
First, form a group of 2-3 members (3 preferred, 4 with instructors approval.) Post a thread on
blackboard Discussion Board under the forum of Group Formation with a group name a