01) What is data modeling?
The analysis of data objects and their relationships to other data objects. It is the first step in
database design and object-oriented programming as we create a conceptual model of how data
items relate to each other. It invol
The name of the function is type. The expression in parentheses is called the argument of
the function. The result, for this function, is the type of the argument.
It is common to say that a function takes"
The while statement
Computers are often used to automate repetitive tasks. Repeating identical or similar tasks
without making errors is something that computers do well and people do poorly
Another is the while statement. Here is a version of c
Conditionals and recursion
> quotient = T f 3
> print quotient
> remainder = 7 K 3
> print remainder
A boolean expression is an expression that is either true or false. The following examples
use the operator =, wh
A string is a sequence
A string is a sequence of characters. You can access the characters one at a time with the
> fruit = 'hnnnnn'
3) letter = fruitEI]
The second statement selects character number 1 from fruit and assigns it t
A list is a sequence
Like a string, a list is a sequence of values. In a string, the values are characters; in a list,
they can be any type. The values in a list are called elements or sometimes items.
There are several ways to create a new list; th
CS385L Week 6
Basic Shell Programming
6. Simple shell programming techniques make decision with if shell script
What is the output of running the following shell script by different data: 0, 20, 3, -1, -2?
Perl - II
Dr. Ted Sun
Fall Semester, 2015
Associate Arrays (Hash Arrays)
File Input and output
Running external programs
Hash arrays are also called associate arrays.
Instead of using @ and [ ], % and cf
CS 350 Data Structure
1.Create an integer array of 1000 elements. Name the array
using the first 4 letters of your lastname.
each of in
1 and 10000.
Open terminal / putty and use the below unix
commands in terminal. (take screenshots upload in
document file )
6. cal 1845 (it shows only year)
7. cal 2009
8. cal 8 1947 (it shows month and y
CS385L-(B) Assignment -4
1. Create a file and write a below shell script in that file(save as
filename.sh). Display the output.
echo hello, $USER. I wish to list some files of your
echo listing files in the current directory, $pwd
1. Use man command to display below commands (a) echo (b)
grep (c) vi Example : man echo
output display: NAME , SYNOPSIS, DESCRIPTION. Take
screenshots each one as separate picture.
2. Create a file east.txt using touch command.
CS385L_Week 9 (Mid Exam) Set -A
Write any four shell scripts programs (take screenshots of
programs and outputs)
1. using below commands you need to write a shell scripts (each
one is separate program)
b) ps c) date
1. Write an interface file for queue ADT of integer using linked list. The interface file must
include the following functions:
QueType* CreateQueue (void);
void DestroyQueue (QueType* q);
void Enqueue (QueType* q, int newItem);
Perl - I
Dr. Ted Sun
Fall Semester, 2015
basic control constructs
List and array
As a general rule, when perl has just one of something, it is a
A scalar is the simplest ki