Saturday, March 21, 2020

Atlantic Slave Trade Essays - African Slave Trade, Racism

Atlantic Slave Trade Essays - African Slave Trade, Racism Atlantic Slave Trade Atlantic Slave Trade When most people talk about or think about slavery, they look at how it effected the US. The Atlantic Slave Trade had a huge effect on the US but there are no words or expressions that can describe the effects it had on Africa and its familys. It is estimated that between 1450 and 1900, there were 11,698,000 slaves exported from Africa. (Atlantic Slave trade, pg.170) To understand the effects this had on Africa you must consider the families that lost relatives, the stores that lost business, and even the friends that lost friendships. None of the misfortunes can be brought back or replaced. The many lives that were taken can never be brought back to life. This not only effected the African culture when it happened but also it effects todays societies in Africa. The overall net effect of the Atlantic Slave Trade on Africa could never be estimated unless you are inside one of the relatives of a slave. These slaves died for no other apparent reason than the color of their skin. The effects that the slave trade had on Africa were not all negative. Depending on what point of view your looking from, there were also some positives of the Atlantic Slave Trade. In William Bossmans account, he states that as soon as the king arrives he will be satisfied with an amount of one-hundred pounds in Guinea value. (Atlantic Slave Trade, pg.181) So the kings and most of all the slave traders benefited from the slave trade. One benefit from the Slave Trade would definitely be spiritually. The great misfortunes had to strengthen the inner souls of the people and relatives that were left behind. A lot of these people had nothing left but themselves so they had no choice but to deal with it and get stronger mentally and spiritually. One other benefit from the Slave trade would be that the African Culture was spread to totally different continents. All of these slaves were taken to different places and they went on with their business while all these other people that either ow ned these slaves or watched over them got to see life from the Africans side of the fence. They got to see different rituals and habits that they have never gotten to see before. In my opinion the drawbacks of the Slave Trade greatly outweighed the benefits for the African people. The families of these slaves still feel the drawbacks even today. When these people look back at a family tree, all this does is bring back memories of the torture that their relative or relatives endured. The continent itself took a huge hit on its population. Many of these slaves could have played a big role in Africas future. Many could have gone on to be nation leaders or even business owners. In 1502, the first African slaves were reported in the New World. (Amistad.mysticseaport.com) This was the start of a great mistrocity to many families in Africa. The overall effect could never be estimated because we are not in the bodies of those people who lost loved ones. We can not feel the pain that they feel, therefore we cant say what the net effect is or was. Amistad.mysticseaport.com (timeline) Bosman, William, Slave trading at Whydah on the Bight of Benin, ca 1700 Lovejoy, Paul E, The volume of the Atlantic Slave Trade: A consensus, Journal of African History 22 1982 Bibliography (Atlantic Slave trade, pg.170) (Atlantic Slave Trade, pg.181) Amistad.mysticseaport.com (timeline) Bosman, William, Slave trading at Whydah on the Bight of Benin, ca 1700 Lovejoy, Paul E, The volume of the Atlantic Slave Trade: A consensus, Journal of African History 22 1982

Wednesday, March 4, 2020

Battle of Wilsons Creek - Civil War - Missouri

Battle of Wilsons Creek - Civil War - Missouri Battle of Wilsons Creek - Conflict Date: The Battle of Wilsons Creek was fought August 10, 1861, during the American Civil War (1861-1865). Armies Commanders Union Brigadier General Nathaniel LyonColonel Franz Sigelapprox. 5,400 men Confederate Brigadier General Benjamin McCullochMajor General Sterling Priceapprox. 12,000 men Battle of Wilsons Creek - Background: As the secession crisis gripped the United States in the winter and spring of 1861, Missouri increasingly found itself caught between the two sides. With the attack on Fort Sumter in April, the state attempted to maintain a neutral stance. Despite this, each side began organizing a military presence in the state. That same month, Southern-leaning Governor Claiborne F. Jackson covertly sent a request to Confederate President Jefferson Davis for heavy artillery with which to attack the Union-held St. Louis Arsenal. This was granted and four guns and 500 rifles secretly arrived on May 9. Met at St. Louis by officials of the Missouri Volunteer Militia, these munitions were transported to the militias base at Camp Jackson outside the city. Learning of the artillerys arrival, Captain Nathaniel Lyon moved against Camp Jackson the next day with 6,000 Union soldiers. Compelling the militias surrender, Lyon marched those militiamen who would not take an oath of allegiance through the streets of St. Louis before paroling them. This action inflamed the local population and several days of rioting ensued. On May 11, the Missouri General Assembly formed the Missouri State Guard to defend the state and appointed Mexican-American War veteran Sterling Price as its major general. Though initially against secession, Price turned to the Southern cause after Lyons actions at Camp Jackson. Increasingly concerned that the state would join the Confederacy, Brigadier General William Harney, commander of the US Armys Department of the West, concluded the Price-Harney Truce on May 21. This stated that Federal forces would hold St. Louis while state troops would be responsible for maintaining peace elsewhere in Missouri. Battle of Wilsons Creek - Change of Command: Harneys actions quickly drew the ire of Missouris leading Unionists, including Representative Francis P. Blair, who saw it as a surrender to the Southern cause. Reports soon began reaching the city that Union supporters in countryside were being harassed by pro-Southern forces. Learning of the situation, an angry President Abraham Lincoln directed that Harney be removed and replaced with Lyon who was to be promoted to brigadier general. Following the change of command on May 30, the truce effectively ended. Though Lyon met with Jackson and Price on June 11, the latter two were unwilling to submit to Federal authority. In the wake of the meeting, Jackson and Price withdrew to Jefferson City to concentrate Missouri State Guard forces. Pursued by Lyon, they were compelled to cede the state capital and retreated into the southwestern part of the state. Battle of Wilsons Creek - Fighting Begins: On July 13, Lyons 6,000-man Army of the West encamped near Springfield. Consisting of four brigades, it was comprised of troops from Missouri, Kansas, and Iowa as well as contained contingents of US Regular infantry, cavalry, and artillery. Seventy-five miles to the southwest, Prices State Guard soon grew as it was reinforced by Confederate forces led by Brigadier General Benjamin McCulloch and Brigadier General N. Bart Pearces Arkansas militia. This combined force numbered around 12,000 and overall command fell to McCulloch. Moving north, the Confederates sought to attack Lyons position at Springfield. This plan soon unraveled as the Union army departed the town on August 1. Advancing, Lyon, took the offensive with the goal of surprising the enemy. An initial skirmish at Dug Springs the next day saw Union forces victorious, but Lyon learned that he was badly outnumbered. Battle of Wilsons Creek - The Union Plan: Assessing the situation, Lyon made plans to fall back to Rolla, but first decided to mount a spoiling attack on McCulloch, who was encamped at Wilsons Creek, to delay the Confederate pursuit. In planning the strike, one of Lyons brigade commanders, Colonel Franz Sigel, proposed an audacious pincer movement which called for splitting the already smaller Union force. Agreeing, Lyon directed Sigel to take 1,200 men and swing to the east to strike McCullochs rear while Lyon attacked from the north. Departing Springfield on the night of August 9, he sought to commence the assault at first light. Battle of Wilsons Creek - Early Success: Reaching Wilsons Creek on schedule, Lyons men deployed before dawn. Advancing with the sun, his troops took McCullochs cavalry by surprise and drove them from their camps along a ridge which became known as Bloody Hill. Pushing on, the Union advance was soon checked by Pulaskis Arkansas Battery. Intense fire from these guns gave Prices Missourians time to rally and form lines to the south of the hill. Consolidating his position on Bloody Hill, Lyon attempted to restart the advance but with little success. As fighting intensified, each side mounted attacks but failed to gain ground. Like Lyon, Sigels initial efforts achieved their goal. Scattering Confederate cavalry at Sharps Farm with artillery, his brigade pushed forward to Skeggs Branch before halting at the stream (Map). Battle of Wilsons Creek - The Tide Turns: Having halted, Sigel failed to post skirmishers on his left flank. Recovering from the shock of the Union attack, McCulloch began directing forces against Sigels position. Striking the Union left, he drove the enemy back. Losing four guns, Sigels line soon collapsed and his men began retreating from the field. To the north, a bloody stalemate continued between Lyon and Price. As the fighting raged, Lyon was wounded twice and had his horse killed. Around 9:30 AM, Lyon fell dead when he was shot in the heart while leading a charge forward. With his death and the wounding of Brigadier General Thomas Sweeny, command fell to Major Samuel D. Sturgis. At 11:00 AM, having repulsed a third major enemy assault and with ammunition dwindling, Sturgis ordered Union forces to withdraw towards Springfield. Battle of Wilsons Creek - Aftermath: In the fighting at Wilsons Creek, Union forces suffered 258 killed, 873 wounded, and 186 missing while the Confederates incurred 277 killed, 945 wounded, and around 10 missing. In the wake of the battle, McCulloch elected not to pursue the retreating enemy as he was concerned about the length of his supply lines and the quality of Prices troops. Instead, he withdrew back into Arkansas while Price embarked on a campaign in northern Missouri. The first major battle in the West, Wilsons Creek was likened to Brigadier General Irvin McDowells defeat the previous month at the First Battle of Bull Run. During the fall, Union troops effectively drove Price from Missouri. Pursuing him into northern Arkansas, Union forces won a key victory at the Battle of Pea Ridge in March 1862 which effectively secured Missouri for the North. Selected Sources Civil War Trust: Battle of Wilsons CreekNPS: Wilsons Creek National Battlefield CWSAC Battle Summaries: Wilsons Creek

Monday, February 17, 2020

Article evaluation Essay Example | Topics and Well Written Essays - 500 words

Article evaluation - Essay Example The article concludes that the three theories; the routine activity theory, environmental criminology and rational perspectives all contend that the organizational environment plays a significant role in the commission of such crimes and that the management of organizations must develop appropriate relationships with the environments to safeguard both their resources and the privacy of the employees. The routine activity theory, for example, develops the concept of targets. By routine activities with computers at the place of work, helps reveal the weaknesses that perpetrators often exploit before they commit crimes.The case study shows the importance of enhancing the safety of information systems in an organization. Using the case, the article applies the three theories thus showing the nature of the relationship that exists between the staff and the organization environment. Despite the strengths, the article has several other weaknesses key among which is the application of the th ree theories since they sound repetitive. The routine theory, for example, explains the behavior of employees at an organization thereby showing the features of both the victims and perpetrators. Environmental criminology does the same a feature that makes either redundant.The author of the article draws a systematic conclusion by proving the application of each theory in the Barings Bank case. He concludes that criminals often use the knowledge of the environment coupled with their understanding of the operations of the organization to commit a crime.

Monday, February 3, 2020

Language & Cross-cultural Communication Essay Example | Topics and Well Written Essays - 3000 words

Language & Cross-cultural Communication - Essay Example As defined by Schà ¼tz (1972), this essay proceeds from an understanding of intercultural communication as embedded in all forms of cultural discourse, and advances a hybrid structural and sociolinguistic analytic framework, incorporating both qualitative and quantitative methodology in analyzing intercultural communication within social networking sites, with particular emphasis on Facebook, Chinese, and French versions. The quantitative analysis contained herein requires comment. Over a course of a week participants were monitored and the newsfeed and wall-postings from a sample Facebook account were recorded. A series of five participants were also interviewed regarding their forms of communication on Facebook. Further elements of intercultural communication were analyzed on an individual basis and qualitative analyses were conducted and compared with contemporary research on the issues of language, identity and social capital. While such an approach allows for a level of sample bias, it does allow for a micro-level sociolinguistic analysis where past studies have opted for macro discussions. The nature of Facebook also allows a uniquely convenient means for sociological analyses that in non-electronic subcultures requires extensive means and human organization. Further research was conducted in the realm of morphology to determine the extent to which linguistic shifts have occurred as a result of the recent emergence of Facebook as a major means of social communication. With the fast technological development of web 2.0, social networking sites have gained worldwide popularity at a fast speed. Most SNSs allow individuals to present themselves through profiles, articulate their social networks by participating in group activities, and establish or maintain connections with strangers based on common interests, shared views, or interactive activities (Scale,

Sunday, January 26, 2020

Analysis of C Language and Operators

Analysis of C Language and Operators Introduction In order to perform different kinds of operations, C uses different kinds of operators. An operator indicates an operation to be performed on data that yields a value. Using various operators in C one link the variables and constants. An operand is a data item on which operators perform the operations. C is rich in the use of different operators. C provides four classes of operators. They are 1) Arithmetic 2) Relational 3) Logical 4) Bitwise. Apart from these basic operators, C also supports additional operators. 3.1 Types of operators Type of Operator Symbolic Representation Arithmetic operators + , -, *, / and % Relational operators >,=. Logical operators , II and ! Increment and decrement operator ++ and Assignment operator = Bitwise operators ,I,, », «and Comma operator , Conditional operator ? : 3.2 PRIORITY OF OPERATORS AND THEIR CLUBBING Various relational operators have different priorities or precedence. If an arithmetic expression contains more operators then the execution will be performed according to their priorities. The precedence is set for different operators in C. List of operators with priority wise (hierarchical) are shown in Table 3.2. Table 3.2 List of operators with priority wise Operators Operation Clubbing Priority ( ) [ ] -> . Function call Array expression or square bracket Structure Operator Structure Operator Left to right 1st + ++ ! ~ * Sizeof type Unary plus Unary minus Increment Decrement Not operator Ones complement Pointer Operator Address operator Size of an object Type cast Right to Left 2nd * / % Multiplication Division Modular division Left to Right 3rd + Addition Subtraction Left to Right 4th >> Left shift Right Shift Left to Right 5th > >= Less than Less than or equal to Greater than Greater than or equal to Left to Right 6th == != Equality Inequality Left to Right 7th Bitwise AND Left to Right 8th ^ Bitwise XOR Left to Right 9th | Bitwise OR Left to Right 10th Logical AND Left to Right 11th || Logical OR Left to Right 12th ? : Conditional operator Right to Left 13th =,*=,-=, =,+=,^=, |=,>= Assignment operator Right to Left 14th , Comma operator Left to Right 15th 1) When two operators of the same priority are found in the expression, precedence is given to the extreme left operator. Example Example Example 3.3 COMMA AND CONDITIONAL OPERATOR 1) Comma operator (,) The comma operator is used to separate two or more expressions. The comma operator has the lowest priority among all the operators. It is not essential to enclose the expressions with comma operators within the parenthesis. For example the statements given below are valid. Example 2) Conditional operator (?) The conditional operator contains a condition followed by two statements or values. If the condition is true the first statement is executed otherwise the second statement. The conditional operator (?) and (:) are sometimes called ternary operators because they take three arguments. The syntax of conditional operator is as given below. Syntax Condition? (expression1): (expression2); Two expressions are separated by a colon. If the condition is true expression1 gets evaluated otherwise expression 2. The condition is always written before? Mark. Example Example 3.4 ARITHMETIC OPERATORS There are two types of arithmetic operators. They are 1) Binary Operator and 2) Unary Operator a) Binary operator Table 3.3 shows different arithmetic operators that are used in C. These operators are commonly used in most of the computer languages. These arithmetic operators are used for numerical calculations between the two constant values. They are also called as Binary Arithmetic Operators. The examples are also shown in the Table 3.3 In the program variables are declared instead of constants. Table 3.3 Arithmetic operators Arithmetic Operators Operator Explanation Examples + Addition 2+2=4 Subtraction 5-3=2 * Multiplication 2*5=10 / Division 10/2=5 % Modular Division 11%3=2 (Remainder 2) b) Unary Operators Unary operators are increment operator (++), decrement (- -) and minus (-) . These operators and their descriptions are given in the Table 3.4. Table 3.4 Unary arithmetic operators Operator Description or Action Minus ++ Increment Decrement Address Operator Size of Gives the size of variable a) Minus (-) Unary minus is used to indicate or change the algebraic sign of a value. b) Increment (++) Decrement () Operators The C compilers produce very fast efficient object codes for increment and decrement operations. This code is better than generated by using the equivalent assignment statement. So, increment and decrement operators should be used whenever possible. †¢ The operator ++ adds one to its operand. Whereas the operator subtracts one from its operand. For justification x=x+1 can be written as x++; and x=x-1; can be written as x;. Both these operators may either follow or precede the operand. That is, x=x+ 1; can be represented as x++; 01 ++x; If ++ or are used as a suffix to the variables name then the post increased / decreased operations take place. Consider an example for understanding ++ operator as a suffix to the variable. x=20; y=10; z=x*y++; In the above equation the current value of y is used for the product. The result is 200, which is assigned to z. After multiplication, the value of y is increased by one. If â€Å"++ or -â€Å"are used as a prefix to the variable name then pre increment/ decrement operations take place. Consider an example for understanding ++ operator as a prefix to the variable. x=20; y=10; z=x*++y; In the above equation the value of y is increased and then used for multiplication. The result is 220, which is assigned to z. The following programs can be executed for verification of increment and decrement operations. Example 3.4 Example 3.5 c) Size of 0 and Operator The size of ( ) operator gives the bytes occupied by a variable. The number of bytes occupied varies from variable to variable depending upon its dab types. The operator prints address of the variable in the memory. The example given below illustrates the use of both the operators. Example 3.6 3.5 RELATIONAL OPERATORS These operators are used to distinguish between two values depending on their relations. These operators provide the relationship between the two expressions. If the relation is true then it returns a value 1 otherwise 0 for false relation. The relational operators together with their descriptions, example and return value are described in Table 3.5. Table 3.5 Relational Operator Operators Description or Action Example Return Value > Greater than 5>4 1 >= Greater than equal to 11>=5 1 = = Equal to 2==3 0 ! = Not equal to 3!=3 0 The relational operators symbols are easy to understand. They are self-explanatory. However readers benefit a program is illustrated below. Example 3.7 Example 3.8 Example 3.9 Example 3.10 3.6 LOGICAL OPERATORS The logical relationship between the two expressions are checked with logical operators. Using these operators two expressions can be joined. After checking the conditions it provides logical true (1) or false (0) status. The operands could be constants, variables, and expressions. The Table 3.6 describes the three logical operators together with examples and their return values. Table 3.6 Logical Operators Operator Description or Action Example Return Value Logical AND 5>3 5 || Logical OR 8>5 || 8 ! Logical NOT 8 ! = 8 0 From the above table following rules can be followed for logical operators. 1) The logical AND ( ) operator provides true result when both expressions are true otherwise 0. 2) The logical OR (I I) operator provides true result when one of the expressions is true otherwise 0. 3) The logical NOT operator (!) provides 0 if the condition is true otherwise 1. Example 3.11 Example 3.12 Example 3.13 Example 3.14 Example 3.15 Example 3.16 3.7 BITWISE OPERATORS C supports a set of bitwise operators as listed in the Table 3.7. C supports six bit operators. These operators can operate only on integer operands such as int, char, short, long int etc. Table 3.7 Bitwise operators Operator Meaning >> Right shift ^ Bitwise xor (Exclusive OR) ~ Ones complement Bitwise AND | Bitwise OR Example 3.17 Example 3.18 Example 3.19 Example 3.20 Example 3.21 SUMMARY You have now studied the various operators such as arithmetic, logical and relational which are essential to write and execute programs. The precedence of the operators in the arithmetic operations furnished in the form of a table. The conditional comma operators and programs on them, also described in this chapter. You are made aware of the logical operators OR, AND and NOT. Full descriptions on bit wise operators have been illustrated. Numerous Simple examples have been provided to the users to understand the various operators. The reader is expected to write more programs on this chapter. EXCERSICES Answer the following questions. 1. Explain different types of operators available in C? 2. What are the uses of comma (,) and conditional (?) operators? 3. What are Unary operators and their uses? 4. Describe logical operators with their return values? 5. Distinguish between logical and bitwise operators. 6. What are the relational operators? 7. What is the difference between = and = = ‘? 8. What are the symbols used for a) OR b) AND c) XOR d) NOT operations? 9. Explain the precedence of operators in arithmetic operations? 10. List the operators from higher priority to least priority? 11. What is the difference between %f and %g? 12. What is the difference between division and modular division operations? 13. What are the ASCII codes? List the codes for digits 1 to 9, A to Z and a to z. We have already seen that individual constants, variables, array elements and function references joined together by various operators to form expressions. We have also mentioned that C includes a number of operators which fall into several different categories. In this chapter we examine certain of categories in detail. Specifically, we will see how arithmetic operators, unary operators, relational and logical operators, assignment operators and the conditional operator are used to form expressions. The data items that operators act upon are called operands. Some operators require two operands, while others act upon only one operand. Most operators allow the individual operands to be expressions. A few operator permit only single variables as operands (more about this later). 3.1 ARITHMETIC OPERATORS There are five arithmetic operators in C. They are Operator Purpose + addition subtraction * multiplication / division % remainder after integer division The %operator is sometimes referred to as the modulus operator. There is no exponentiation operator in C. However, there is a library function (pow) to carry out exponentiation (see Sec.3.6). The operands acted upon by arithmetic operators must represent numeric values. Thus, the operands can be integer quantities, floating-point quantities or characters (remember -that character constants represent integer values, as determined by the computers character set). The remainder operator (%) requires that both operands be integers and the second operand be nonzero. Similarly, the division operator (I) requires that the second operand be nonzero. Division of one integer quantity by another is referred to as integer division. This operation always results in a truncated quotient (i.e., the decimal portion of the quotient will be dropped). On the other hand if a division operation is carried out with two floating-point numbers, or with one floating-point number and one integer, the result will be a floating-point quotient. EXAMPLE 3.1 EXAMPLE 3.2 EXAMPLE 3.3 Operands that differ in type may undergo type conversion before the expression takes on its final value. In general, the final result will be expressed in the highest precision possible, consistent with the data types of the operands. The following rules apply when neither / operand is unsigned. 1. If both operands are floating-point types whose precisions differ (e.g., a float and a double), the lower precision operand will be converted to the precision of the other operand, and the result will be expressed in this higher precision. Thus, an operation between a float and a double will result in a double; a float and a long double will result in a long double; and a double and a long double will result in a long double. (Note: In some versions of C, all operands of type float are automatically converted to double.) 2. If one operand is a floating-point type (e.g., float, double or long double) and the other is a char or an int (including short int or long int), the char or int will be converted to the floating-point type and the result will be expressed as such. Hence, an operation between an int and a double will result in a double. 3. If neither operand is a floating-point type but one is a long int, the other will be converted to long int and the result will be long into Thus, an operation between a long int and an int will result in a long int. 4. If neither operand is a floating-point type or a long int, then both operands will be converted to int (if necessary) and the result will be into Thus, an operation between a short int and an int will result in an int. A detailed summary of these rules is given in Appendix D. Conversions involving unsigned operands are also explained in Appendix D. EXAMPLE 3.4 EXAMPLE 3.5 EXAMPLE 3.6 EXAMPLE 3.7 EXAMPLE 3.8 EXAMPLE 3.9 3.2 UNARY OPERATORS C includes a class of operators that act upon a single operand to produce a new value. Such operators are known as unary operators. Unary operators usually precede their single operands, though some unary operators are written after their operands. Perhaps the most common unary operation is unary minus, where a numerical constant, variable or expression is preceded by a minus sign. (Some programming languages allow a minus sign to be included as a part of a numeric constant. In C, however, all numeric constants are positive. Thus, a negative number is actually an expression, consisting of the unary minus operator, followed by a positive numeric constant.) Note that the unary minus operation is distinctly different from the arithmetic operator which denotes subtraction (-). The subtraction operator requires two separate-operands. 3.3 RELATIONALAND LOGICAL OPERATORS There are four relational operators in C. They are Operator Meaning > greater than >= greater than or equal to These operators all fall within the same precedence group, which is lower than the arithmetic and unary operators. The associatively of these operators is left to right. Closely associated with the relational operators are the following two equality operators. Operator Meaning == equal to != not equal to The equality operators fall into a separate precedence group, beneath the relational operators. These operators also have a left-to-right associatively. These six operators are used to form logical expressions, which represent conditions that are either true or false. The resulting expressions will be of type integer, since true is represented by the integer value 1 and false is represented by the value 0. EXAMPLE 3.15 EXAMPLE 3.16 EXAMPLE 3.17 EXAMPLE 3.18 EXAMPLE 3.19 EXAMPLE 3.20 3.4 ASSIGNMENT OPERATORS There are several different assignment operators in C. All of them are used to form assignment .expressions which assign the value of an expression to an identifier. The most commonly used assignment operator is = Assignment expressions that make use of this operator are written in the form identifier = expression where identifier generally represents a variable, and expression represents a constant, a variable or a more complex expression. EXAMPLE 3.21 Remember that the assignment operator = and the equality operator == are distinctly different. The assignment operator is used to assign a value to an identifier, whereas the equality operator is used to determine if two expressions have the same value. These operators cannot be used in place of one another. Beginning programmers often incorrectly use the assignment operator when they want to test for equality. This results in a logical error that is usually difficult to detect. Assignment expressions are often referred to as assignment statements, since they are usually written as complete statements. However, assignment expressions can also be written as expressions that are included within other statements (more about this in later chapters). If the two operands in an assignment expression are of different data types, then the value of the expression on the right (i.e., the right-hand operand) will automatically be converted to the type of the identifier on the left. The entire assignment expression will then be of this same data type. Under some circumstances this automatic type conversion can result in an alteration of the data being assigned. For example: A floating-point value may be truncated if assigned to an integer identifier. A double-precision value may be rounded if assigned to a floating-point (single-precision) identifier. An integer quantity may be altered if assigned to a shorter integer identifier or to a character identifier (some high-order bits may be lost). Moreover the value of a character constant assigned to a numeric-type identifier will be dependent upon the particular character set in use. This may result in inconsistencies from one version of C to another. The careless use of type conversions is a frequent source of error among beginning programmers. EXAMPLE 3.22 EXAMPLE 3.23 EXAMPLE 3.24 EXAMPLE 3.25 THE CONDITIONAL OPERATOR Simple conditional operations can be carried out with the conditional operator (? :). An expression that makes use of the conditional operator is called a conditional expression. Such an expression can be written in place of the more traditional if -else statement, which is discussed in Chap.6. A condition expression is written in the form expression 1 ? expression 2 : expression 3 When evaluating a conditional expression, expression 1 is evaluated first. If expression 1 is true (i.e., if, its value is nonzero), then expression 2 is evaluated and this becomes the value of the conditional expression. However, if expression 1 is false (i.e., if its value is zero),then expression 3 is evaluated and this becomes the value of the conditional expression. Note that only one of the embedded expressions (either expression 2 or expression 3) is evaluated when determining the value of a conditional expression. EXAMPLE 3.26 EXAMPLE 3.27 EXAMPLE 3.28 EXAMPLE 3.29 LIBRARY FUNCTIONS The C language is accompanied by a number of library functions that carry out various commonly used operations or calculations. These library functions are not a part of the language per se, though all implementations of the language include them. Some functions return a data item to their access point; others indicate whether a condition is true or false by returning a 1 or a 0, respectively; still others carry out specific operations on data items but do not return anything. Features which tend to be computer-dependent are generally written as library functions. For example, there are library functions that carry out standard input/output operations (e.g., read and write characters, read and write numbers, open and close files, test for end of file, etc.), functions that perform operations on characters (e.g., convert from lower- to uppercase, test to see if a character is uppercase, etc.), and function that perform operations on strings (e.g., copy a string, compare strings, concatenate strings, etc.), and functions that carry out various mathematical calculations (e.g., evaluate trigonometric, logarithmic and exponential functions, compute absolute values, square roots, etc.). Other kinds of library functions are also available. Library functions that are functionally similar are usually grouped together as (compiled) object programs in separate library files. These library files are supplied as a part of each C compiler. All C compilers contain similar groups of library functions, though they lack precise standardization. Thus there may be some variation in the library functions that are available in different versions of the language. A typical set of library functions will include a fairly large number of functions that are common to most C compilers such as those shown in Table 3-2 below. Within this table, the column labeled type refers to the data type of the quantity that is returned by the function. The void entry shown for function srand indicates that nothing is returned by this function. A more extensive list, which includes all of the library functions that appear in the programming examples presented in this book, is shown in Appendix H. For complete list, see the programmers reference manual that accompanies your particular version of C. A library function is accessed simply by writing the function name, followed by a list of arguments that represent information being passed to the function. The arguments must be enclosed in parentheses and separated by commas. The arguments can be constants, variable names, or more complex expressions. The parentheses must be present, even if there are no arguments. A function that returns a data item can appear anywhere within an expression, in place of a constant or an identifier(i.e., in place of a variable or an array element). A function that carries out operations on data items but does not return anything can be accessed simply by writing the function name, since this type of function reference constitutes an expression statement. Table 3-2 Some Commonly Used Library Functions Function Type Purpose abs(i) Int Return the absolute value of i. ceil(d) double Round up to the next integer value (the smallest integer that is greater than or equal to d). cos(d) double Return the cosine of d. cosh (d) double Return the hyperbolic cosine of d. exp (d) double Raise e to the power d (e =2.7182818. .. is the base of the natural (Naperian) system of logarithms). fabs (d) double Return the absolute value of d. floor (d) double Round down to the next integer value (the largest integer that does not exceed d). fmod (d1,d2) double Return the remainder (i.e., the noninteger part of the quotient) of d1/d2, with same sign as d1. getchar () int Enter a character from the standard input device. log (d) double Return the natural logarithm of d. pow (d1,d2) double Return d1 raised to the d2 power. printf(†¦) int Send data items to the standard output device (arguments are complicated see Chap. 4). pitcher  © int Send a character to the standard output device rand ( ) int Return a random positiv e integer. sin (d) double Return the sine of d. sqrt (d) double Return the square root of d. srand (u) void Initialize the random number generator. scanf(†¦) int Enter data items from the standard input device (arguments are complicated see Chap. 4). tan (d) double Return the tangent of d. toascii  © int Convert value of argument to ASCII. tolower  © int Convert letter to lowercase toupper  © int Convert letter to uppercase. Note: Type refers to the data type of the quantity that is returned by the function. c denotes a character-type argument i denotes an integer argument d denotes a double-precision argument u denotes an unsigned integer argument EXAMPLE 3.30 EXAMPLE 3.31 Review Questions 1. What is an expression? What are its components? 2. What is an operator? Describe several different types of operators that are included in C. 3. What is an operand? What is the relationship between operators and operands? 4. Describe the five arithmetic operators in C. Summarize the rules associated with their use. 5. Summarize the rules that apply to expressions whose operands are of different types. 6. How can the value of an expression be converted to a different data type? What is this called? 7. What is meant by operator precedence? What are the relative precedence’s of the arithmetic operators? 8. What is meant by associativity? What is the associativity of the arithmetic operators? 9. When should parentheses be included within an expression? When should the use of parentheses be avoided. 10. In what order are the operations carried out within an expression that contains nested parentheses? 11. What are unary operators? How many operands are associated with a unary op erator? 12. Describe the six unary operators discussed in this chapter. What is the purpose of each? 13. Describe two different ways to utilize the increment and decrement operators. How do the two method differ? 14. What is the relative precedence of the unary operators compared with the arithmetic operators? What is their associativity? 15. How can the number of bytes allocated to each data type be determined for a particular C compiler? 16. Describe the four relational operators included in C. With what type of operands can they be used? What type of expression is obtained? 17. Describe the two equality operators included in C. How do they differ from the relational operators? 18. Describe the two logical operators included in C. What is the purpose of each? With what type of operands can they be used? What type of expression is obtained? 19. What are the relative precedence’s of the relational, equality and logical operators with respect to one another and with respect to the arithmetic and unary operators? What are their associativities? 20. Describe the logical not (logical negation) operator. What is its purpose? Within which precedence group is it included? How many operands does it require? What is its associativity? 21. Describe the six assignment operators discussed in this chapter. What is the purpose of each? 22. How is the type of an assignment expression determined when the two operands are of different data types? In what sense is this situation sometimes a source of programming errors? 23. How can multiple assignments be written in C? In what order will the assignments be carried out? 24. What is the precedence of assignment operators relative to other operators? What is their associativity? 25. Describe the use of the conditional operator to form conditional expressions. How is a conditional expression evaluated? 26. How is the type of a conditional expression determined when its operands differ in type? 27. How can the conditional op erator be combined with the assignment operator to form an if -else type statement? 28. What is the precedence of the conditional operator relative to the other operators described in this chapter? What is its associativity? 29. Describe, in general terms, the kinds of operations and calculations that are carried out by the C library functions. 30. Are the library functions actually a part of the C language? Explain. 31. How are the library functions usually packaged within a C compiler? 32. How are library functions accessed? How is information passed to a library function from the access point? 33. What are arguments? How are arguments written? How is a call to a library function written if there are no arguments? 34. How is specific information that may be required by the library functions stored? How is this information entered into a C program? 35. In what general category do the #define and #include statements fall? INTRODUCTION C supports a rich set of operators. We have already used several of them, such as =, +. -, *, and, C operators can be classified into a number of categories. They include: 1. Arithmetic operators. 2. Relational operators. 3. Logical operators. 4. Assignment operators. 5. Incrementand decrement operators. 6. Conditional operators. 7. Bitwiseoperators. 8. Speciaolperators. 3.2 ARITHMETIC OPERATORS C provides all the basic arithmetic operators. They are listed in Table 3.1. The operators +, -, * and I all work the same way as they do in other languages. These can operate on any built-in data type allowed in C. The unary minus operator, in effect, multiplies its single operand by -1. Therefore, a number preceded by a minus sign changes its sign. Table 3.1 Arithmetic Operators Operator Meaning + Addition or unary plus Subtraction or unary minus * Multiplication / Division % Modulo division Integer division truncates any fractional part. The modulo division produces the remainder of an integer division. Examples of arithmetic operators are: a – b a + b a * b a / b a % b -a * b Here a and b are variables and are known as operands. The modulo division operator % cannot be used on floating point data. Note that C does not have an operator for exponentiation. Older versions of C does not support unary plus but ANSI C supports it. Integer Arithmetic When both the operands in a single arithmetic expression such as a+b are integers, the expression is called an integer expression, and the operation is called integer arithmetic. Integer arithmetical ways yields an integer value. The largest integer value depends on the machine, as pointed out earlier. In the above examples, if a and b are integers, then for a = 14 and b = 4 we have the following results: a b = 10 a + b = 18 a*b=56 a / b = 3 (decimal part truncated) a % b = 2 (remainder of division) During integer division, if both the operands are of the same sign, the result is truncated towards zero. If one of them is negative, the direction of truncation is implementation dependent. That is, 6/7 = 0 and -6/-7 = 0 but -6/7 may be zero or -1. (Machine dependent) Similarly, during modulo division, the sign of the result is always the sign of the first operand (the dividend.) That is -14 % 3 = -2 -14 % -3 = -2 14 % -3 = 2 EXAMPLE 3.1 Real Arithmetic An arithmetic operation involving only real operands is called eal arithmetic. A real operand may assume values either in decimal or exponential notation. Since floating point values are rou

Saturday, January 18, 2020

Bias of Roots and Culture Essay

Discussing roots and culture is often a very subjective topic. Quite often, the same story is interpreted entirely differently, depending on who is telling the story. This principle is also true in fictional works. A narrator will bring his/her own perspective and biases into the events that he or she is telling about. In Raymond Carver’s Cathedral, the first-person narrator has several biases that are used to reveal character. This first-person narrator has both positive and negative biases, and insights that clearly represent his character. The narrator in Cathedral has biases that serve to create his character well. Some of these are positive, and some are negative. The first clear bias that is made clear is a positive one. In the introduction of the story, as the narrator is giving background information on his wife, he speaks of her first husband. The manner in which he speaks of her impresses upon the reader of how little this first marriage matters to him, and thus shows that he acknowledges his wife has a past, and that he loves her just the same. Carver shows the narrators’ indifference to this first husband when â€Å"why should he have a name? † (Responding to Literature, 439) is asked. Another one of the biases the narrator has does not serve to create such a positive picture of him. This negative bias is the narrators’ bias against the blind in the beginning of the story. He speaks of them as very somber, as his idea of blind people was that all the â€Å"blind moved slowly and never laughed. † (438) These insights into the mind of the first-person narrator help to establish him as a character. The use of first-person narration in Raymond Carvers Cathedral serves to establish the narrator as a legitimate character well. The reader is given direct insight into the thoughts of the narrator, which would not be possible from other perspectives. For example, the reader is given a direct path into the narrators’ thoughts of the blind mans’ wife, Beulah. Without the words actually being spoken, the reader knows that the narrator feels sorry for her, without having ever met the blind man. He believes that Beulah must have had a â€Å"pitiful life† since she could â€Å"never see herself as he was seen in the eyes of her loved one†(440). Wordless insights into thoughts, such as this, are the true point of having a first-person narrator; because not only is the reader given a picture of the narrators’ thoughts, it serves to create a more dynamic, lifelike character, and not merely a lifeless voice that is tediously moving through words. First-person narration is always all about perspective, and consequently, bias. All first-person narration in fiction is chosen specifically for the purpose of having that bias, and those individual ideas that make for an interesting telling of a story. Raymond Carver’s Cathedral uses the first person narration very well, for that exact purpose. This story’s biases and partialities are used to separate the reader, and only see the narrators’ version of what happened. Had the story been told from the perspective of the blind man, it would have been immensely different. Biases come from ones’ culture and environment. Ideally, stories and retellings of events would be completely honest; but prejudices and tensions gradually become the general theme of the story, to the point that roots, culture, and acceptance thereof become irrelevant, and nothing remains but intolerance.

Thursday, January 9, 2020

Top Choices of Drama Essay Thesis Samples

Top Choices of Drama Essay Thesis Samples Put simply, unless your objective is just to inform, your thesis is deemed persuasive. Students must think about the position they intend to argue, together with the assumptions of that position. Thus, it's recommended that you read through a selection of samples as a way to understand how thesis statements for various kinds of papers ought to be written. Some thesis statement samples are rather vague and crowded with an excessive amount of information that may help it become hard for you to comprehend when it has to do with writing. To be able to get more insights about how to deliver a great thesis, you should refer to the samples while additionally attempting to brainstorm on several ideas about the field of discussion. The topic is simply too large to really say something new and meaningful. You might have heard of something known as a thesis. Since a thesis is so essential, it's probably a great idea to examine some ideas on ho w to assemble a strong one. The Essentials of Drama Essay Thesis Samples You Will be Able to Learn From Starting Today Whenever you start to compose an essay, the very first paragraph of your piece ought to be your thesis statement. You should have a statement that isn't only easy to comprehend, but one that's debatable. Lastly, you are going to want to close your introductory paragraph. Each individual paragraph should concentrate on a particular element of the thesis. What's Truly Going on with Drama Essay Thesis Samples Emphasize only a couple of principal points so you may concentrate on it. Your thesis summarizes the argument you're going to be making in your paper, so you wish to make certain that your point of view is very clear and debatable. See what you could add to provide the reader a better take on your position right from the start. You are requested to convince your reader of your perspective. Your research paper has to be thesis-driven. Sample thesis sta tements provided by renowned sources are frequently the best. Nevertheless, you should check with your professor if you want to present your thesis somewhere else, including at the conclusion of your essay. There are several good analytical thesis statement examples online you may access to provide you with a clearer picture, a crystal clear and arguable thesis statement is essential for your paper as the whole text needs to be directed towards its defense. Much like any great thesis, you need to get as specific as possible. If you're still uncertain about how to compose a thesis statement or what a fantastic thesis statement is, be certain to talk with your teacher or professor to make sure to're on the right path. It's well worth reiterating that a great thesis statement is specific. A great thesis statement will accomplish exactly the same thing. Apparently, writing an essay on the subject of marijuana is too general. There's an endless number of different essay topics which can be analyzed. If you select a topic that's not of interest to you, it is going to show in your paper. The topic shouldn't be old or broad. In case you were requested to compose a vital essay about The Canterbury Tales, be sure you are conversant with the material. Leading off this issue sentence, you should now tell the reader a little more on the subject of the essay. You may be interested in travel essay examples. You may be interested in high school essay examples. The Basic Facts of Drama Essay Thesis Samples When it is all about figuring out how to compose an AP English synthesis essay, it is necessary to open the official AP website with the present requirements and study the grading rubric to comprehend what things to concentrate on. Understanding what makes a fantastic thesis statement is among the more important keys to writing a good research paper or argumentative essay. Obviously, how assertive you're in your thesis and the content you decide to include depends upon the kind of argumentative essay you're writing. Choosing fantastic thesis statement examples to utilize for writing can sometimes prove challenging to the majority of students. In making use of a thesis statement sample, it's also recommended that you determine the kind of essay paper that you want to write. A thesis is the consequence of a prolonged thinking approach. One other important lesson you're likely to learn from good thesis statement definition and examples readily available online is the need to thoroughly assess the central supporting line to make certain it aligns with the objective of the paper and the prompt. As you'll find out from different thesis examples, the referencing styles vary based on the paper or essay that you're writing. The in-depth study of the health condition has resulted in the overall look of a new therapy. Further inspect the core of your topic and focus on very specific regions of European travel that you may realistically cover and support with good evidence. You must construct a thesis which you are ready to prove employing the tools you've got available, without need ing to consult the world's foremost expert on the issue to supply you with a definitive judgment. A thesis is the consequence of a long thinking procedure and careful deliberation after preliminary research. An essential essay is intended to be informative, meaning all claims ought to be backed up by a credible evidence instead of simply stated because it strikes the author's fancy. An argumentative thesis must earn a claim that's logical and possible. A thesis statement can be in one, two or even 3 sentences at the conclusion of the conclusion, based on the amount of your paper and the essence of your argument. Your thesis statement should have the ability to effectively summarize the claim you are attempting to make.