Documents Found!
As seen in
Less Work, Better Grades
Join
Course Hero
Access
best resources
Ace
your classes
Ace your courses with Course Hero!
|
|
|
Study Smarter, Score Higher
Here are the top 5 related documents
...Name
trial 1 freezing temperature of p-dichlorobenzene mass p-dichlorobenzene mass unknown freezing temperature solution Kf p-dichlorobenzene Calculations Freezing point depression molality of solution moles unknown in solution molar mass unknonwn
o...
...Homework #22 1. A bottle on the laboratory shelf is labeled saturated NaCl The Bottle contains a clear solution on top of some white crystals. Describe the nature of the solution in terms of dissolving, recrystallization, and dynamic equilibrium.
2....
...Analysis of a Two-component Alloy Username (firstnamelastname) Section #N/A
Trial 1 mass alloy reacted Mass large bottle filled with water Mass large bottle after experiment Atmospheric Pressure Difference in water heights in bottle and beaker If wa...
...Name: _
February 22, 2007 Lehman, Spring 2007
Chemistry 142 Exam #1
Part I Multiple Choice
Direction. Choose the best answer for each of the following.
Question 1. A reaction has a rate law of, rate = k[X]. The slope of a plot of ln[X] vs t (time) ...
Document Content (unformatted)
Course Hero has millions of student submitted documents similar to the one
below including study guides, homework solutions, papers, exam answer keys and textbook solutions.
2060, CHEM section 1 Background and Chp. 2 Homework Due January 25, 2007, 1:30 PM! HOMEWORK #2 Printed Name: Group Name: 1. (2 pts.) Identify the Br nsted Lowry acids in the following reactions. a) b) c) d) Br nsted Lowry Br nsted Lowry Br nsted Lowry Br nsted Lowry Acid Base Conjugate acid Conjugate base : : : : 2. (2 pts.) Circle the acid/base definition that best describe following reactions: a) Br nsted Lowry or Lewis b) 3. (2 pts.) Circle the acid with the highest acidity? + a) CH3COOH b) H2O c) NH4 d) HCl 4. (2 pts.) Arrange the following in order of increasing basicity: I. OH II. Cl III. H2O IV. NH3 Br nsted Lowry or Lewis Weakest Strongest 5. (2 pts.) Circle the ion with highest basicity: O a) CH3CH2O b) CH3 C O c) Cl d) CH3CH2 6. (2 pts.) List the bonds in order of increasing acidity (least to most). F I H Br II H Cl H III I H IV Least Most 7. (2 pts.) Circle the substances that are Lewis bases: H2O I AlCl3 II CH H3C III CH3 IV F 8. (2 pts.) Circle stronger the base in the reaction if the equilibrium lies considerably to the right: O C H3C a) OH + CN H3C b) c) O C O + HCN d) 9. (2 pts.) Circle the role of methanol in the following reaction: a) Lewis acid b) Lewis base c) Br nsted acid d) Br nsted base 10. (3 pts.) Which is correct for statements about acid base equilibria? I. The pKa is the negative log10 of the acid equilibrium constant: True or False II. A stronger acid has a a smaller value pKa than a weaker acid: True or False III. A stronger base has a conjugate acid which has a pKa with a smaller value: True or False 11. (2 pts.) Circle the acid with highest acid strength among the following compounds: a) O Cl C H2 I C OH Br C H2 II O C F OH C H2 O C OH H C H2 O C OH III IV b) O OH F I F O OH F II III O OH F O OH IV 12. (2 pts.) Which is the proper reaction mechanism for the reaction of borontrifluoride and diethyl ether? a) :BF3 CH3CH2 O CH2CH3 + BF 3 CH3CH2 O - CH2CH3 - BF CH3CH2 b) BF3 CH3CH2 .. O .. CH CH 2 3 3 O + CH2CH3 c) :BF3 CH3CH2 O CH2CH3 CH3CH2 BF3 O + CH2CH3 d) BF3 CH3CH2 .. O .. CH CH 2 3 + BF 3 CH3CH2 O - CH2CH3
Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more.
Course Hero has millions of course related materials that will enable you to learn better,
faster and get an A in all your courses.
Below is a small sample set of documents:
Below is a small sample set of documents:
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#3 CHEM2060,section1Spring2007 PrintedName: BackgroundandChps.3&4 HomeworkFebruary1,2007by1:30PM! GroupName: 1.(4pts.)Circlethecorrectclassificationsthatappliestothefollowinghydrocarbons. Hydrocarbon H2 C H2C HC CH2 CH Classification saturat...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#4 CHEM2060,section1Spring2007 PrintedName: BackgroundandChps.4&5 HomeworkFebruary8,20071:30PM! GroupName: 1.(2pts.)Circletheisopreneunitsandgivethenumberofisopreneunitsinthe structureofVitaminA: Number of isoprene units: 2.(3pts.)Labelthec...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#5 CHEM2060,section1Spring2007 PrintedName: BackgroundandChps.6&7 HomeworkMarch1,2007by1:30PM! GroupName: 1.(4pts.)Circlethecorrecttypesofisomerismthatappliestothefollowingorganic compounds. Compound Isomerism Constitution Constitutiona Const...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#6 CHEM2060,section1Spring2007 BackgroundandChps.8&9 HomeworkMarch8,2007by1:30PM! PrintedName: GroupName: 1.(5pts.)Circlethecorrecttypesofmechanismforthefollowingreactions. Reaction Nucleophilic Substitution/ Elemination Molecularity Mechani...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#7 CHEM2060,section1Spring2007 BackgroundandChps.9 HomeworkMarch15,2007by1:30PM! PrintedName: GroupName: 1.(4pts.)Givethenamesoffollowingaromaticcompounds. a) Name: a) (o,m,p): b) (2,3,4,5): b) Name: a) (o,m,p): b) (2,3,4,5): c) Name: a) (...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#8 CHEM2060,section1Spring2007 BackgroundandChps.10&13 HomeworkMarch20,2007by1:30PM! PrintedName: GroupName: 1.(4pts.)Givethenamesoffollowingaromaticcompounds. a) b) c) CH3 H H3C C N CH3 CH3 d) Name: a) Common: b) IUPAC: Name: a) Common: b...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#9 CHEM2060,section1Spring2007 BackgroundandChps.14,15&16 HomeworkApril17,2007by1:30PM! PrintedName: GroupName: 1.(4pts.)Givethenamesoffollowingaromaticcompounds. a) b) O C Name: a) Common: b) IUPAC: O d) H3C CH2 CH2 CH2 C OH Name: a) IUPAC...
LSU >> CHEM >> 2060 (Fall, 2008)
HOMEWORK#10 CHEM2060,section1Spring2007 BackgroundandChps.18 HomeworkApril24,2007by1:30PM! PrintedName: GroupName: 1.(6pts.)Circlethecorrectclassificationsthatapplytothefollowingcarbohydrates. Carbohydrate a) CnH2nOn= Formula Type Carbons Named Name...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 1 Covalent Bonding and Shapes of Molecules Multiple Choice 1. Which is the electronic configuration that describes Mg2+? (Sec. 1.2) a) 1s2, 2s2 b) 1s2, 2s2, 2p6 c) 1s2, 2s2, 2p6, 3s2 d) 1s2, 2s2, 2p6, 3s2, 3p6 2. Which is the electronic confi...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 2 Acids and Bases Multiple Choice 1. Identify the Brnsted-Lowry acids in the following reactions. (Sec. 2.3) CH3OH I + HCl II CH3OH2 III + Cl IV C2H5OH V a) b) c) d) + NaH VI C2H5ONa VII + H2 VIII I, III,VI, VII II, VI I, IV, V, ...
LSU >> CHEM >> 2060 (Fall, 2008)
...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 4 Alkenes and Alkynes Multiple Choice 1. Which are the approximate carbon-carbon bond angles at positions I and II in the following compound? (Sec. 4.2) I II a) b) c) d) 109, 109 120, 180 120, 109 109, 120 CH3 2. Which is the best descript...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 5 Reactions of Alkenes Multiple Choice 1. The reaction of propene with which of the following reagents are oxidation reactions? (Sec. 5.3 - 5.5) HBr/CH2Cl2 I a) b) c) d) II III I and V II and IV OsO4 II H2/Pt III Br2 IV H+/H2O V 2. Which poi...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 6 Chirality Multiple Choice 1. Which compounds contain stereocenters? (Sec. 6.3) I) 1-chloropentane II) 2-chloropentane III) 3-chloropentane IV) 1,2-dichloropentane a) b) c) d) I, II III, IV I, III II, IV 2. Which compounds contain stereocen...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 7 Haloalkanes Multiple Choice 1. Which of the following structures have the correct IUPAC name? (Sec. 7.2) Cl H C CH CH CH 2 2 3 CH3 CH3 F R-4-fluoro-4-methylcyclohexene II H Br H OCH3 meso-1,2-dibromo-1,2-dimethoxyethane III a) b) c) d) I, ...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 8 Alcohols, Ethers, and Thiols Multiple Choice 1. Which is the IUPAC name for the following structure? (Sec. 8.2) OH a) b) c) d) cyclohexenol 3-cyclohexen-1-ol 1-cyclohexen-4-ol 4-cyclohexenol 2. Which structures have the correct IUPAC name...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 9 Benzene and Its Derivatives Multiple Choice 1. Which structures have the correct IUPAC names? (Sec. 9.4) CH3 Br CH3 Cl Br I. 2-bromotoluene II. para methyl, meta chloro bromobenzene NO2 OCH3 Cl III. meta chloroaniline a) b) c) d) I, II ...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 10 Amines Multiple Choice 1. Which is the correct structure for diphenylamine? (Sec. 10.3) NH2 H a) b) N CH2 c) NH2 d) NH2 2. Which is the IUPAC name for the following structure? (Sec. 10.3) CH3 H H3C C CH3 a) b) c) d) N-methyl-tert-butyl...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 13 Aldehydes and Ketones Multiple Choice 1. Which compounds are named correctly? (Sec. 13.3) OH O CH CH3 O CH HO O CH3CHCOH o-hydroxybenzaldehyde I 2-methylbenzaldehyde II O CCH3 2-hydroxypropanoic acid III H H C C CO CH3 O O CH3CCH...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 14 Carboxylic Acids Multiple Choice 1. Which is the IUPAC name for the following compound? (Sec. 14.3) O H3C a) b) c) d) C O CH2 CH2 CH2 C OH 2-oxohexanoic acid 5-oxohexanoic acid methyl butyroxo ketone 4-ketopentanoic acid 2. Which is t...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 15 Functional Derivatives of Carboxylic Acids Multiple Choice 1. Which is the correct structure for phenyl benzoate? (Sec. 15.2) O a) CO O c) CH2OC d) b) O OCCH2 O CH2OCCH2 2. Which compounds are named correctly? (Sec. 15.2) O O O O O...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 16 Enolate Anions Multiple Choice 1. What is the order of increasing acidity for these compounds (least acidic first)? (Sec. 16.2) O CH3CH2OH I a) b) c) d) IV, III, II, I IV, II, III, I II, III, I, IV III, II, I, IV O CH3COCH3 III O CH3COH...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 18 Carbohydrates Multiple Choice 1. Which sugars and classifications are correctly matched? (Sec. 18.2) CH2OH O HO H HO H OH H CH2OH aldohexose I H H H CHO OH OH OH CH2OH aldotetrose II H HO H HO CHO OH H OH H CH2OH aldohexose III ketotetr...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 21 Lipids Multiple Choice 1. Which saturated fatty acids have the correct name? (Sec. 21.2) I) CH3(CH2)10COOH stearic acid II) CH3(CH2)14COOH palmitic acid III) CH3(CH2)16COOH lauric acid IV) CH3(CH2)18COOH arachidic acid a) b) c) d) I, I...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 1 Covalent Bonding and Shapes of Molecules Multiple Choice 1. Which is the electronic configuration that describes Mg2+? (Sec. 1.2) a) 1s2, 2s2 b) 1s2, 2s2, 2p6 c) 1s2, 2s2, 2p6, 3s2 d) 1s2, 2s2, 2p6, 3s2, 3p6 2. Which is the electronic conf...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 2 Acids and Bases Multiple Choice 1. Identify the Brnsted-Lowry acids in the following reactions. (Sec. 2.3) CH3OH I + HCl II CH3OH2 III + Cl IV C2H5OH V a) b) c) d) + NaH VI C2H5ONa VII + H2 VIII I, III,VI, VII II, VI I, IV, V,...
LSU >> CHEM >> 2060 (Fall, 2008)
...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 4 Alkenes and Alkynes Multiple Choice 1. Which are the approximate carbon-carbon bond angles at positions I and II in the following compound? (Sec. 4.2) I II a) b) c) d) 109, 109 120, 180 120, 109 109, 120 CH3 2. Which is the best descript...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 5 Reactions of Alkenes Multiple Choice 1. The reaction of propene with which of the following reagents are oxidation reactions? (Sec. 5.3 - 5.5) HBr/CH2Cl2 I a) b) c) d) II III I and V II and IV OsO4 II H2/Pt III Br2 IV H+/H2O V 2. Which po...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 6 Chirality Multiple Choice 1. Which compounds contain stereocenters? (Sec. 6.3) I) 1-chloropentane II) 2-chloropentane III) 3-chloropentane IV) 1,2-dichloropentane a) b) c) d) I, II III, IV I, III II, IV 2. Which compounds contain stereo...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 7 Haloalkanes Multiple Choice 1. Which of the following structures have the correct IUPAC name? (Sec. 7.2) Cl H C CH CH CH 2 2 3 CH3 CH3 F R-4-fluoro-4-methylcyclohexene II H Br H OCH3 meso-1,2-dibromo-1,2-dimethoxyethane III a) b) c) d) I,...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 8 Alcohols, Ethers, and Thiols Multiple Choice 1. Which is the IUPAC name for the following structure? (Sec. 8.2) OH a) b) c) d) cyclohexenol 3-cyclohexen-1-ol 1-cyclohexen-4-ol 4-cyclohexenol 2. Which structures have the correct IUPAC nam...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 9 Benzene and Its Derivatives Multiple Choice 1. Which structures have the correct IUPAC names? (Sec. 9.4) CH3 Br CH3 Cl Br I. 2-bromotoluene II. para methyl, meta chloro bromobenzene NO2 OCH3 Cl CH2CH3 III. meta chloroaniline a) b) c) d...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 13 Aldehydes and Ketones Multiple Choice 1. Which compounds are named correctly? (Sec. 13.3) OH O CH CH3 O CH HO O CH3CHCOH o-hydroxybenzaldehyde I 2-methylbenzaldehyde II 2-hydroxypropanoic acid III H H C C CO CH3 O O O CCH3 CH3C...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 14 Carboxylic Acids Multiple Choice 1. Which is the IUPAC name for the following compound? (Sec. 14.3) O H3C a) b) c) d) C O CH2 CH2 CH2 C OH 2-oxohexanoic acid 5-oxohexanoic acid methyl butyroxo ketone 4-ketopentanoic acid 2. Which is ...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 15 Functional Derivatives of Carboxylic Acids Multiple Choice 1. Which is the correct structure for phenyl benzoate? (Sec. 15.2) O a) CO O c) CH2OC d) b) O OCCH2 O CH2OCCH2 2. Which compounds are named correctly? (Sec. 15.2) O O O O ...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 16 Enolate Anions Multiple Choice 1. What is the order of increasing acidity for these compounds (least acidic first)? (Sec. 16.2) O CH3CH2OH I a) b) c) d) IV, III, II, I IV, II, III, I II, III, I, IV III, II, I, IV O CH3COCH3 III O CH3CO...
LSU >> CHEM >> 2060 (Fall, 2008)
Chapter 18 Carbohydrates Multiple Choice 1. Which sugars and classifications are correctly matched? (Sec. 18.2) CH2OH O HO H HO H OH H CH2OH aldohexose I H H H CHO OH OH OH CH2OH aldotetrose II H HO H HO CHO OH H OH H CH2OH aldohexose III ketotet...
LSU >> CHEM >> 2060 (Fall, 2008)
1 FORM2 Chemistry20601 EXAM#3April26,2005 Dr.TamaraNauman Directions:DONOTOPENYOURTESTUNTILEVERYONEHASACOPY! ENTER YOUR NAME ON BOTH SIDES OF THE SCANTRON SHEET. USING A #2 PENCIL,BUBBLEINYOURNAMEONSIDE2INTHEAPPROPRIATESPACES. INTHE\"G...
LSU >> LDP >> 105 (Fall, 2008)
#!/bin/bash # Validate that we get 1 and only 1 parameter case $# in 1) ; *) /usr/bin/echo Usage: $0 ip-address-or-dns-name exit 1 ; esac # the $1 parameter is the IP address assigned to our system # Establish today\'s date (for html) DATE=`/usr/bin/d...
LSU >> EE >> 3320 (Fall, 2008)
Code 1174 1358 1439 2312 2941 3256 3754 4853 4922 5709 5970 6033 6419 6857 6910 7038 7580 8464 8907 9231 9533 9969 hw3 9.5 4 4.5 8 4 10 7.5 9.5 4 10 7.5 8 7 7 10 8 9.5 8.5 7 4.5 7 hw4 7.5 6 2.5 4 3 8.5 4 9 3.5 5 3 8 4 4.5 6 4 5 9 5 5.5 6 Quiz2 8 9...
LSU >> EE >> 3320 (Fall, 2008)
...
LSU >> LDP >> 112 (Fall, 2008)
/*= Give a user program IO access : lp_tty_start.c = PURPOSE - show use of ioperm and exec to give a non-root program direct IO access to just lp0/1/2 and ttyS0/1/2/3. Priority is also adjusted. USAGE - ./ioperm_s...
LSU >> LDP >> 112 (Fall, 2008)
/*= basic IO access : port_write_then_read.c = PURPOSE - show port write and read. - usage ./port_write_then_read port_num value */ #include <stdio.h> #include <unistd.h> #include <sys/io.h> int main(int argc, char *argv[]) { /*- check ...
LSU >> LDP >> 112 (Fall, 2008)
/*= Give a user program IO access : iopl_start.c = PURPOSE - show use of iopl and exec to give a non-root program direct IO access, interrupt access, and set process priority. All forked and exec\'ed programs inherit IO acce...
LSU >> LDP >> 112 (Fall, 2008)
/*= Block IO access : blockio.c = PURPOSE - show use of block IO and blocking interrupts with an IO enabling program. Usage is./iopl_start ./block_io NOTE - Put a CRO on pin 2 of the PP port to see 1 us data changes. Pins 3-9 act as high order bits o...
LSU >> LDP >> 112 (Fall, 2008)
#!/bin/sh echo echo \" This script file looks like an application to the user\" echo \" and hides the fact that lp_tty_start has been used.\" echo \" It\'s only script line is-\" echo \" ./lp_tty_start ./port_read 888\" echo \" If lp_tty_start is being used re...
LSU >> LDP >> 112 (Fall, 2008)
/*= basic IO access : port_read.c = PURPOSE - show port read. - usage ./port_read port_num */ #include <stdio.h> #include <unistd.h> #include <sys/io.h> int main(int argc, char *argv[]) { /*- check have one parameter. */ if (argc != 2) { printf(\" U...
LSU >> LDP >> 112 (Fall, 2008)
/*= pp_skeleton.c = PURPOSE - this program will check to see what parallel and serial ports can be accessed by program code. It offers helpful suggestions about what to do if a port is not accessible. */ #include <s...
LSU >> LDP >> 112 (Fall, 2008)
/*= pp_access.h = PURPOSE - this module supports access to the parallel port. It has several key uses- - saving the initial pp state. - restoring the pp state. - maintaining an image of ...
LSU >> LDP >> 112 (Fall, 2008)
/*= pp_access.c = See pp_access.h for details. */ #include <stdio.h> #include <unistd.h> #include \"pp_access.h\" /*- init() - PURPOSE - given lp number 0-2, get lp base address, save registers, disable interrupts. */ v...
LSU >> LDP >> 112 (Fall, 2008)
/*= serial_access.h = PURPOSE - this module allows direct accesses a serial port. NOTE - this implementation is only useful if just one serial port is being controlled. An object solution would be much better for mul...
LSU >> LDP >> 112 (Fall, 2008)
/*= serial_access.c = See serial_access.h for details. */ #include <stdio.h> #include <unistd.h> #include \"serial_access.h\" /*- serial_init() - PURPOSE - given serial number 0-4, get serial base address, save registers, disable...
LSU >> LDP >> 112 (Fall, 2008)
gcc -o pp_serial_check main.c pp_access.c serial_access.c ...
LSU >> SCIENCE >> 1001921 (Fall, 2008)
COLLEGE OF BASIC SCIENCES LOUISIANA STATE UNIVERSITY 338 Choppin Hall Baton Rouge, LA 70803 Business 225-578-8859 Academics 225-578-4200 Fax 225-578-8826 Suggested Reading List for Pre-health Professions Students On Admissions and Applicatio...
LSU >> EE >> 4770 (Fall, 1999)
07-1 Temperature 07-1 Denition: The translational (e.g., wiggling around) energy . . . . . . of particles in a system. No practical way to measure . . . . . . velocity of every particle . . . . . . in most systems of interest. Instead, temperature...
LSU >> LDP >> 112 (Fall, 2008)
#include <stdio.h> #include <stdlib.h> #define MAX 10 int A[MAX]; binary_search(int n, int key) { int low=0, high=n-1; int middle; while(low <= high) { /* find middle such that A[middle] = key. */ /* return middle. */ } return -1; } main() { int mid;...
LSU >> LDP >> 112 (Fall, 2008)
#include <stdio.h> #include <stdlib.h> #define MAX 10 main() { int A[MAX]; int mid; int n, key; int binary_search(int n, int key) { int low=0, high=n-1; int middle; while(low <= high) { /* find middle such that A[middle] = key. */ /*...
LSU >> LDP >> 112 (Fall, 2008)
#include <stdio.h> #include <stdlib.h> int x=0; void foo() { x+; } void bar() { int x = 10; foo(); } int main() { bar(); printf(\"x is %d\ \", x); return 0; } ...
LSU >> LDP >> 112 (Fall, 2008)
#include <stdio.h> #include <stdlib.h> int init_add(int i) { int add(int k) { return (i+k); } return add(10); } int main() { printf(\"%d\ \", init_add(10); return 0; } ...
LSU >> LDP >> 105 (Fall, 2008)
/* listing1.c */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/time.h> extern int errno; void *a...
LSU >> LDP >> 105 (Fall, 2008)
/* listing2.c */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/mman.h> #include <string.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/time.h> extern int errno; void *a...
LSU >> LDP >> 105 (Fall, 2008)
/* send.c */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <errno.h> #include <string.h> #define NMSGS 5 extern int errno; struct msgbuf { long mtype; char mtext[100]; }; int ma...
LSU >> LDP >> 105 (Fall, 2008)
/* recv.c */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/msg.h> #include <errno.h> #include <string.h> extern int errno; struct msgbuf { long mtype; char mtext[100]; }; int main() { int msgi...
LSU >> LDP >> 105 (Fall, 2008)
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/sem.h> #include <string.h> #include <errno.h> #include <signal.h> #include <ctype.h> #define NUM 1 #define SEMAPHORE_KEY 2004 exte...
LSU >> LDP >> 105 (Fall, 2008)
/* client.c * / #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #include <string.h> #include <errno.h> #define SERVER_IP \"127.0.0.1\" #define ADD...
LSU >> LDP >> 105 (Fall, 2008)
/* server.c * / #include <stdio.h> #include <stdlib.h> #include <sys/socket.h> #include <sys/types.h> #include <netinet/in.h> #include <string.h> #include <unistd.h> #include <errno.h> #define SADDR_LEN (sizeof(struct sockaddr) #define SERVER_PORT ...
LSU >> LDP >> 104 (Fall, 2008)
/* KEYBOARD HIT PROGRAM */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <pthread.h> #include <ctype.h> int filedes[2]; void *read_char() { char c; printf(\"Entering routine to read character.\ \"); while(1)...
LSU >> LDP >> 104 (Fall, 2008)
/* PROGRAM THAT READS ANY KEY HIT OF THE KEYBOARD*/ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <pthread.h> #include <ctype.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> extern int errn...
LSU >> LDP >> 104 (Fall, 2008)
/* PROGRAM THAT READ ANY KEY HIT OF THE KEYBOARD*/ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <pthread.h> #include <ctype.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> extern int errno...
What are you waiting for?