Write tests and code for each of the following requirements, in order.

Exercise 1 [5 points]:
Create the following classes shown in the UML diagram. Then, create PointTest.java class with main method to test all functionality of these classes.
Exercise 2 [10 points]:
The following figure shows a UML diagram in which the class Student is inherited from the class
Person
a. Implement a Person class. The person constructor takes two strings: a first name and a last name. The constructor initializes the email address to the first letter of the first name followed by first five letters of the last name followed by @tru.ca. If the last name has fewer than five letters, the e-mail address will be the first letter of the first name followed by the entire last name followed by a @tru.ca. Examples:
Name
Email Address
Jane Smith
[email protected]
Musfiq Rahman
[email protected]
John Morris
[email protected]
Mary Key
[email protected]
b. Override Object’s toString method for the Person class. The toString method should return the present state of the object.
c. Now, create a Student class that is a subclass of Person and implements Comparable interface.
d. The Student constructor will be called with two String parameters, the first name and last name of the student. When the student is constructed, the inherited fields lastName, firstName, and email will be properly initialized, the student’s gpa and number of credit will be set to 0. The variable lastIdAssigend will be properly incremented each time a Student object is constructed and the studentId will be set to the next available ID number as tracked by the class variable lastIdAssigend.
e. Override the object’s toString method for the Student class. The toString method should return the present state of the object. Note that it should use the toString() method from its superclass.
f. The addCourse() method should update the credits completed, calculate, and update the gpa value.
Use the following values for grade:
Example GPA calculation:
GRADE CREDIT CALCULATION
(A) 4.0 x 4 = 16.00
(B) 3.0 x 4 = 12.00
(B) 3.0 x 4 = 12.00
(A) 4.0 x 1 = 4.00
(C) 2.0 x 3 = 6.00
GPA = 50.00 / 16 = 3.125; the getGPA() method should return this value.
g. Students are compared to each other by comparing GPAs. Override the compareTo() method for the student class. Note that to override the compareTo() method, the Student class must implement Comparable interface.
Now, test your code with the supplied client code (StudentClient.java). Note: You should not modify this client code. We will use the same client code to test your classes.
Exercise 3 [10 points]:
In this exercise, you need to implement a class that encapsulate a Grid. A grid is a useful concept in creating board-game applications. Later we will use this class to create a board game. A grid is a two-dimensional matrix (see example below) with the same number of rows and columns. You can create a grid of size 8, for example, it’s an 8×8 grid. There are 64 cells in this grid. A cell in the grid can have any arbitrary value. Later in this course, we will learn how to create a cell that can hold any arbitrary values. However, for the time being, we will assume that the cell-values are non-negative integers. If a cell contains a value ‘0’ that means, the cell is empty. To identify a cell, you need row number and column number, for example, cell (1, 3) means 3rd cell of the
1st row. You need to create a class that satisfies the following requirements.
Tasks
Write tests and code for each of the following requirements, in order. The words in bold indicate message names. Whenever a requirement says the user can “ask whether…”, the expected answer is boolean. Whenever a requirement speaks of a “particular” item, then that item will be an argument to the method.
1. The user can create a Grid specifying the number of row and column. Also the user can create a Grid specifying the size only.
2. The user can ask a Grid whether its isEmpty. A grid is empty when all the cells of the grid is empty.
3. The user can clear all the cells of the grid. It’s a void method.
4. The user can ask a Grid whether a particular cell isValid.
5. The user can ask a Grid to set a particular value by setValue to a particular row and col. The grid sets the value only if that cell is valid.
6. The user can ask a Grid to getValue (in this case integer) from a particular row and col. The grid returns the value only if the locations are valid.
7. The user can ask a Grid to set part of its row and column with particular values. Example, setCells(int rows[], int cols[], int vals[]), in this method user can specify the indexes of rows and columns that the user wants to set with some particular values (supplied in vals array). Note that, rows, cols, and vals arrays should be of same size.
8. Make another overridden method for setCells(int rows[], int cols[], int v), that will set particular rows and cols of a grid with a particular value.
Apart from these basic requirements, feel free to add more behaviors to the Grid class that you think appropriate. Please provide explanation for those behaviors as a comment in the source file.
Write a test class to test the behaviours of the Grid class and submit the test class as well.
Note: A grid is composed of many cells. So, you may want to decompose the grid into a Cell class that encapsulates all the necessary behavior of a cell in the grid
Exercise 4 [10 points]:
Introduction
This exercise asks you to implement a small class that will later serve as part of larger programs. You will implement a new kind of number, a BoundedInteger.
When we write programs to solve problems in the world, we often need to model particular kinds of values, and those values don’t match up with the primitive types in our program language. For example, if we were writing a program to implement a clock or a calendar, then we would need numbers to represent minutes or days. But these numbers aren’t Java integers, which range from -231to 231-1; they range from 0 to 59 and 1 to 31 (or less!), respectively. Java’s base types are useful building blocks, but at the level of atoms, not molecules.
Tasks
Write a class for representing bounded integers.
A bounded integer takes integer values within a given range. For example, the minutes part of a time takes values in the range [0..59]. The next minute after 59 is 0. The minute before 0 is 59.
Object creation
We want to be able to create bounded integers in two ways.
1. We specify the object’s lower bound, its upper bound, and its initial value.
2. We specify only the object’s lower bound and its upper bound. The object’s initial value is the same as its lower bound.
Of course, this means that you need to write two constructors.
We would like to be able to use bounded integers in much the same way we use regular ints.
Arithmetic operations
We would like to be able to:
• add an int to a bounded integer.
• subtract an int from it.
• increment and decrement it.
A bounded integer “wraps around” when it does such arithmetic. For example, suppose that we have a minutes bounded integer whose value is 52. Adding 10 to this object gives it a value of 2.
Value operations
We would like to be able to:
• ask a bounded integer for its value as an int.
• change its value to an arbitrary int.
• print its value out. The way to do this in Java is for the object to respond to toString() message by returning a String that can be printed.
If we try to set a bounded integer to a value outside of its range, the object should keep its current value and print an error message to System.err. or System.out.
Comparison operations
We would like to be able to:
• ask one bounded integer if it is equal to another.
• ask one bounded integer if it is less than another.
• ask a bounded integer if a particular int is a legal value for the bounded integer. For example, 23 is a legal value for the minutes bounded integer, but 67 is not.
The answer to each of these questions is true or false.
You may implement these requirements in any order you choose, though you’ll need at least one constructor before you can test any of the others. Write a class to test your code and submit that test class as well.
Some Suggestions for Coding:
To write your program, first write a test that expresses what you would like your code to do, and then write the code to do it. Take small steps, and your tests will give you feedback as soon as possible.
Exercise 5 [15 Points]
For this exercise, you will design a set of classes that work together to simulate a parking officer checking a parked car issuing a parking ticket if there is a parking violation. Here are the classes that need to collaborate:
• The ParkedCar class: This class should simulate a parked car. The car has a make, model, color, license number.
• The ParkingMeter class: This class should simulate a parking meter. The class has three parameters:
− A 5-digit ID that identifies the meter.
− A reference to the car (ParkedCar object) that is currently parked at the meter. If no car is parked, this parameter should be set to null (in this case, make sure to return “Car: none” in your toString method).
− Whether the meter has expired or not.
− The current time (you may simulate the current time).
• The ParkingTicket class: This class should simulate a parking ticket. The class should report:
− The make, model, color and license number of the illegally parked car.
− Meter ID
− The current time.
− The amount of fine, which is $25 if the meter has expired and the current time is between 9 a.m. and 5 p.m. and $10 if the meter has expired and the current time is between 5.01 p.m. and 8.59 a.m.
− The name and badge number of the police officer issuing the ticket (DO NOT store ParkingOfficer object).
• The ParkingOfficer class: This class should simulate a parking officer inspecting parked cars. The class has
− Officer’s name and badge number
− isExpired method that examines the ParkingMeter object and determines whether the meter has expired.
− A method that examines the given parking meter and returns a parking ticket (generates a ParkingTicket object) if the meter has expired. If it is not expired or no car is parked at the meter, return null value.
You may include instance variables and public interfaces in each class as you may find appropriate. Also add appropriate error checks.
Write a client program that demonstrates how these classes collaborate. In addition, you should create a UML diagram for demonstrating relationship among the classes and submit that UML as part of your submission.
Here are some examples of your output. They need not be exactly as shown. Feel free to be creative, but you should test your program for all cases.
Parking Meter: 34521 Time: 8.00 p.m.
No car parked.
Parking Meter: 45673 Time: 4.54 p.m.
Car Parked: Lexus ES350, Black, ABC123
Meter: Not expired
Parking Meter: 98764 Time: 5.01 p.m.
Car Parked: Toyota Camry, Red, EFL786
Meter: Expired
Parking Ticket Issued
Toyota Camry, Red, EFL786
Meter ID: 98764 Time: 5.01 p.m.
Fine Amount: $10
Issuing Officer: G.Bertrand, IO5674
attachmentCOMP_1230_LAB_3_Summer19.docxattachmentStudentClient.javaattachmentstd.txt

What are the functional divisions of the nervous system?

Sensory
Motor Nervous System.

Functional Division of the nervous system :
The sensory system receives sensory information from receptors and transmits to the brain or spinal cord. This system is further divided into somatic and visceral divisions.
The somatic division receives information from skin, skeletal muscles, joints and special sense organs. The visceral division receives information from viscera.
On the other hand, the motor system sends impulses from the brain or spinal cord to muscles and glands. Somatic motor and autonomic motor are the two divisions of the motor system.
Somatic motor division sends information to skeletal muscles. And the autonomic motor division sends information to cardiac muscle, smooth muscle and glands.

Conduct a mail merge using the City of Floma Council Members sheet of the w00_cumexam_council Excel file as the data source.

Prepared Exam
Exploring Microsoft Word 2016, Volume 1
City of Floma Audit Report
Your skills with Microsoft Word are highly regarded by the partners in the consulting firm that hired you. You are tasked with finishing the 2018 annual audit report for the City of Floma. The audit report has been completed by consultants and the lead consultant wrote an executive summary. You will insert the executive summary in the report, format the report professionally and prepare a mail merge to the city council members that includes a link to the report.
Document Formatting
a. Open w00_cumexam_data and save it as w00_cumexam_LastFirst.
b. Begin by inserting a cover page which serves as the city’s document standard. Choose the Whisp cover page. Type Fiscal Year 2018 Audit Report in the Document title placeholder. Delete the Document subtitle, Date, and Author placeholders. Type Garcia, Yung & Carter, Auditors in the Company name placeholder.
c. Change the document’s color scheme to Yellow Orange.
d. Delete the first two paragraphs on page two.
e. In the blank paragraph under the heading Executive Summary, insert the text from the document w00_cumexam_exec. Delete the blank paragraph above the heading Introduction.
f. Create a header with Fiscal Year 2018 Audit Report centered and City of Floma right aligned. Create a 3 pt bottom paragraph border in Light Yellow, Background 2, Darker 10%.
g. Insert an Accent Bar 1 Bottom of Page page number. Ensure that the header and footer on the first page are different and have no text in them.
h. Modify the line spacing of the Normal style to 1.5. Add a first line indent of 0.3”.
i. Modify the styles Heading 1 and Heading 2 to remove the first line indent.
Organize Data in Tables
j. Insert a blank paragraph at the end of the document. Select the heading Supporting Tables on page three and the table underneath and move them to the bottom of the document. Insert a page break before the heading Supporting Tables.
k. Select the table under the heading Supporting Tables and apply the style No Spacing.
l. Add a table caption below the table with the text Table 1: Overtime analysis. The label Table 1 is added by Word.
m. Apply the Plain Table 3 table style.
n. Replace the hyphen in Full-time in row 1, column 2 with a non-breaking hyphen.
o. Bottom left align the text in row 1, column 1. Bottom right align the text in all but the first column of row 1.
p. Adjust the width of column 1 so that the words Police Department do no break across two lines. Equally distribute the width of the other columns.
q. Merge the cells in columns 1 through 4 in the bottom row of the table. Type the text Total New Hires: (include the colon) in the merged cell. Right-align the text.
r. Insert a formula in row 4, column 5 to calculate the total new hires. Delete the comment left by Carter.
s. Review the document for spelling and grammar errors. Ignore all occurrences of the word Floma.
Improve Document Structure using References
t. Insert a Table of Contents before the heading Executive Summary. Choose Automatic Table 2. Modify the styles TOC 1 and TOC 2 to remove the first line indent.
u. Insert the following Document From Web site citation before the period ending the sentence The data was reviewed in the second paragraph below the heading Introduction:
Corporate Author: U.S. Government Accountability Office
Name of Web Page: Government Auditing Standards: 2011 Revision
Year: 2011
Month: December
Day: 1
URL: http://www.gao.gov/products/GAO-12-331G
Create a Mail Merge to Send the Executive Summary
v. Share the audit report document online and get a link.
w. Open w00_cumexam_letter and save it as w00_cumexam_letter_LastFirst.
x. Paste the link to the audit report document at the end of the line that starts with You may access.
y. Conduct a mail merge using the City of Floma Council Members sheet of the w00_cumexam_council Excel file as the data source.
z. Delete the word Dear on the first line, and then insert a greeting line using the format Dear Mr. Randall. Match the field Courtesy Title to Salutation. Preview the results.
aa. At the end of the letter, add two blank paragraphs. Leave the first blank. Type JoAnna Carter, CPA, insert a line break, and then type Lead Auditor.
bb. Complete the merge of the document producing a new document with four pages. Save the merged document as w00_cumexam_merged_LastFirst.
cc. Save and close all files. Based on your instructor’s directions, submit the following: w00_cumexam_LastFirst (the audit report)
w00_cumexam_letter_LastFirst (the mail merge document)
w00_cumexam_merged_LastFirst (the merged letters)
attachmentWordTestOutMaterial.zip

Parental Style and Socio-Emotional Development in Middle Childhood

The textbook highlights four distinct styles of parenting: authoritarian, authoritative, permissive, and uninvolved. Conduct an Internet search to broaden your understanding of these styles.
Write a short essay (500-750 words) in which you:
First, define each style.
Then, explore each style’s effect on the socioemotional development of a 10-year-old child.
Prepare this assignment according to the guidelines found in the APA Style Guide, located in the Student Success Center. An abstract is not required.
This assignment uses a rubric. Please review the rubric prior to beginning the assignment to become familiar with the expectations for successful completion.
You are required to submit this assignment to Turnitin. Please refer to the directions in the Student Success Center.

Define networking, tell how it works, and explain how it can help Pentium?

Use information from chapters 1 – 4 for this paper.
Suppose that the CEO of Pentium Inc. approaches you seeking advice onimproving their computer network at their company. At the moment, theirorganization has numerous computers (all networked) which are shared by astaff of 100. The staff are based out of the Pittsburgh headquarter locationalong with a facility located in Los Angeles and New York City.Unfortunately the organization is having problems with the network since itwas not installed properly and due to its old age (it was installed in 1995).
The current network environments consists of the following:
Various Stand Alone systems along with numerous Peer to Peer networksModem connections to remote officesNetwork equipment that doesn’t meet generally accepted networking standards(i.e. OSI / TCP/IP or DoD)Few systems connected to the Internet
The employees of Pentium Inc. are requesting that the new network be fast,flexible and able to meet the needs of their fast growing company. Write apaper to the CEO on the following elements:
Define networking, tell how it works, and explain how it can help Pentium,Inc. (Chapter 1)Identify what type of network would be best for this organization (especiallyto connect the different locations to each other) (Chapter 1)Explain why networking standards are important and why equipment that usesthese standards should be purchased (Chapter 2)Compare the use of Ethernet and Token Ring and the devices (i.e. hubs,bridges, etc) needed to implement each type of network (Chapter 3)Compare and contrast TCP/IP and AppleTalk features and benefits (Chapter 3)Compare and contrast peer-to-peer, client/server, and directory servicesnetworks (Chapter 4)Write a summary describing which technology you recommend installing and why.3 to 4 pages plus works cited MLA format and cover pageintro_to_networking_basics_2nd_edition.compressed.pdfAttachments:Number of pages: 3
attachmentintro_to_networking_basics_2nd_edition.compressed.pdf

at risk | Nursing School Essays

For this unit, you will discuss school issues that influence at-risk children and youth and examine school structures, programs, and services that are most effective for helping at-risk youth in the educational setting. Describe several qualities that you feel make up an effective school environment. Be very detailed and specific. How do these qualities address the needs of at-risk youth? How might these qualities help the overall school structure and serve as a protective factor for at-risk children and youth even outside of the school environment? What kinds of policies and programs would help ensure that at-risk youth and/or children with special needs are successful in school? What can advocates do to ensure that these qualities, programs, and services are consistently implemented in school systems and that the schools adhere to legal and ethical guidelines?

Determine the Risks (Identify and evaluate the types of risk that the project may encounter.)

Continue to use the case study (A&D High Tech) and Risk Management Plan Template to identify, evaluate, and assess risk. For this part of your risk plan, use qualitative and quantitative processes, such as:
Sensitivity analysis.Expected monetary analysis.Monte Carlo simulation.Decision tree analysis.PERT tree analysis.Also, use compare and contrast techniques for identifying risks, such as:
Brainstorming.The Delphi Technique.Ishikawa diagrams.Interviewing processes.Include the following sections in your Risk Management Plan submission:
3.1 Determine the Risks (Identify and evaluate the types of risk that the project may encounter.)3.2 Evaluate and Assess the Risks (Define the elements of the risk breakdown structure for use in evaluating project risk. Analyze the impact of risk on project outcomes. Integrate risk analysis techniques to create a risk breakdown structure).3.3 Qualitative and Quantitative Processes (Apply qualitative and quantitative risk analysis. Use sensitivity analysis, expected monetary analysis, decision tree analysis, Monte Carlo simulation, and/or the PERT tree analysis).attachmentkel156-pdf-eng.pdf

Identify moral and ethical issues you may face when caring for an uninsured or underinsured patient.

Identify moral and ethical issues you may face when caring for an uninsured or underinsured patient.3. Choose an ethical dilemma you might face in caring for this population.
4. Apply the MORAL model of ethical decision-making, Guido (2014) p. 44, to the chosen ethical dilemma.THE MODEL INCLUDES THE FOLLOWING STEPSM. Massage the dilemma:: Identify and define issues in the dilemma. Consider the opinions of the major players-patients, family ,members, nurses, physicians and other health care members.O. Outline the options::Examine all options fully, including the less realistic and conflicting ones. Make two lists identifying the pros and cons of all the options identified. This stage is designed to fully comprehend the options and alternatives available to make a final decision.R. Resolve the dilemma:: Review the issues and options, applying basic ethical principles of each option. decide the best option based on the views of all those concerned in the dilemma.A. Act by applying the chosen option::This step is usually the most difficult because it requires actual implementation, whereas the previous steps had allowed for only dialogue and discussion.L. Look back and evaluate::The entire process includes the implementation. NO process is complete without a thorough evaluation. Ensure that all those involved are able to follow through on the final option. If not, a second decision may be required and the process must start again at the initial step.PLEASE USE THIS BOOK AS ONE OF THE REFERENCESALSO INCULDE PAGE NUMBERS WITH REFERENCESBurkhardt, M. A., & Nathaniel, A. K. (2014). Ethics & issues in contemporary nursing (4th ed.) Stamford, CT: Cengage Learning

 

1. name the 6 steps of fertilization2. describe the 3 embryonic germ layers:3. describe the placenta

1. name the 6 steps of fertilization2. describe the 3 embryonic germ layers:3. describe the placenta.4. what are the four stages of birth?5. what are the effects of pregnancy on the mother?6. name 5 common abnormal chromosomal syndromes7. describe sex-linked inheritance8. define: genotype, karyotype, phenotype, gene theraphy, genomics, vectors for transport

What concepts from the various theories could be used in planning the 65-year-old womans care?

Use of Psychosocial Theories in Nursing In an interdisciplinary field such as nursing differing perspectives often contribute to greater understanding and fulfillment of a patients needs. Take a minute to think about how this relates to the theoretical foundations of nursing. How do theories from various fields inform nursing practice? For this Discussion you will explore how social and behavioral theories apply in a clinical setting by analyzing a case study.Case StudyConsider the following case: A 65-years-old woman is being admitted for a mastectomy due to cancer. She expresses fear and depression during the nursing assessment. What concepts from the various theories could be used in planning her care? How might her care be changed if the woman were 25 years old or 45 years old? How have the social psychology theories been used in promoting breast cancer awareness?To prepare:By tomorrow 7/18/17 post 550 words essay in APA format with a minimum of 3 references from the list below that include the level one heading as numbered below:Posta cohesive response that addresses the following:1) What concepts from the various theories could be used in planning the 65-year-old womans care?2) How might her care be changed if the woman were 25 years old or 45 years old?3) How have social psychology theories been used in promoting breast cancer awareness? Provide at least one example to support your response.4) How have social psychology theories been used in your clinical practice area? Provide at least one example to support your response.Required ReadingsMcEwin M. & Wills E.M. (2014). Theoretical basis for nursing. (4th ed.). Philadelphia PA: Wolters Kluwer Health.Chapter 13 Theories from the Sociologic SciencesChapter 14 Theories from the Behavioral SciencesChapter 13 and Chapter 14 discuss those theories from the social and behavioral sciences that are applicable to nursing and health care.Carnegie E. & Kiger A. (2009). Being and doing politics: An outdated model or 21st century reality? Journal of Advanced Nursing 65(9) 19761984. doi: 10.1111/j.1365-2648.2009.05084.xThis article uses critical social theory to analyze the political role of nurses. The article argues that nurses must be prepared for political participation in national and local contexts in order to encourage policy analysis and community engagement within nursing practice.Conrad P. & Barker K. (2010). The social construction of illness: Key Insights and policy implications. Journal of Health and Social Behavior: Special Issue 51 S67S79. doi: 10.1177/0022146510383495This article examines the history of the social construction of illness and discusses different methods in which the concept of illness is developed in different cultures.Ford C. L. & Airhihenbuwa C. O. (2010). Critical race theory race equity and public health: Toward antiracism praxis. American Journal of Public Health 100(S1) S30S35. doi: 10.2105/AJPH.2009.171058This article applies a theory from legal studies to racial inequality issues in health care in order to improve social consciousness and quality of care.Kelly C. (2008). Commitment to health theory. Research & Theory for Nursing Practice 22(2) 148160.This article reviews the Commitment to Health (CTH) theory the theorys assumptions and application to nursing and health care.Ryan P. (2009). Integrated theory of health behavior change: Background and intervention development. Clinical Nurse Specialist 23(3) 161170.This article examines the application of health behavior theory to clinical practice.Optional ResourcesByrd M. (2006). Social exchange as a framework for client-nurse interaction during public health nursing maternal-child home visits. Public Health Nursing 23(3) 271276. doi: 10.1111/j.1525-1446.2006.230310.xMohammed S. (2006). Scientific inquiry. (Re)examining health disparities: critical social theory in pediatric nursing. Journal for Specialists in Pediatric Nursing 11(1) 6871. doi:10.1111/j.1744-6155.2006.00045.x