Free Essay

Others

In:

Submitted By Firefly004
Words 3795
Pages 16
C PROGRAMMING
Section 1.
Topics: Functions Statements Input Output Variables

Introduction

The C programming language has been the most popular high level language used for engineering applications for the last 20 years. It shares many common structures with other procedural languages, such as Pascal, and can be used for general purpose programming of a PC. However, it is also particularly good for development of embedded application programs such as those found in phones, video recorders and so forth. The term procedural language refers to the fact that the language uses procedures to do particular tasks such as printing on the screen. In C these procedures are known as functions and are described below.

What is so good about a language like C? The basic reason such languages were developed was to make it easier for humans to program computers. The alternative is the language of the computer, i.e., binary codes. Clearly such ‘low-level’ languages are not very appealing for humans, although sometimes necessary for detailed engineering work. (In fact C is often ‘mixed’ with such languages for engineering applications.)

C uses words and symbols that are part of, or similar to, normal language. This makes it easier for programmers to develop code. The C code is converted to the machine code by a special program called a compiler. See note 1. But perhaps the most useful thing about such a language is that it provides the developer with a library of ‘mini-programs’, the functions/procedures someone else has written, thereby allowing the programmer to concentrate on developing his own particular application programs.

Note 1 Typically the code entered by the programmer, known as the source code, is saved in a file with the extension .C . For instance, a program to monitor temperature might be saved in file called tempcont.c . When the compiler produces the machine code it is saved in a file with the same name but the extension is exe (executable) Thus the file tempcont.exe contains the code that the computer requires to execute the program that was written in the file tempcont.c.
The ’mini-programs’ are called functions because they do some function! For instance sound(1000); is the function to make a PC generate a sound (a single tone) at 1000 Hertz. In this example the number in the brackets sets the frequency of the sound. The technical way of describing this is that 1000 is a parameter of the function. This value must be a whole number (integer). The above example is a ‘line of code’ in a C program and referred to as a statement.

A programmer creates his own functions based mainly on the library functions supplied and a few other structures for making decisions and so forth. The following is an example of a user defined (written by the programmer) function called my_sounds

void my_sounds(void) { sound(500); /* make a sound at 500 Hz.*/ delay(2000); /* pause for 2000 milliseconds = 2 seconds */ sound(1000); delay(2000); sound(1500); delay(2000); sound(2000); delay(2000); nosound(); /* turn off sound */ }

The functions used in this example are explained with comments. These are the explanatory pieces of text between /* and */. It is very important to explain (document) the program in this way. It will be easier to understand when it is re-read. The little bit of effort required to add comments can save a lot of time in the long run and is considered as much a part of programming as the C code.

Before the above program can be compiled into executable machine code and run, some necessary additional code must be added. The details about this are not too important at present. A complete program is shown below and explained using comments.

Note 2 Sometimes I will use comments to explain new concepts. This will not be the case in your programs. Your comments should explain what the code is doing at a particular point in the program, particularly if it is a bit complicated. Clearly some things are fairly obvious and may not need a detailed explanation, e.g., what the sound function does. However, most of the user-defined functions need clear concise comments to explain their task and how it is implemented. The comments at the start of the following program should always be present

/**********************************************************************/
/*Title: C program to make sounds (sound1.c) */
/**********************************************************************/
/*Developer: A.C. Programmer 20-10-2000 */
/**********************************************************************/
/*Description: This program uses the sound() function and delay() functions to */
/* demonstrate a simple C program */
/**********************************************************************/
#include /* a special header file that is needed when using the */ /* sound function and so forth */ void my_sounds(void); /* this ‘warns’ the compiler that a ‘new’ user defined */ /* function will appear later- the technical term for this */ /* statement is function prototype and is basically a copy */ /* the first line of the user-defined function */

main() /*All C programs have a main function body */
{ /* the user defined functions are ‘called’ from the main */ my_sounds(); /* function as shown on this line. The ‘calling’ statement */ /* is simply the function name followed by a semi-colon */
} /*The curly braces are used to‘group together’ statements*/ /* inside a function body */
/*-------------------------------------------------------------------------------------------------------*/
/* The my_sound function ………../* void my_sounds(void) { sound(500); /* make a sound at 500 Hz.*/ delay(2000); /* pause for 2000 milliseconds = 2 seconds */ sound(1000); delay(2000); sound(1500); delay(2000); sound(2000); delay(2000); nosound(); /* turn off sound */ }
It would be possible to write all the statements in the my_sounds() function in the main function. However, we shall only use the main function to ‘call’ other functions or for some special sections of code. Why not use the main function?. The principle reason not to use main is to ensure that the program is ‘broken up’ into smaller functions. This is called modular programming and makes it easier to design and understand programs. This is a subject we shall return to at a later stage.

Interactive programs

The previous example program does not allow the user to interact with the computer. For instance it would be interesting to permit the user to select the frequency of the sound and the duration of the delay. To do this 3 extra tasks arise:

1. Output a request to the screen seeking the user to enter values 2. Input values from the keyboard 3. Store these values in the system memory for use later (by the functions sound and so forth)

Output

To output something to the screen the most common function is printf(). The easiest way to start using printf is with a ‘string of characters’ such as

Please enter your frequency selection (

To do this simply enclose the above text in quote marks “like this”, to indicate a string of text to the compiler, and write this between the brackets as shown below

printf(“Please enter your frequency selection ”);

Note how many functions have something between the brackets, the parameters which the function uses. Also, the ever present semi-colon which terminates the statement. The printf function always has something between quote marks “……” and this is called the format string. Further details about printf later. However, there is one extra item that must be learned now. How do you print on a new line and not just follow the previous piece of text on the same line? An escape sequence, which is written inside the format string as \n, .is used. For instance,

printf(“\n\n Now enter the duration of the delay (”);

In this case the two \n sequences cause 2 blank lines to be ‘printed’ before the text starts. Note that the \n appears inside the quote marks. Omitting the quotation marks or the semi-colon at the end of a statement, are the two most likely sources of errors for programming students.

To use printf() it is necessary to include details from a special ‘header file’ called stdio.h. The stdio is an abbreviation of standard input/output. This is written at the start (as in the example which used the dos.h file also) as follows: #include
More details about this later.
Storage (variables)

Before discussing input, we shall consider the storage of data. If a number, or any other form of data, is read in from the keyboard, then there must be some place to store this data. (Physically this is the RAM memory in the system). In order to save data in memory the program must ‘reserve’ some space in the memory and give it a name. This is described as declaring a variable.

You are already familiar with the notion of variables from mathematics, for instance, Y=3X+4
The value of Y depends on the value of X, which may be whatever we choose, i.e., it is variable. In a computer a variable is much the same. It is a memory location(s) that can hold (store) data and its contents may be changed (variable). However, variables can store more than just numbers. For instance they can be used to store text. When declaring a variable it is necessary to indicate what type of “data” is to be stored in it and give it an identifier (name). Declarations of variable appear in the start of functions. For the sound() and delay() functions the parameters are integer values (whole numbers). Thus, a possible declaration for the two variable required might be

/*declarations of variables */

int frequency,duration; /*The words ‘freqency’and ‘duration’*/ /* are the names (identifiers) of the variables*/

In the above example the computer is instructed to reserve memory locations and identify them with the names (identifiers) frequency and duration. Also, the type of data to be stored is specified with the abbreviation int, which is short for integer. (The computer reserves a certain amount of memory depending on the particular data type). A more detailed description of variables will be given at a later stage, but note that the most common type specifier for numbers is the word float. (As in the case of floating point, or decimal point, real numbers – not just whole numbers).
If a variable can store data then there must be a way of ‘loading’ that variable. One way is to use the assignment operator (the equal symbol = ) to assign a value in the way a mathematical expression is constructed

frequency=1000; sound(frequency);

In the two lines of code above the variable frequency is assigned the value 1000 and this is then the frequency of the tone generated by the sound function. But we want the person running the program to select the frequency. Thus we must consider how to input data from the keyboard.

input

For interactive input the most common function is scanf(), the input equivalent of printf(). Similarly to printf() it uses a string, the format string, to input the data from the keyboard. The term format relates to how data is treated for either output to the screen or input from the keyboard. Format specifiers are described in detail later. However, a simple way to understand them is to consider the difference between an ‘int’ such as 2 and a ‘float’ such as 2.0. If someone enters a ‘2’ character at the keyboard, they may want it to be treated as either one or other of the above (or even as something else!). The format specifier is used to specify which format is to be used. For instance, %f means treat it as a float and %d means treat it as an integer (decimal- hence the d).

Thus, for the my_sound function a possible input statement would be

scanf(“%d”,&frequency);

The “%d” is the format string and &frequency indicates where the input (the integer value) is to be stored. There is a particular significance in the & symbol but for the moment simply treat it as meaning ‘at’. (Store input at variable location frequency).
A single statement can read more than 1 input. A space or return is required between each input. The general format for the scanf() function is

scanf (“format string”,&var1,&var2,…)

notice the commas separating the various items in the brackets.

example scanf(“%d %d”, &data_1, &data_2);

This call tells the program that it expects you to type in two decimal (integer) values separated by a space; the first will be assigned to variable data_1 and the second to the variable data_2.

Exercise 1

Modify the the my_sounds() function to do the following

1. Declare int variables for frequency and duration 2. Request the user to select a frequency for the first tone and the duration of the delay. 3. let each subsequent tone be 100Hz higher value than the first tone with the same duration as the first tone, e.g., sound(frequency+100);

Note the use of the addition operator described in the next section..

Operators

The assignment operator was introduced earlier in relation to storing data in variables. As you might expect there are plenty of operators for manipulating variables. To begin with we shall note the common arithmetic operators and introduce others, such as Boolean, as we require them. A full table of operators will be provided later.

= assignment + addition - subtraction * multiplication / division % remainder (applies to integer division)

The usual arithmetic rules for precedence and the use of brackets apply. If integers are divided then the result is also an integer or zero.

Examples

res_total = res_1+res_2+res_3;

the 3 ‘res’ variables store resistance values entered by a person. The series equivalent resistance of the 3 is calculated and assigned to the res_total variable.

Note: a variable name cannot have a space in it. Thus in the above example to give the impression of a space, and make the name easier to read, an underscore symbol is used.

average_age = (age_1+age_2+age_3)/3;

in the above example the 3 ‘age’ variables contain the numbers associated with the ages of 3 people. The average is calculated and assigned to the variable average_age. Because division has a higher precedence than addition, the brackets are used.

Exercise 2

Write a function to request the user to input 2 values corresponding to resistance values and which then does the following

1. calculates the series equivalent resistance 2. calculates the parallel equivalent resistance 3. outputs both results to the screen.

Checkout the detailed description of printf() to see how to print the results..

NOTE 2: Printf function in detail

You’ve already used the most common output function in C, printf(). Its format is both simple and flexible: printf(,,,…);

The Format String

The format string begins and ends with double quotes (“like this”)and printf’s function is to write that string to the screen. First, though, printf substitutes any additional items listed into the string, according to the format commands found in the string itself. For example, your last exercise program may have had the following printf statement:

printf(“The series resistance is %f \n”,series_res);

The %f in the format string is a format specification. All format specifications start with a percent sign (%) and are (usually) followed by a single letter, indicating the type of data and how the data is to be formatted. (Remember in the computer the data is in a binary format and that format is not much good for humans).
You should have exactly one item listed for each format specification. The items themselves can be variables, constants, expressions, function calls. In other words anything that results in a value appropriate to the corresponding format specification.

The %f used in this specification means that a float is expected. The most common format specifications are listed below

- %u (unsigned integer) - %f (floating point) - %e (floating point in exponential format) - %c (single character) - %s (string) - %x or %X (integer in hexadecimal format)

e.g. printf(“The average age is %d”,average_age);

You may have noticed that when printing a value stored in a ‘float’ with %f, a number of decimal places are printed, 6 in all. If you wish to set the total number of characters printed, the field width, and the number of decimal place digits, then you may do this as follows by inserting details between the % and f of the format specifier.

%.f

For instance for a width of 6 and 2 decimal place the earlier example would be

printf(“The series resistance is %6.2f \n”,series_res);

If there are not enough characters (including the decimal place) to fill the width then the value will then be printed out right-justified (with leading blanks), so that the total field width is 6.

If you need to print a percent sign, just insert %%.

As described earlier the \n in the string is an escape sequence not a format specification. It represents a special character inserted into the string. In this case, the \n inserts a newline character, so that after the string is written out, the cursor moves to the start of a new line.

Some of the common escape sequences are listed

\f formfeed or clear screen \t tab \b backspace \n newline -

NOTE 3: Other common screen and keyboard functions

clrscr() puts() getch()

The clrscr() function is used to clear the screen. It requires the conio.h file to be included at the head of the program. The term conio refers to the phrase console input/output Most common functions are associated with the header files stdio.h, conio.h, dos.h, or math.h. Others will be mentioned as required.

The function puts(), as in put string, writes a string to the screen followed by a newline character automatically, without the requirement for the special escape sequence \n
.
For example, you could write

puts (“This is a simple string”);

Similarly the function putchar() writes a single character to the screen, although not commonly used.
For numeric output, or special formatting, printf is required. If only text is to be output then puts is a smaller and faster function and should be used in those cases.

Strings and characters are a particular data type which are described later. There is a variable type ‘char’ which is used for storing text This could be used with scanf(), and the character format specifier %c, to read in a character from the keyboard in the same way numbers may be read in. However, for text there is a simpler method using the getch() function. For example, .char reply; /* character variable */

reply = getch(); /* input from keyboard */

The getch() function causes the program to ‘wait’ for the user to press a character. This is then ‘returned’ and assigned to variable reply. A similar process is involved using gets() when a string of characters is to be entered. (Strings are not dealt with at this stage in detail).

A very useful function for getch() is to simply halt program execution to wait for the user to press a key. In effect it is a ‘pause’ waiting for the user. It will appear in a lot of future programs.

NOTE: 3 Further details about variables and data types

There are 4 basic types of data

integers, floating-point numbers, text, and pointers.

These can be defined as follows

Integers The ‘whole’ number used for counting and so forth (3, 55, -21, and 1052, for example).

Floating-point numbers –numbers with possible fractional portions after the decimal point (27.8976) and exponents (2.579*10^24). Also known as real numbers.

Text -characters (a,b,c…?,!,a and strings (“This is a string.”).

Pointers No details yet!!

Float Types

Most mathematical operations involve real/float numbers and unless required by a function, or for counting, then these should be used for storing numerical data. They occupy more memory space than an integer but this is not significant in modern computers. Typically 6 bytes for a float.

There’s also a large version of type float, known as double. As you might have guessed, variables of type double are twice as large as variables of type float. This means that they have more significant digits and a larger range of exponents. As an exercise determine the largest values that may be stored in these types for your system?

Integer Types

Although int type is sufficient for most purposes, if a very big integer is used then a long can be specified. An int occupies 2 bytes but a long occupies 4 bytes. Normally, we assume that the range of values spans positive and negative numbers. In the variable, the most significant bit represents the + or -. This is referred to as a signed number. It is possible to declare a variable to be ‘unsigned’, thus only positive values may be stored. As an exercise determine the largest numbers that may be stored in the different types of integer variables.

Examples

float var1; .double var2; int var3 long var4; unsigned int var5;

Characters and Strings

A character, such as those input from the keyboard, is a particular data type represented by a character code. This code is known as an ASCII (American Standard Code for Information Interchange) code. Like integer or float data values they may be stored in a variable. The variable is of type char

Example char var_a;

var_a = ‘c’ /* the code for the letter c is assigned to var_a */

Note that in the above example a single character code is ‘generated’ by enclosing the character between single quote marks ‘c’ . A character string, usually several characters, characters is generated between double quote marks. In fact a string consist of a special character called the null character \0 which is always at the end of a string and can be checked for. To store a string a special type character variable is required known as a character array. Consider the following example:

char name [30]; /*declaration of string variable*/

printf(“Enter you name ( “) scanf(“%s”,&name); /* characters stored in name*/
The [30] after name tells the compiler to set aside space for up to 29 characters, that is, an array of 29 char variables. (The 30th space will be filled by a null character. Because of this dependency on a null character, strings in C are known as being null terminated and can be any length, as long as there is enough memory to hold it.

Identifiers

There are restrictions on the identifiers (names) that can be used for variables, functions and other data types. In summary they are

- All identifiers must start with a letter (a…z or A…Z) or an underscore ( _ ).

- The rest of an identifier can consist of letters, underscores, and / or digits (0…9). No other characters are allowed.

- Identifiers are case-sensitive. This means that lowercase letters (a…z) are not the same as uppercase letters (A…Z). For example, the identifiers indx, Indx, and INDX are different and distinct from one another.

- The first 32 characters of an identifier are significant.

Similar Documents

Free Essay

Other Backward Classes

...OTHER BACKWARD CLASSES The term backward casses has not been defined properly,either by the sociologists or by the Constitutio-makers.The backward classes are a large mixed category of persons with boundaries that are both unclear and elastic.They seem to comprise roughly one-third of the toatal population of the country.They consist of three main categories-the scheduled castes,the scheduled tribes and the other backward classes.The scheduled castes and scheduled tribes are comparatively better defined and they form roughly 22% of the total population according to the 1971 census.The other backward classes is a residual category.Their position is highly ambigous and it is not possible t give an exact statemen of their numbers. Defintion of other backward classes Though the term backward classes is popularly used by sociologists.It is not defined properly.Still for our purpose of study,we may define it in the following way: 1)Justice K. Subba Rao,former chief justice of india,defined “backward classes” as—“an ascertainable and identifiable group of persons based on caste,religion,race,language,occupation and such others,with definite characteristics of backwardness in various aspects of human existence-social,cultural,economic,political and such others”. 2)We can generally define backward classes as those social groups or classes or castes which are characterise by low leteracy and lack of education,poverty,exploitation of labour,non-representation in services and...

Words: 1474 - Pages: 6

Free Essay

‘If Only People Could Understand Each Other Conflict Would Not Occur’

...‘If only people could understand each other conflict would not occur’ In most cases, conflict is not explained by a simple misunderstanding. As human beings, we do not operate in such a simplistic manner. Conflict will usually stem from a range of issues. A difference of ideas separates one culture from the next. Obtaining an understanding between one or more individuals in times of disagreements can be problematic because of our own personal and culture values that forge an individual’s own identity. In times of conflict, gaining an understanding between two parties can still be insufficient to obtain a level of peace, one must also be willing to accept the others viewpoint. Even when the same level of understanding has been accomplished, an individual can still encounter intra-personal conflict as a result. In order to minimise the amount of conflict we encounter, we must first attain a level of understanding of another’s own morals and viewpoints. In times, our own identity can be a productive force that instigates conflict. In Greenville’s novel ‘The lieutenant’ the governor ordered a prisoner to be lashed for the stealing of food in the settlement. Warungin, the native, watched on in interest, yet soon he finds himself standing alone pleading with the governor for the ‘horror of the punishment’ to stop. What is seen as a horrendous brutality in his eyes is considered to be standard practice for the marines of His Majesty’s Service. This level of misunderstanding creates...

Words: 829 - Pages: 4

Premium Essay

Geog 102 Unit 2 Assignment

...Socially constructed ideas of childhood are not only time but place specific. This means that many of the normal assumptions that we hold about children in the west are culturally specific in the global north seen as time of dependence where as in the global south so many children make contribution to their households. children’s identities are made and remade through everyday spaces such as home, school ect. This concerned on the fears that some children are vulnerable to dangers in public such as the little angels and the other children known as the little devils can risk adult control of public space. On the other end of the age spectrum, the older people have an expansion of interest and even here researchers base their work on social rather than biological understanding of identity with social differences. The ways older people frame their leisure activities in ways maintain positive images of themselves through contrast with other...

Words: 1384 - Pages: 6

Premium Essay

Cloning & Individualism

...mindful that such fantasy of physical or psychological sameness is implausible as everyone is different - even clones. One then questions the significance of such wanting of sameness, or if the sense of sameness serves any purpose. Using the concept of Self and Other that Joanne Finkelstein examines in “The Self as Sign,” I propose that the sense of sameness that is offered by the illusion of cloning allows one to establish a sense of identity. In a final analysis, I will elaborate on Finkelstein’s arguments on the Self and Other to shed light on the question posed by Philips on whether cloning was the death or apotheosis of individualism, and suggest that cloning has the paradoxical outcome of reinforcing individualism even as one seeks uniformity. Cloning is supposed to lead to conformity and uniformity, the absolute sameness. Phillips argues that cloning is appealing to society because it seems to represent a cure for “the terrors and delights of competition” (90-91). What is interesting, however, is the eventual admission by Phillips that this absolute sameness is impossible as “people, in actuality, can never be identical” (94) due to the difference in our individual histories and environment - among other factors which influences our individuality. This admission by Phillips prompts us to further ponder a question he poses in his essay: “Is cloning the death or the apotheosis of individualism” (88)? If we consider cloning as...

Words: 2058 - Pages: 9

Premium Essay

Jacob Riis How The Other Half Lives Summary

...The 1890 book How the Other Half Lives by Jacob A. Riis, sought out to expose the horrific conditions that over one million immigrant workers and their families faced in the tenements of New York's East Side slum district. A citizen's movement prompted by the guilty consciouses of the middle class resulted in the creation of the Board Of Health, that passed the 1867 "Tenement House Act". The act mandated the cutting of 46,000 windows into interior rooms solely for ventilation purposes. These renovations were met with opposition from tenement owners as well as by tenants.In many accounts tenants had to be physically dragged out from cellar apartments by police officials. In spite of the Tenement House Act, many renovated buildings had no apparent improvements . New tenements that were constructed after the act still had floor plans that left rooms dark and dank and, over crowding was still permitted. The air inside the tenements were described as " ...fouler than...

Words: 795 - Pages: 4

Free Essay

An Ethics of Reading

...An Ethics of Reading At the age of nine, Edith Wharton fell ill with typhoid. The local doctor told her parents nothing could be done and that their daughter would soon die. Only the ministrations of another physician, who happened to be passing through town and was prevailed upon to examine the girl, saved her life. Her fever fell, and the young Wharton began to recover. During her convalescence, she read voraciously. One of the books she was given contained a “super-natural” tale — a story which turned out to be, in Wharton’s own phrase, “perilous reading” (Wharton, p.275). In the original manuscript of her autobiography, Edith Wharton describes how reading this uncanny story occasioned a relapse, which brought her, once again, “on the point of death”: This one [book] brought on a serious relapse, and again my life was in danger and when I came to myself, it was to enter a world haunted by formless horrors. I had been a naturally fearless child; now I lived in a state of chronic fear. Fear of what? I cannot say — and even at the time, I was never able to formulate my terror. It was like some dark undefinable menace forever dogging my steps, lurking, threatening; (pp.275‑6).[1] According to Wharton, an act of reading plunged her body back into fatal illness. The young Edith Wharton did recover from the relapse, but its uncanny effects continued to haunt her well into adulthood. In “Women and Madness: the Critical Phallacy” (1975), Shoshana Felman tells another uncanny...

Words: 6956 - Pages: 28

Premium Essay

Other

...Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other Topics Other...

Words: 337 - Pages: 2

Premium Essay

Others

...well. In comparison to Canada or the US you could call South Korean’s harsh with the way they train upcoming artists, but they have higher standards. The training process consists of around three year’s minimum of being a trainee and there are many hardships that must be overcome through that process. The trainee years are what determine whether or not a person can make it in the competitive field of being a Korean pop idol. Have you ever looked around and wondered, what music lies behind what we have grown up with, as children and teenagers we are subjected to many genres of music, but what we are taught is not all there is. When I first was subjected to Kpop it was a revolutionary moment in my life, and it changed me as a person, but for others it is something that they are not comfortable with. It is foreign and hard to understand, but that...

Words: 2043 - Pages: 9

Free Essay

Other

...Definition of Race Race is a group of people of common ancestry, distinguished from others by physical characteristics, such as hair type, the color of eyes and skin. Race as a social construction is changing as time goes on. Our daily lives are affected by race whether we are aware of it or not. We can see all over the world that race has affected various domains of our lives. From the types of jobs we have the amount of money we make, the kinds of friends we keep, the food we eat and even the schools we will attend. The entire foundation of race is constructed on a platform based on the color of people’s skin. The construction of social reality is based on social groups and the agreements and disagreements that are made based on the acceptance of certain constructions when it comes to our existence. There is nothing biologically real about race. I have learned that that there is no certain identification of race that exists from our collective agreements, acceptance, and positions other than our existing with one another. Race is a social construction that has real consequences and effects. Race shapes the way we view ourselves and those around us. We shouldn’t have an objective knowledge about race. We can know what race is and how it works being aware that regardless of the various shifts in the meaning of race that they have occurred through history and going to occur geographically but this should not lead to skepticism and the destruction of positive social constructions...

Words: 1379 - Pages: 6

Premium Essay

Other

...Information Systems and Businesses Factors affecting the Business Environment 1.7.1 Globalisation 1.7.2 Shifting from Industrial-based to Knowledge-based Economies 1.7.3 Transformation of the Enterprise 1.7.4 The Digital Firm 1.8 1.9 The Internet New Options for Businesses 1.9.1 The Networked Enterprise 1.9.2 Electronic Business, Electronic Commerce and Electronic Government 1.10 1.11 1.12 1.13 1.14 Information Systems at Different Levels of Management Management Challenges with Information Systems Activities Discussion Questions Summary Unit 1 1 Management Information System – LLC 3215 1.0 OVERVIEW Nowadays, information is considered to be a very valuable resource in organisations. It is in fact comparable to other valuable resources like money, human power and raw materials. Information is vital in our everyday life. Consider the importance of weather forecasts in Mauritius during cyclonic periods. This leads us to the concept of information being a driver for decision-making. This unit will help you understand why we need to manage information and the role played by information systems in organisations towards better decision-making. 1.1 LEARNING OUTCOMES By the end of this unit, you should be able to do the following: 1. Define the concept of Information Systems (IS) and Management Information Systems (MIS). 2. Explain how MIS can be used in improving effectiveness and efficiency of operations in...

Words: 2860 - Pages: 12

Free Essay

Other

...the price the higher the quantity supplied” (Hekla, 2012). This in turn increases revenue because with high demand, comes high supply due to wanting or needing the product. With high supply and low price, than comes high demand due to the lower price. Demands and supply for health care products and medications continues to be in high demand as products are developed. The newer the product, the higher the demand, and the higher the price. Product Lovenox is a product used to treat and prevent deep vein thrombosis or pulmonary embolisms. This medication is given subcutaneously by a care giver or the patient may be trained to give their own. Lovenox is also known by the generic name of Enoxaparin. Lovenox is used in the treatment of many other diagnosis such as thrombophlebitis, carotid artery dissection, peripartum cardiomyopathy, pulmonary infarction, and Factor V Leiden thrombophilia. Lovenox is a low molecular weight heparin and thins the blood to prevent clotting (MEDgle, 2012). A study conducted in 176 centers, in the United States, Canada, South America, and Europe shows the cost effectiveness of...

Words: 318 - Pages: 2

Premium Essay

Other

...Individual Evolution of Health Care Information Systems Resource: Evolution of Health Care Information Systems Grading Criteria Write a 1,050- to 1,400-word paper that compares and contrasts a contemporary health care facility or physician’s office operation with a health care facility or physician’s office operation of 20 years ago. Include an examination of information systems in your work place and an analysis of how data was used 20 years ago in comparison with how it is used today. Identify at least two major events and technological advantages that influenced current HCIS practices. Use a minimum of three references (cite and list per APA) other than your textbook that directly support your analysis. Format your paper consistent with APA guidelines. 4/30/2012 (to be posted in the Assignment Section in the OLS). Also include the Certificate of Originality along with your individual assignment. Failure to do so will result in 1 point deduction. 10 Learning Team Participation Log # 1 A team lead will post a Learning Team participation log in their Learning Team forum. Team lead should also make sure to log who (team member) was assigned for a particular team project task and how that member handled that task. Note: Team participation points will be assigned towards the end of the course and it will be based on each individual team member's performance towards completing the team project and the learning team evaluation form by each team member...

Words: 391 - Pages: 2

Premium Essay

Other

...components to have a successful career in business. I have a great passion for food and I dream of having a restaurant someday. Having served the public with amazing customer service can help me in planning a future business in the restaurant or event industry. All of my professional experiences are a stepping stone on becoming a successful hospitable professional. I love learning and trying new things and I decide if I like it or not. I am fluent in Spanish and I’m currently learning Italian. I also love to read fiction, non-fiction, and food magazines. I believe that knowledge is power. It gives me a clear and logical mind to approach a challenge and finding the solution to a problem. I am self-motivated and I enjoy helping and motivate others. I enjoy watching the food network. Programs like Restaurant: Impossible, Restaurant Stakeout, Chef Wanted and Giada at home provide me with an idea on what do...

Words: 460 - Pages: 2

Free Essay

Others

...Al ARABIA FOR EDUCATION DEVELOPMENT AL ITTIHAD PRIVATE SCHOOL- Mamzar ‫العربيـــــــــــــــة لتطويــــــــــــر التعليـــــــــــــم‬ - ‫مذرســـــة االتحــــــاد الخاصــــــة‬ ‫الممزر‬ Boys Section Weekly Homework S R DAYS ‫حربيت اصالييت‬ 12 May - 16 May GRADE 5 ‫نغت عربيت‬ ‫اجخًاعياث‬ English Math Sceince ICT Art Sunday ‫حم اَشطت انطانب درس‬ ‫انٓجرة انُبٕيت انى‬ ‫انًذيُت انًُٕرة‬ ٍ‫حم ٔرلت حًاري‬ To study for quiz on Wednesday : Sequence of events. Exercise on p157 of practice book. 1 Monday ‫حم يٍ يهزيت احكاو‬ 10‫انخالٔة صفحت‬ To study for quiz on Quiz Material: 8-1/ 8Wednesday : Adverbs 3/ 13-2/ 13-3 exercise on p199 and 200 2 Tuesday ٌ‫" انًادة انًطهٕبت في االيخحا‬ ‫صذيمُا حضيٍ - انُحٕ كم ياحى‬ ّ‫" دراصخ‬ To study for quiz on Wednesday : vocabulary words on Tucker's Travels. In copybook and in the reader 3 Wednesday ‫ٔرلت حذريباث‬ Study for Quiz: 1. How Does Matter Change?(booklet) 2. What is Sound?(booklet) related sheets 4 Thursday w.b. pg. 94 ex 1 to 16 +18 + 5 Comments Al ARABIA FOR EDUCATION DEVELOPMENT AL ITTIHAD PRIVATE SCHOOL- Mamzar ‫العربيـــــــــــــــة لتطويــــــــــــر التعليـــــــــــــم‬ ‫الممزر‬ - ‫مذرســـــة االتحــــــاد الخاصــــــة‬ Boys Section Weekly Homework S R DAYS ‫حربيت اصالييت‬ 12 May - 16 May GRADE 6 ‫نغت عربيت‬ ‫اجخًاعياث‬ English Math Sceince ICT Art Sunday ‫حم اَشطت انطانب درس‬ ٍ‫انًٕاخاِ بيٍ انًٓاجري‬ ‫ٔاالَصار‬ 1 Quiz Syllabus: 1. Fact&Opinion...

Words: 777 - Pages: 4

Premium Essay

Other

...essentially unreadable, indecipherable, and otherwise” reconstructed (U. S. Department of Health and Human Services [U. S. DHHS], n.d., p. 1). GCH, in response to the possibility of this type of catastrophic event, began moving to EMR in 2000. Staff training began immediately on EMR use. As an administrator of a hospital located in an area prone to hurricanes, priority is placed on preparing the staff for the possibility of a mass catastrophe. Staff is trained on privacy issues such as Health Information Portability and Accountability Act (HIPAA) and ways to prevent the accidental disclosure of health information. Staff members are required to complete yearly education to maintain their competency in this area.essentially unreadable, indecipherable, and otherwise” reconstructed (U. S. Department of Health and Human Services [U. S. DHHS], n.d., p. 1). GCH, in response to the possibility of this type of catastrophic event, began moving to EMR in 2000. Staff training began immediately on EMR use. As an administrator of a hospital located in an area prone to hurricanes, priority is placed on preparing the staff for the possibility of a mass catastrophe. Staff is trained on privacy issues such as Health Information Portability and Accountability Act (HIPAA) and ways to prevent the accidental disclosure of health information. Staff members are required to complete yearly education to maintain their competency in this area.essentially unreadable, indecipherable, and...

Words: 453 - Pages: 2