25) Specify a modular design for the problem statement below. Include the following in your design specification:
A Computer Assisted Math software system supports Drill and Practice instruction mode. The system generates basic math problems involving
ope
Notes and Comments sheet
While(!exit)
This just means while NOT true. In this case, while exit is NOT true. Meaning while exit is FALSE.
So if you do if(!realNumber) then do X that means do X when realNumber is NOT true. This is the same thing as do
X if
Math 401
Infinite Series Challenge
Name:_
Show all work and enjoy!
Problem 1 Determine whether each series converges or diverges and be sure to explain, which tests you
are using to make these determinations.
I
k 1
1
3
k 2 1
VII
1
cos
n
n 1
VIII
1
n
n 2
Exam 1 - MW
Physics 410
Fall 2014
Show all your work on the exam pages. Partial credit can only be given if you show your work
and I am able to follow it. Correct answers with no work shown receive no partial credit. The
point value for each problem is gi
Class
- Is a type
- Create a user defined type
- Long:Long
- Tells which class these things (functions) belong to
- Private
- Private Member Functions
- Public
- Is the user interface for everything the user needs to use your type (class)
- A member funct
Math 410: Assignment 6
Please show all work. Good luck.
1) W is not s subspace of the given vector space V. Verify this by giving a specific
example that violates the test for a vector subspace.
W is the set of all vectors in R 3 whose third component is
Arrays:
- Has to be all of the same type
1D = arrayName[row]
2D = arrayName[row][column]
3D = arrayName[plane][row][column]
nD = arrayName with n Brackets[]
Typedef
- New data type definition in C/C+
- Programmer defined data type
Record
- Different data
Huy Doan
CISP 360 - MW 5:30-9:30
Summer 2014
Chapter 1 Reading Exercises (Program 1-2 and #1-28)
Program 1-2)
Most programs, as you have learned, have three primary activities: input, processing, and
output. But it is possible to write a program that has
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 8 (#1-18)
1. Why is the linear search also called "sequential search"?
Answer: A Linear search is also called sequential search because it uses a loop to sequentially
step through an array, starting
Math 410: Assignment 2
Please show all work. Good luck.
1) Prove that for any matrix
,
A AAT
is symmetric.
2) Prove that if A is a square matrix with
3
A 0
, then
( I A)
1
I A A
2
.
3) Let
5 6
A
4 5
. Find
A 1
.
4) Set up the matrix equation in the for
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 13 (#1,3,4,6-12,15-16,50)
1. What is the difference between a class and an instance of the class?
Answer: The difference between a class and an instance of the class is that a class is the
descriptio
Math 410: Assignment 4
Please show all work. Good luck.
For questions 1-5, let
,
, and
u (4,5) v ( 5,6)
.
w (9, 4)
1) Find
u v
2) Find
3u 5v
3) Find
u
4) Find the angle between
and
u
v
5) Find
uv
6) Find all scalars
7) Use vectors in
c1 , c 2
R3
, and
c3
Exam 1 - TT
Physics 410
Fall 2014
Show all your work on the exam pages. Partial credit can only be given if you show your work
and I am able to follow it. Correct answers with no work shown receive no partial credit. The
point value for each problem is gi
Huy Doan
CISP 360 - MW 5:30 - 9:30 PM
Summer 2014
Chapter 3 Reading Exercises (#1-4,7,9,11,31-36)
1) Assuming the array description is defined as follows:
char description[40];
A) How many characters total can the array hold?
Answer: The array can hold a
<Audio 1.mp4>
Circular list
Deleting and inserting (Have to worry about out of bounds)
1.Rear and Front start at -1 (Array is empty)
2.Inserts are done at the rear(rear+), deletes are done at the front(front+)
a.If front or rear is outside the bounds, it
Using stacks to create an expression
Stacks can be used to create mathematical expressions. In programming we have 3 notations. Prefix,
infix, and post fix
Examples of these notations
Prefix notation : +12
Infix notation: 1+2
Postfix notation 12+
Prefi
Math 420: Test 1 Review Material.
Solving differential Equations (Exact)
dx x sec 2 y ln y
dy sin 2 x tan y
1. Solve
2. Solve x 2 2 ye 2 x sin y
dydx 2 xy 2 y e
2 2x
(Initial condition: y (0) 2 )
Solving differential Equations (Integrating Factor)
3. Sol
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 7 (#1-14,43,47,52)
1. What is the difference between a size declarator and a subscript?
Answer: The difference between a size declarator and a subscript is that a size declarator is a
number that ind
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 4 (#1,4,7-15,21,24,30,33)
1) Describe the difference between the if/else if statement and a series of if statements
Answer: The difference between an if/else if statement and a series of if statement
Array Rule
-Data Elements
=Must be from the same data type (character, string, real, integer)
Records
-Can be mixed elements
=But there has to be some relationship or association between them (e.g. the student)
[i] = The I refers to the subscript or index
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 11 (#1-9,23-28)
1. What is a primitive data type?
Answer: A primitive data type is a data type that is defined as a basic part of a language. These
data types define what type of values a specific va
Preprocessor
- First
- Executes preprocessor commands
- Anything with # in your program
- Example: #include
Compiler
- Second
- Checks the syntax
- Structure of the language
- Big mathematical formula (returns true/false)
- Translates source code to objec
Huy Doan
CISP 400 MW 5:30PM
Project Assignment 1
Due Date: September 17, 2014
Assignment 1 Write-Up
1) Consider each 100,000 numbers, i.e. 1-99,999; 100,000-199,999; 200,000-299,999; etc. How many
semi-primes were in each of these? How did the number of s
Putting is adding
Popping is removing
Stack
Image
Image
stack new nodes can be added and removed only at the top
similar to a pile of dishes
last-in/first-out (LIFO)
Bottom of stack indicated by a link member to null
constrained version of a linked list
p
25) Specify a modular design for the problem statement below. Include the following in your design specification:
A Computer Assisted Math software system supports Drill and Practice instruction mode. The system generates basic math problems involving
ope
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 9 (#1-8, 44-56)
1. What does the indirection operator do?
Answer: The indirection operator is placed in front of a pointer variable name to dereference the
pointer. A dereferenced pointer is used so
Huy Doan
CISP 360 - MW 5:30-9:30 PM
Summer 2014
Chapter 6 (#1-9,10-23,32-37)
1. Why do local variables lose their values between calls to the function in which they are
defined?
Answer: The reason that local variables lose their values between calls is th
25 Years of Hubble
Hubble launched in 1990
Hubble Mirror
Size matters
2.4 m (size of the mirror)
Resolution (how small a thing you can see)
Double size of mirror can see something half as big
Light Gathering
D^2
Why put something into space
Because of the
Math 401
Exam 5
Show all work on the problems
Name:_
1. Eliminate the parameter to find a description of the following circles or circular arcs in terms of
x and y. Give the center and radius, and indicate the positive orientation.
x = 3 cos t, y = 3 sin
Linked Lists
Linked lists are used instead of arrays because it is easy to expand or decrease the amount of
nodes needed. For an array it is significantly harder to change the size of an array. However, for a
linked list we can just add new nodes to the l