,”A Mathematical Theory of Communication,”

Read and comprehensively understand Dr Shannon’s classic paper, Shannon, Claude E ..,,”A Mathematical Theory of Communication,” Bell System Technical Journal.27(3) page 379-423 (attached below): provide a brief report. The report should be at least 10 pages.

Sample Solution

The post ,”A Mathematical Theory of Communication,” appeared first on homework handlers.

Theory and design

The first project involves modifying the attached lexical analyzer and the compilation listing generator code. You need to make the following modifications to the lexical analyzer, scanner.l:

  1. A new token ARROW should be added for the two character punctuation symbol =>.
  2. The following reserved words should be added:

case, else, endcase, endif, if, others, real, then, when

Each reserved words should be a separate token. The token name should be the same as the lexeme, but in all upper case.

  1. Two additional logical operators should be added. The lexeme for the first should be or and its token should be OROP. The second logical operator added should be not and its token should be NOTOP.
  2. Five relational operators should be added. They are =, /=, >, >= and <=. All of the lexemes should be represented by the single token RELOP.
  3. One additional lexeme should be added for the ADDOP token. It is binary -.
  4. One additional lexeme should be added for the MULOP token. It is/.
  5. A new token REMOP should be added for the remainder operator. Its lexeme should be rem.
  6. A new token EXPOP should be added for the exponentiation operator. Its lexeme should be **.
  7. A second type of comment should be added that begins with // and ends with the end of line. As with the existing comment, no token should be returned.
  8. The definition for the identifiers should be modified so that underscores can be included, however, consecutive underscores, leading and trailing underscores should not be permitted.
  9. A real literal token should be added. It should begin with a sequence of one or more digits following by a decimal point followed by zero or more additional digits. It may optionally end with an exponent. If present, the exponent should begin with an e or E, followed by an optional plus or minus sign followed by one or more digits. The token should be named REAL_LITERAL.
  10. A Boolean literal token should be added. It should have two lexemes, which are true and false. The token should be named BOOL_LITERAL.

You must also modify the header file tokens.h to include each the new tokens mentioned above.

The compilation listing generator code should be modified as follows:

  1. The lastLine function should be modified to compute the total number of errors. If any errors occurred the number of lexical, syntactic and semantic errors should be displayed.

If no errors occurred, it should display Compiled Successfully. It should return the total number of errors.

  1. The appendError function should be modified to count the number of lexical, syntactic and semantic errors. The error message passed to it should be added to a queue of messages that occurred on that line.
  2. The displayErrors function should be modified to display all the error messages that have occurred on the previous line and then clear the queue of messages.

An example of the output of a program with no lexical errors is shown below:

1 (* Program with no errors *)

2

3 function test1 returns boolean;

4 begin

5 7 + 2 > 6 and 8 = 5 * (7 – 4);

6 end;

Compiled Successfully

Here is the required output for a program that contains more than one lexical error on the same line:

1 — Function with two lexical errors

2

3 function test2 returns integer;

4 begin

5 7 $ 2 ^ (2 + 4);

Lexical Error, Invalid Character $

Lexical Error, Invalid Character ^

6 end;

Lexical Errors 2

Syntax Errors 0

Semantic Errors 0

You are to submit two files.

  1. The first is a .zip file that contains all the source code for the project. The .zip file should contain the flex input file, which should be a .l file, all .cc and .h files and a makefile that builds the project.
  2. The second is a Word document (PDF or RTF is also acceptable) that contains the documentation for the project, which should include the following:

a. A discussion of how you approached the project

b. A test plan that includes test cases that you have created indicating what aspects of the program each one is testing and a screen shot of your compiler run on that test case

Sample Solution

The post Theory and design appeared first on homework handlers.

Lab Capacitors and Inductors

This Lab has two parts. Please complete both.

Part 1: Build the following circuit in Multisim. Use a square wave and 10 Vp in the function generator.

Calculate the L/R time constant (The ratio of inductance in henry with the resistance in ohms is the time constant in seconds). What is the time constant (L/R)? • Use transient analysis to observe both the input and output of the RL voltage divider. Make a printout of the output. Initially the voltage across the inductor jumps to 20 V, there after the voltage decays exponentially to 0. • Use the cursors to find the amount of time it takes to decay to 36.8% (1/e) of the original (20V) voltage. What is the measured time constant? Show simulation and measurements. • This time should equal the time constant of the circuit (L/R), is it? Sometimes we use 1/3 as an approximation to 1/e. • How accurate is this approximation in percent? Show calculated versus measured accuracy.
Part 2: An inductor has a small amount of capacitance in parallel to the inductance. To illustrate the effect that this has, build the following circuit.

Run this circuit using the transient analysis (run the analysis for about 1 μ Sec). Now remove the capacitor and again run the analysis.

Plot both runs and then describe the difference between runs. • This is one reason that inductors are used much less frequently than capacitors and resistors. What is the difference?
Rules for lab submissions: 1. The lab document must be a Word document. PDF files are NOT accepted. 2. All screenshots must be included. 3. All Multisim screenshots must include the date/time stamp. See TOOLS AND TEMPLATES for the procedure to display the date and time. 4. Any and all Multisim files must be submitted. 5. Any equations used must be typed in Word. Copy and paste of equations from outside sources is prohibited. 6. No graphics are allowed in the Word document other than screenshots of circuits from Multisim and hardware if applicable, with the date/time stamp. 7. The lab template should be used. Specifically, it is brought to your attention that a summary MUST be provided explaining the results of the labs, the relationship of the results to expected results, and any challenges encountered. 8. Hardware portion of labs should include screenshots of the assembled circuit with your name and student GID number written on paper next to the circuit. There should be screenshots of the instrument readings with the date and time stamp on lower right corner clearly shown. See example below.

Any violation of the submission rules above will result in a grade of 1.

Lab 3 Grading Rubric

Demonstrate understanding of Capacitors and their functionality 10 points

Calculated results 10 points

Circuit design in Multisim 10 points

Measurement of time constant and decay of circuit 1 20 points

Transient analysis of circuit 2 20 points

Removal of capacitor and simulation 10 points

Analysis of results 10 points

Lab Report (includes table, measurement with proper units, screenshots, APA guidelines)

Sample Solution

The post Lab Capacitors and Inductors appeared first on homework handlers.

The code of ethics for nursing.

Develop a 20-minute presentation for nursing colleagues highlighting the fundamental principles of care
coordination. Create a detailed narrative script for your presentation, approximately 4–5 pages in length, and
record a video of your presentation.
Nurses have a powerful role in the coordination and continuum of care. All nurses must be cognizant of the
care coordination process and how safety, ethics, policy, physiological, and cultural needs affect care and
patient outcomes. As a nurse, care coordination is something that should always be considered. Nurses must
be aware of factors that impact care coordination and of a continuum of care that utilizes community resources
effectively and is part of an ethical framework that represents the professionalism of nurses. Understanding
policy elements helps nurses coordinate care effectively.
This assessment provides an opportunity for you to educate your peers on the care coordination process. The
assessment also requires you to address change management issues. You are encouraged to complete the
Managing Change activity.
Completing course activities before submitting your first attempt has been shown to make the difference
between basic and proficient assessment.
Demonstration of Proficiency
By successfully completing this assessment, you will demonstrate your proficiency in the course competencies
through the following assessment scoring guide criteria:
•Competency 2: Collaborate with patients and family to achieve desired outcomes. ◦Outline effective strategies
for collaborating with patients and their families to achieve desired health outcomes.
•Competency 3: Create a satisfying patient experience. ◦Identify the aspects of change management that
directly affect elements of the patient experience essential to the provision of high-quality, patient-centered
care.
•Competency 4: Defend decisions based on the code of ethics for nursing. ◦Explain the rationale for
coordinated care plans based on ethical decision making.
•Competency 5: Explain how health care policies affect patient-centered care. ◦Identify the potential impact of
specific health care policy provisions on outcomes and patient experiences.
•Competency 6: Apply professional, scholarly communication strategies to lead patient-centered care. ◦Raise
awareness of the nurse’s vital role in the coordination and continuum of care in a video-recorded presentation.
Script and reference list are not submitted.
Preparation
Your nurse manager has been observing your effectiveness as a care coordinator and recognizes the
importance of educating other staff nurses in care coordination. Consequently, she has asked you to develop a
presentation for your colleagues on care coordination basics. By providing them with basic information about
the care coordination process, you will assist them in taking on an expanded role in helping to manage the care
coordination process and improve patient outcomes in your community care center.
To prepare for this assessment, identify key factors nurses must consider to effectively participate in the care
coordination process.
You may also wish to:
•Review the assessment instructions and scoring guide to ensure you understand the work you will be asked to
complete.

Sample Solution

The post The code of ethics for nursing. appeared first on homework handlers.