Programming Language Syntax

Specifying syntax: Regular Expression and Context Free Grammar
The first three rules that define syntax include concatenation, alternation, and Kleene closure. A regular set or regular language refers to syntax derived from above rules. Regular sets are generated by regular expressions recognized by scanners. Recursion rule if added to define existing syntax language generated is called Context-free language (CFL). Context-free grammar generates CFG (CFG) recognized by parsers.

Tokens and regular expressions
Tokens are shortest strings of characters and basic building blocks of a program that have individual meaning. They include keywords, identifiers, symbols, as well as program constructs. Regular expressions can be

A character
The empty string
Two regular expressions next to each other
Two regular expressions with a separation shown by a vertical bar ( | )
A regular expression followed by a Kleene star
Context Free Grammar
Rules in CFG are called production. Symbols on the left-hand side of productions are variables or non-terminals. Symbols making up strings derived from grammar are terminals. Terminals cannot appear on the left-hand side. Terminals of CFG are language tokens. Non-terminals that appear on the left-hand side in the first production are a start symbol.

Derivations and Parse Trees
Derivation refers to a series of replacement operations showing the process of a driving string of terminals from start symbol. Types of derivations include right most derivation, left most derivation and parsed tree.

Scanning
Scanner and parsers help in discovering the syntactic structure of a program. Scanning or syntax analysis helps in translating the program into the equivalent target language. Scanner reduces the number of items inspected by parser by removing items like comments.

Generating Finite Automation
Finite Automation Can be hand written or automatically generated from a regular expression. The scanner generates a non-deterministic automaton in three steps. First, converts the regular expressions into a nondeterministic finite automaton (NFA). In the second step, scanner generator translates the NFA into an equivalent DFA. The third step involves space optimization that generates a final DFA with the minimum possible number of states.

Scanner Code
Scanner for capturing circles and arrows in DFA can be implemented in two main ways one involves embedding controls within controls flow using GOTO statements or nested case such as switch. The second way involves use of the table and a driver.

Lexical Errors
Most common lexical errors include cases where next character is not an acceptable continuation, or it does not start with another token. An approach in dealing with lexical errors include

Throwing current invalid token
Skip forward until an acceptable or a character beginning a new token is identified
Restart scanning algorithm
Count on error recovery mechanism of the parser
Pragmas
They are statements that provide directives or hints to the compiler without changing program semantics. Functions of directive pragmas include

Turning run-time checks on and off
Turning specific code such as loop on and off
Enabling or disabling performance of system processes
Parsing

The parser is the heart of a compiler and a language recognizer. The parser calls scanner to obtain tokens, which are input to the program. It assembles tokens into syntax tree and then passé the tree to next phases of the compiler to help in performing semantic analysis, code generation, and improvements. Parsers that run in linear time include LL and LR. LL means Left-to-right, Leftmost derivation while LR means Left-to-right, Rightmost derivation.

Sherry Roberts is the author of this paper. A senior editor at MeldaResearch.Com in write my essay online if you need a similar paper you can place your order from write my essay for me services.

Engineering Economy

Essay
Engineering economics is defined as the application of engineering or mathematical analysis and synthesis to making decisions in economics. Engineering economics is a subset of the economy for application to engineering projects. Engineering economics entails the formulation, estimation, and evaluation of the expected economic outcomes of alternatives designed to accomplish a defined purpose. The application of engineering and scientific methods has a direct as well as a vital impact on the quality of living as well as people. The use of mathematical techniques simplifies the economic evaluation of alternatives. These methods in engineering economics enable engineers to make economic decisions towards the evaluation of design and engineering alternatives. The course equips learners with the knowledge and techniques concerned with assessing the worth of commodities and services about their cost. Engineering economics hence assists in examining the relevance of a project, estimating its value as well as justifying it from the engineering perspective. Different professionals apply the knowledge of engineering economics in making their everyday decisions. These professionals who make routine decisions basing on engineering economics include engineers on the job, corporate presidents who operate a business, managers who supervise industrial operations and related activities of others and government officials who work for the public good. A majority of these decisions involve the use of money/funds commonly known as capital or capital funds, which usually get limited in amount. The decision of where and how to invest this limited capital get motivated by a primary purpose of adding value to future, anticipated outcomes of the preferred alternative get realized. In the real-life application, the decisions that engineers make concerning money are both industrially related decisions such as new market opportunities, drilling lease or removing car models and also involve personal decisions such as extended car warranty or house insurance cover. Engineers have a significant responsibility in capital investment decisions based on their ability and experience to design, analyze and synthesize. The elements upon which the different professionals make a decision has based a combination of economic as well as noneconomic elements. Engineers make important investment decisions based on economic analysis and design considerations; therefore, their decisions are a reflection of their most suitable choice of investing money by selecting the suitable alternative. The formulas and techniques learned in engineering economics are also useful in business and government and also for individuals, as long as they involve money matters. The basic characteristics of real options analysis carried out within the engineering economics context include anticipated future options and cash flows, market and risk-free interest rates, estimates of risk and future uncertainty for all the possibilities, cost to obtain the option to delay a decision, and also the economic criterion used to make a decision.

Integrating engineering economics in engineering curriculum allows graduates of engineering programs to understand and work challenges that account for the time value of money in projects, cash flows taking place at different stages with different amounts and equivalence at different interest rates. The elements that assist individuals in making decisions are; cash flows, the measure of economic worth for choosing an alternative, interest rates for the time value of money, and times of occurrence of cash flows. The decisions that are made by people and in which computers, concepts, mathematics, and guidelines help the people in the decision-making process are essential because they affect what will be done. Therefore, the time frame of engineering economy is primarily the future as the numbers utilized in engineering economy are best estimates of what is expected to take place.

Engineering economy understanding will also be employed in selecting the most appropriate alternative in engineering projects. Professionals involved in engineering projects such as the construction of infrastructural and civil engineering projects such as buildings, sewers, bridges, and roads will use economic analyses of the projects so as to select the most suitable alternative. The economic analysis process follows a systematic approach that comprises of various steps namely 1) identification and definition of project alternatives, 2) preparation of cost estimates, 3) project cost estimates on time stream of money and 4) selecting the final project alternatives. The first phase that entails the proper identification, as well as the definition of the project alternatives, ensures that the alternatives are specified to whether they have tangible or intangible consequences that are needed for evaluation while framing project estimate. Preparing the cost estimates, which is the second phase of a project entails assessing the consequences in monetary terms so as to get the overall picture of the financial aspect of the project alternatives. In the third phase, the professionals use engineering economy techniques and methods such as common discounts rate, same time base and the same period of analysis to make a frequent basis and for that convert the cost estimates of benefits and costs of the time stream money to values thus allowing for proper comparison. In the last phase of selecting the final project alternative, a comparison is made based on the monetary units and other considerations. In a real-life application, engineering economy techniques do not allow planners or engineers to get the exact cost estimates of an engineering project; however, getting reasonable and accurate estimates are necessary to support economic scrutiny. The understanding of engineering economics analysis allows engineers to understand the evaluation of cash flow estimates for parameters that include annual costs and revenues, initial cost, nonrecurring costs as well the possible salvage value over an estimated useful life of a product, service or process.

In the engineering profession, economics plays critical roles in the job. An Engineer in the job must translate their scientific ideas in products and systems that better humankind. It is critical that the scientific ideas make sense economically and it is the engineer’s role to convince others whom they are working together that this is the case. Learners who are pursuing an engineering program must be prepared with economic empowerment so that they could manage their wealth and also assist them in starting new ventures or during the managerial period. In all engineering projects ranging from construction sector to industrial operations, money is a crucial factor in completing the project or in the success of business. The knowledge of engineering economics also assists fresh engineering graduates in managing their wealthy since most encounter financial problems due to lack of information concerning loans that they have made. The study of engineering economy allows them to understand the definitions and application of basic economic terms such as interest rate, discount rate, incremental cost, tangible and intangible benefits, opportunity cost, marginal cost, and also fixed and variable costs. Engineers use the knowledge of engineering economy by applying economic criteria to choose the best among a set of alternate engineering designs or proposals. In this process, the engineers use the procedure for the cost analysis of project alternatives with the aim of finding the most suitable cost or the most economical alternative to the project.

Engineering economics is also useful in engineering projects as it assists to reduce the errors or mistakes or inaccurate assumptions. Today, most of the errors in engineering economic analyses are attributed to some violations of engineering economic principles. Therefore the engineers are encouraged to adhere to the various principles so as to not only avoid errors in engineering solutions or projects but also enhance sustainability in the future. Engineering economy also guides engineers on the most appropriate approach to follow when an error has occurred in an engineering work or project. The engineer shall acknowledge their mistake and strive to make correct it to promote public health, safety and good.

Engineering economy is also vital for different professionals as it assists them to maintain a highly level of professional ethics while undertaking their work or making economic decisions. The professional ethics guidelines cover a broad range of scenarios in which engineers or managers make vital decisions. Morals in engineering economy get defined as the fundamental moral beliefs held by virtually all individuals. Morals in engineering economy get regarded to relate to the underlying tenets that form the character as well as the conduct of a person in judging right and wrong. The different professionals use a code of morals or code of ethics that form the set standards to guide the decision as well as the actions of individuals and organizations. Ethical practices not only assist in making the right decision but also assist in enhancing safety and performance in engineering. Studying engineering economy assists engineers to know what is expected of them as well as ensure that they exhibit the highest standards of honesty and integrity. Engineers provide a wide range of services to different private and public organizations, in which they are required to display honesty, fairness, equity and impartiality and also must be dedicated to protecting public health, safety, and welfare.

The study of engineering economy equips engineering learners with a comprehensive understanding of the various real-life tax aspects. In engineering economy, the viewpoint taken when carrying out an after-tax evaluation is that of the engineering project and how relevant tax rules and allowances influence the economic decision. In many nations, engineering projects and related engineering operations/activities have a broad range of taxes levied upon the investors, organizations, and individuals that include value-added tax, sales tax, import tax, highway tax, income tax, gasoline tax and real estate tax. The study of engineering economy allows engineers to know how to calculate various aspects related to tax that include taxable income and cash flows after tax. It is important for corporate and individuals to adhere to the various tax laws in a country as it not only contributes to revenue of the nation but also prevents them from penalties and consequences. The study also assists engineers in understanding the international law concerning tax and also the variations of tax matters from one country to another.

With the techniques learned in engineering economy, it is easy for engineers to develop a rational and meaningful way of assessing the economic aspects of varying alternatives of accomplishing a given objective. Engineers seek solutions to different societal problems; therefore, the economic viability of each potential alternative or design provided by engineering economy must be considered.

Ethical Aspect of a Healthcare Industry

Healthcare professionals are faced with ethical dilemmas quite often as they treat patients with various illnesses. It is necessary for the healthcare managers to understand the potential ethical issues and how to address them appropriately (Aitamaa, Leino-Kilpi, Puukka & Suhonen, 2010). Most of the situations and scenarios that have ethical dilemmas have no clear options or solutions and require the health care professionals to apply the code of ethics based on their analysis of a particular situation. The research paper provides an analysis of a case scenario that has an ethical dilemma and helps to determine how a healthcare manager can use the ACHE Code of Ethics and other professional code of ethics in determining the appropriate response. The importance of ethics in healthcare is also discussed using the sample case scenario.

Relevant aspects of the case
The Case scenario chosen regards a patient, R.L, who suffered from depression that impaired his decision-making capacity. From the case, it is evident that whenever the chronically-ill patients request to discontinue the life-sustaining treatment, depression can be a reason for their limited ability in making decisions. In summarizing the case, the patient is 80 years of age and lives with his wife in a care center. He has had trouble in caring for himself and has difficulty walking and adhering to medications on diabetes, heart disease, and kidney problems. He was diagnosed with depression and was found to lose interest in the things he used to enjoy. He was later hospitalized for heart attack since his heart was damaged to the extent that it could not pump adequate blood to maintain the normal functioning of the kidneys. He had to undergo renal dialysis to keep him alive and involved inserting needles into the artery and vein to connect to a machine for three hours three times every week. In the second treatment, he requested that the dialysis be stopped for him to die (Lee, 1997).

Ethical concerns
The case scenario presents an ethical dilemma since it is challenging to follow the patient’s requests considering that he has depression that could be influencing the course of the decision. It is clear that depression might have influenced the ability of the patient in making the decision that his life be stopped. Many patients with serious illnesses suffer from impaired judgment despite them having the power of autonomy. Medical practitioners are required to respect patient’s autonomy and allow them to make decisions as long as they give their consent (Aitamaa, Leino-Kilpi, Puukka & Suhonen, 2010). However, the patients require consulting with the family members in the instances where their decision-making processes are affected by other factors. For this patient, he has been suffering from various chronic conditions and taking different types of medication alongside undergoing painful medical procedures. As such, there is a high possibility that the condition rendered him to suffer from depression which affected his ability to make informed decisions.

When patients agree to refuse or take certain medical treatment, they ought to make the decision through a process of informed consent. The physician discloses the information regarding the medical condition, treatment options, likely complications, and the expected outcomes. The patient must give informed consent and be willing to act voluntarily as well as have the capacity to make the decision (Edmonson, 2010). As such, it is necessary that the patient understands the information, the effects of the treatment, and the personal values in life. In an ethical perspective, informed consent should have a basis on the principles of autonomy and beneficence. However, regarding the patient’s case scenario, the two aspects are conflicted. The prognosis of the patient condition is not clear, and the physician has limited knowledge as to whether the dialysis surpasses the negative effects to the patient.

For a normal case, the decision of either continuing with the dialysis or stopping it should be made by the patient. However, there is a possibility that the patient’s ability to make an autonomous decision is affected by the depressed condition. For patients with depression, their ability to think appropriately and positively is affected. Depressed people encounter challenges in concentration and are troubled by the feelings of guilt and hopelessness. In most instances, they are pre-occupied with death and even consider suicide as an option.

The ethical dilemma in the case arose because continuing with the dialysis would be a denial of a right of the patient to refuse treatment which another patient without depression would request. On the other hand, giving in to the patients’ demands would be negligence of due care since the patient may be acting under the influence of depression.

Applying the ACHE Code of Ethics
Health care professionals and leaders ought to apply the principles of the ACHE code of ethics in considering whether the decision made by the patient is logical, consistent, and conforms with other choices and values in life. Eventually, the patient’s wish was granted, and the dialysis was taken off upon which he died six days later upon consultation with the family members. The code of ethics has the standards of ethical behavior that govern personal behavior. The overall objective of health care management profession is to maintain and enhance the quality of life, dignity, and well-being (Jonsen, Siegler & Winslade, 2015). The professionals are also required to have an accessible and efficient health care system and should act in ways that demonstrate their trust, confidence, and respect to the general public. In the ethical dilemma presented, the healthcare leader ought to consider the ethical principles of justice, autonomy, beneficence, and fairness which are crucial in decision making.

The proper response by a health care leader regarding the case scenario should be informed by the professional code of ethical standards which require that the quality and dignity of life is protected. The fact that the patient does not want to continue with the particular form of treatment is not adequate in giving in to his/her demands. In such circumstances, it is necessary to evaluate the impact of the action taken as well as the prevailing conditions that may influence the decision. The patient did not have a clear prognosis on his kidney, and a heart condition and hence would be difficult to weigh out the most beneficial decision to make. Also, the patient has close family members who were hesitant to do what the patient requested. It would be necessary to allow the treatment process to continue until the family members and the patient is contented that no further improvement would be observed. In the case scenario, the patient does not listen to any suggestions from both the family and the physician which is a likely indication that he was influenced by depression. Thus, it was unethical to follow the patient’s request even though it was respect for his autonomy.

Children’s Health and Deportation of Immigrants

Summary
The news report by Wiener Jocelyn is about a young girl called Abril who is eight years old. She lives with her parents in Santa Cruz, California. The girl was diagnosed with epilepsy and cerebral palsy; conditions that make her to constantly choke, not able to clear her throat and cannot walk or speak. Constantly her parents are forced to use a special machine to suck out phlegm and saliva from their daughter’s mouth. One of her parents has to be available for seizures and choking can happen at any time. Her parents, Sonia and Rafael originated from Mexico and had been living in the US for over a decade without permissions. Since President Trump came into power, the one question that has been haunting the parents is what would happen to their daughter is they are deported. With the promise given by Trump’s administration to deport all immigrants, Sonia and Rafael and others in their situation are now looking for legal ways to make them stay in the country so that they can care for their sick children. Professionals such as lawyers and doctors and those working with immigrants are struggling to provide sound advice to immigrants facing this dilemma.

Rafael and Sonia have to do all things undercover to avoid being spotted by the federal government. Abril’s survival and remaining alive is through her parent’s efforts. Parents with very sick children like them, according to Community Health Centers of Santa Cruz are seeking formal letters that document the healthcare requirements of their sick children with the hope that the letters can be of help in enabling them to stay in the country. The author also points out that the policies of deportation have changed from those passed by the Obama’s administration to the newly passed policies of President Trump. There is no selective form of deporting undocumented immigrants regarding deporting only those who have committed crimes. Currently, every undocumented worker is facing the risk of deportation (Weiner, 2017).

2. The implications to future as a leader in health care

Parents lacking proper documents of immigration living in the US face threats of separation from children after deportation. When the law enforcement catches up with an undocumented parent through the child welfare system, these parents face the potential of losing their children’s custodial rights. The immigration enforcement mechanism and child welfare systems operate independently of one another with the least regard on how their actions can impact the legal rights of parents that lead to a permanent separation of a child from his or her parents. For the case of the news article, it highlights the same fear whereby parents are faced with the threat of deportation, and yet they have a very sick child whose survival depends on their present all day and night. It is a case of a physically and mentally disabled child in need for supervision all round the clock. Parents are worried that they could be deported at any time living behind their disabled daughter behind to fend for her. Thus these parents face the same pressures as many other parents of children with special needs such as ensuring that their child is receiving medical care, educational help, therapy as well as full-time while at the same time balancing for household responsibilities and also balancing jobs. Also, these families have to deal with living in the shadows and are barred from attaining government assistance in a wide range of services (Pereira et al., 2012).

As a health care leader, I have to play a role in advocating the need for not deporting parents of children with special needs like the case of Rafael and Sonia. Additionally my role as a leader in healthcare organizations to ensure that the US-citizen children with parents who are unauthorized immigrants receive insurance which is publicly funded to children with no regard to their immigration status. Also, I should advocate and set up programs for providing emergency financial support. It is because immediately after parental deportation and detention, children may need money for buying necessities such as rent and food yet the family breadwinners especially fathers are always subject to deportation and detaining. It is possible by linking up the healthcare organization with charitable organizations that provide financial resources for covering basic expenses for a month (Capps, 2007).

As a future leader of the healthcare organization, I also have a role to play in assisting parents who have been deported in need of no-cost or low-cost legal services. Families are having the parent in detention always need legal representations in contending for their deportation. Therefore I will network with good lawyers who I can refer parents to them. I will also partner with child welfare agencies that advocate for parents participation in proceedings concerning the welfare of their children. I will work with these agencies in identifying parents in detentions, communicating with them as well as enabling them to attend custody hearings. I can work with these agencies in identifying the need for reunifying children with their deported parents in their home countries. It is possible since agonies do not always consider parental deportation as an automatic ground of parents losing their parental rights (Rosenblum, and McCabe, 2015).

Finally, as a health leader, I will hire more staff members who can assist families to apply for better healthcare services for their sick children and who can refer parents to other services. I will ensure that the health organization works with law and medical schools so that graduates from the universities can provide low-cost health care and legal services to families facing deportations. For instance, staff members from the medical school will focus on the public health approach as well as social determinants of children’s health. On the other hand, the medical school staff will assess the needs of the families such as food, and housing and connect families with benefits provided to the public in ensuring they are also eligible for these and other services provided by their immediate community. The hospital will also work with faith-based-organizations in providing the main source of support for families facing deportation and parental detention.