...a=5 then +a means 5 If a=0 then +a means 0. If a=-4 then +a means -4. Ternary operator:- It precedes an operand. The operand of the unary operator must have arithmetic type and the result is the negation of the operand’s value. Example:- If a=5 then –a means -5 If a=0 then –a means 0 If a=-4 then –a means 4. (b) Assignment and equalto operator Assignment operator:- Equal to operator: An assignment operator assigns value In this we put the To a variable. value as it is. Example – Example- a*=5 means a=5*5. Int a; a=5 means a is initialized with 5 if(a==5) { return true; } return false; (c) Expression and statement Expression:- An expression is any valid combination of operators , constants , and variables. Example:- for(i=0;i=10&&qual==1) sal=15000; else if((g==’m’&&yos>=10&&qual==0)||(g==’m’&&yos=10&&qual=0) sal=9000; else if(g==’f’&&yos25) printf(“driver is insured”); else printf(“driver is not insured”); }}} 4. Ans:- 5. Ans:- #include #include void main() { int...
Words: 399 - Pages: 2
...Week 2 Assignment: Understanding Effective Money Management Assessment A, Part 1: Creating a Personal Financial Statement - Assets | 1 point | Car: Bluebook value $1250.00Cash: $378.00Savings Accounts: $826.00 | Assessment A, Part 2: Creating a Personal Financial Statement - Debts | 1 point | Rent: $750.00Electric/ Gas bill: $131.75Cable/ internet/ Phone bill: $80.42Credit Card: $31.00Cell phone bill: $72.37 | Assessment A, Part 3: Identify Money Management Tool | 1 point | Explain to Monica how the money management tools were identified. | Students should explain how they evaluated various cash management products and services. | Assessment A, Part 4: Creating a Personal Financial Statement – Steps | 1 point | Drag the steps listed on the right into their correct sequences on the left. When done click the Send button | Step 1: I got all my financial stuff together – bills, loans, bank statements, etc. | Step 2: I balance my checkbook. | Step 3: I decided what were my assets and what were my debts. | Step 4: I enter my assets in the program. | Step 5: I enter my debts in the program. | Step 6: The program gave me a Net worth figure at the end. | Assessment B: Creating a Monthly Cash Flow Statement ...
Words: 255 - Pages: 2
...Reflection assignment In this assignment I will be using the Gibbs Reflective Model, reference, to reflect on an incident that occurred in placement that demonstrates an understanding of the Outcome : 3.1: Demonstrate that they respect diversity and individual preferences and value differences, regardless of their own personal views. To do this I will first, briefly describe the event, supporting my outline with relevant information. I will then explore the event, and discuss why it is important and how it relates to the learning outcome. I will also be discussing why materials such as law and guidelines say this is important. I will then proceed to analyse the incident by breaking it down and picking out the main features of the experience, discussing why they are important, whilst linking the main points together. I will attempt to think about opposing arguments to what I have explored, and discuss the advantages and disadvantages of the arguments. Finally I will be using SMART goals, to create an action plan for future development. Explain incident with evidence Whilst on a shift, we had an elderly patient arrive on the ward. The patient suffered from a Frank Haematuria, Colovesciular fistula as well as incontinence. It was suggested that the patient received surgery to have this corrected, but the patient refused surgery, stating that at his age he did not want to go through with it, and wanted to put a DNAR in place. I along with the other nurses respected his choice...
Words: 370 - Pages: 2
...Diagnostic Algebra Assessment Definitions Categories Equality Symbol Misconception Graphing Misconception Definition Concept of a Variable Misconception Equality Symbol Misconception As algebra teachers, we all know how frustrating it can be to teach a particular concept and to have a percentage of our students not get it. We try different approaches and activities but to no avail. These students just do not seem to grasp the concept. Often, we blame the students for not trying hard enough. Worse yet, others blame us for not teaching students well enough. Students often learn the equality symbol misconception when they begin learning mathematics. Rather than understanding that the equal sign indicates equivalence between the expressions on the left side and the right side of an equation, students interpret the equal sign as meaning “do something” or the sign before the answer. This problem is exacerbated by many adults solving problems in the following way: 5 × 4 + 3 = ? 5 × 4 = 20 + 3 = 23 Students may also have difficulty understanding statements like 7 = 3 + 4 or 5 = 5, since these do not involve a problem on the left and an answer on the right. Falkner presented the following problem to 6th grade classes: 8 + 4 = [] + 5 All 145 students gave the answer of 12 or 17. It can be assumed that students got 12 since 8 + 4 = 12. The 17 may be from those who continued the problem: 12 + 5 = 17. Students with this misconception may also have difficulty with the idea that adding...
Words: 797 - Pages: 4
...Team B Calorie Count Tool PRG/211 May 5, 2014 Team B Calorie Count Tool PROBLEM STATEMENT Team B was asked to develop a program which would calculate the user’s daily intake of calories and measure those calories against the overall calories expended. The core purpose of this program will do two primary functions. First, it will record the user intake of calories as acquired through meals throughout the day. Second, the user will record caloric output associated with physical activity. This information will be calculated together to determine the caloric surplus or deficit for the user. In order for the program to execute accurately, and provide customized results, the user will be required to input personal data to include gender, age, weight, and height. This additional information is essential to determine the user’s default caloric burn rate, otherwise known as the basal metabolic rate (BMR). The BMR and the calories burned as a result of physical activity will be calculated against the intake of calories to determine the overall success for the user. As the program is executed it must: * Record user name, age, height, weight to enable more accurate calculations * Record the users specific caloric values entered for each meal * Record the user activity and caloric burn values for that activity * Calculate the basal metabolic rate (BMR) for the individual * Subtotal the total caloric values for the day * Combine the physical activity and...
Words: 1524 - Pages: 7
...Problem Solving with Computing Homework - WEEK 2 [30 points] This is a review of some of the material from Chapter 2 and lectures from class. No credit for answers that are copies or near verbatim transcripts – please use your own words1 and document sources where appropriate. 1 This will apply to all assignments in this class. Answer the following questions: Chapter 2 1. Short Answers [1 point each, 2 points total] 1. What does a professional programmer usually do first to gain an understanding of a problem? The first thing that a professional programmer usually do first to gain an understanding of a program is to closely relate customer (Interview ) to inquire or gather information about the problem. 2. What two things must you normally specify in a variable declaration? The two things normally specified in a variable declaration are the variable type and identifier. 2. Algorithms / Pseudocode [1 point each, 5 points total] 1. Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height. Declare height Display “Enter Your Height” Input Height Display “Height” 2. Write assignment statements that perform the following operations with the variables a and b. - Adds 2 to a and stores the result in b. - Subtracts 8 from b and stores the result in a Set b=2+a Set a=b-8 3. Write a pseudocode statement that declares the variable cost so it can hold real numbers. Floating Point-Variable...
Words: 1823 - Pages: 8
...Selection statements Selection is used to select which statements are to be performed next based on a condition being true or false. Relational expressions In the solution of many problems, different actions must be taken depending on the value of the data. The if statement in C I used to implement such s decision structure in its simplest form – that of selecting a statement to be executed only if a condition is satisfied. Syntax: if(condtion) statement executed if condition is true When an executing program encounters the if statement, the condition is evaluated to determine its numerical value, which is then interpreted as either true or false. If the condition evaluates to any non-0 value (positive or negative), the condition is considered as a “true” condition and the statement following the if is executed; otherwise this statement is not executed. Relational Operators In C Relational operator | Meaning | Example | < | Less than | age < 30 | > | Greater than | height > 6.2 | <= | Less than or equal to | taxable <= 200000 | >= | Greater than or equal to | temp >= 98.6 | == | Equal to | grade == 100 | != | Not equal to | number !=250 | In creating relational expressions, the relational operators must be typed exactly as given in the above table. Thus, although the following relational expressions are all valid: age > 40 length <= 50 temp >= 98.6 3 < 4 flag == done day != 5 The following are invalid: length =< 50 ...
Words: 1617 - Pages: 7
...Assignment: Define CSS? -Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how pages are displayed. With CSS, designers and users can create style sheets that define how different elements, such as headers and links, appear. These style sheets can then be applied to any Web page. What are the three types of style in CSS? There are three types of CSS styles: * inline styles Inline styles are styles that are written directly in the tag on the document. Inline styles affect only the tag they are applied to. <a href="" style="text-decoration: none;"> ex. * embedded styles Embedded styles are styles that are embedded in the head of the document. Embedded styles affect only the tags on the page they are embedded in. ex. <style type="text/css"> p { color: #00f; } </style> * external styles External styles are styles that are written in a separate document and then attached to various Web documents. External style sheets can affect any document they are attached to. ex. <link rel="stylesheet" type="text/css" href="styles.css" /> Define JavaScript? -JavaScript is an interpreted programming or script language from Netscape. It is somewhat similar in capability to Microsoft'sVisual Basic, Sun's Tcl, the UNIX-derived Perl, and IBM'sREXX. In general, script languages are easier and faster to code in than the more structured and compiled languages...
Words: 393 - Pages: 2
...Solving Proportions MAT222 Week 1 Assignment September 22, 2014 Solving Proportions Solving for a proportion can be used within numerous real-world problems, such as finding the population of an area. Conservationists are able to predict the population of bear’s in their area by comparing information collected from two experiments. In this problem, 50 bears in Keweenaw Peninsula were tagged and released so conservationists could estimate the bear population. One year later, the conservationist took random samples of 100 bears from the same area, proportions are able to be used in order to determine Keweenaw Peninsula’s bear population. “To estimate the size of the bear population on the Keweenaw Peninsula, conservationists captured, tagged, and released 50 bears. One year later, a random sample of 100 bears included only 2 tagged bears. What is the conservationist’s estimate of the size of the bear population (Dugolpolski, 2012)?” In order to figure the estimated population, some variables need to first be defined and explain the rules for solving proportions. The ratio of originally tagged bears to the entire population is (50/x). The ratio of recaptured tagged bears to the sample size is (2/100). 50x=2100 is how the proportion is set up and is now ready to be solved. Cross multiplication is necessary for this problem. The extremes are (100) and (50). The means are (x) and (2). 100(50)=2x New equation, and now solve for (x). 50002=2x2 Divide both...
Words: 608 - Pages: 3
...part) to any affiliate entity which is controlled by its ultimate parent corporation, Gult+Western, Inc., without the consent of the Partnership and (b) the Partnership shall have the unrestricted right to assign this Agreement (in whole or in part) in connection with (i) a transfer of the Partner’s interest to any member of the Steinbrenner family or (ii) the conversion of the Partnership to a corporation or (iii) the sale, exchange or transfer of a limited partners or, after such conversion, shares or shareholders, as relevant. To be effective, any assignment made hereunder must (whether or not consent is required hereunder) meet each of the following requirements: (i) Such assignment must be made upon and be subject to all the terms and conditions of this Agreement; (ii) The assignee must assume by written recordable instrument all of the obligations of the assignor under this Agreement; (iii) An executed original counterpart of the written assignment referred to above and of any assumption agreement or other contract between the assignor and assignee pertaining to this Agreement shall be delivered to the other party to this Agreement; and (iv) At the time of and immediately after such assignment, no material breach or default by the assignor under this Agreement shall exist and be continuing. In any...
Words: 457 - Pages: 2
...100 bears included only 2 tagged bears. The question I am asked is what do conservationist’s estimate of the size of the bear population? You will notice while reading question #56 on page 437, we are to assume that the ratio of originally tagged bears to the whole population is equal to the ratio of recaptured tagged bears to the size of the sample. The ratio of originally tagged bears to the whole population is 50X The ration of recaptured tagged bears to the sample size is 2100 50X=2100 This is the proportion set up and ready to solve. I will cross multiply setting the extremes equal to the means. 10050=2x 100and 50 are the extremes, while X and 2 are the means. 50002=2x2 Divide both sides by 2 X = 2500 The bear population on the Keweenaw Peninsula is around 2500 bears. The second problem for assignment one week one I am asked to solve the below equation for y. The first thing I notice is that a single fraction (ratio) on both sides of the equal sign so basically it is a proportion which can be solved by cross multiplying the extremes and the means. y-1x+3=-34 Is the equation I am asked to solve. 3y-1=-3x-4 The result of the cross multiplying. 3y-3=-3x+12 Distribute 3 on the left side and -3 on the right. 3y-3+3=-3x+12+3 Subtract 3 from both sides. 3y=-3x+15 3y3=-3x3+153 Divide both sides by 3 y=-x+5 This is a linear equation in the form of y=mx+b. This equation is in its simplest form. I like how we can take just a couple of numbers from a...
Words: 340 - Pages: 2
...Traffic Modeling Paper Concepts of math can be displayed and solved in many different ways. There are equations, graphs, and word problems and several concepts that can be used as examples to help solve mathematical issues. In week four of this College Algebra class Learning Team B was present with an assignment involving a traffic model. The traffic model is the key to helping Learning Team B solve the problems the assignment presents. The traffic model represents a number of cars within the area at any given time represented by letters. Learning team B must solve questions based on this model. There are several equations that were made in order to prove that the numbers of cars entering and leaving each intersection must be equal to keep traffic moving smoothly. Variables f and g are independent variables. This means that variables a through e are dependent on variables f and g. The number of cars at intersection a depends on how many cars turn from intersection f. The number of cars at intersection b depends on how many cars turn right from intersections f and g. This tells you that there are infinitely many solutions since the number of cars that turn onto Elm from Oak, Pine, and Aspen vary. Similarly the number of cars that turn onto Maple from Oak, Pine, and Aspen also vary. To list two acceptable traffic flows first let variable f be equal to 365 cars/hr and let variable g be equal to 400 cars/hr. Variable a would be equal to 850-365, which equals 485 cars/hr. Variable...
Words: 1174 - Pages: 5
...Strayer University | Assignment 2 | Cards on my Head | Professor KagenMath 104 | Joshua White | 12/20/2012 | [Type the abstract of the document here. The abstract is typically a short summary of the contents of the document. Type the abstract of the document here. The abstract is typically a short summary of the contents of the document.] | Andy, Carol, Belle and I are playing guess my cards. Each player draws three cards out of a deck and each card has a number between 1 and 9. Each player must place their cards on their heads without looking at your cards. Every other player can see your cards and you cans see the others cards. Every person draws a set of questions to ask of the other players. You use the answer to the questions to gain clues about the cards you have. The objective is to guess what cards you have stuck to your head. I can see Belles, Andy’s, and Carol’s cards. Belle’s cards are 3, 4, and 7. The sum of Belle’s cards equal to 14. Carol has 4, 6, and 8. The sum of her cards equal to 18. Andy has 1, 3, and 7. His cards equal to 11. I ask Andy if he can see 2 or more player whose cards sum to the same value? His reply was “yes”. That tells me that the sum of my cards come up to either 14 or 18. I can see Belle has a total of 14 and Carol has a total of 18. Andy can’t see his cards. I than ask Belle of the 5 different odd #’s how many do you see? Belle tells me that she can see all of them. Andy has a 1, 3, and 7, which are all odd numbers...
Words: 434 - Pages: 2
...others to supervise is a complete requirement for endurance now. Proprietors and supervisors should focus on the actions they do that gets the most cost to their association. You must execute only "vital actions" that gives the business its competitive advantage over other businesses in the trade. Discover to do not as much and manage more. The delegation assignment is in selecting the correct people and telling them the accurate work. The total number of supervisor’s everyday jobs call for delegation. Always drop needless works in general; focus only on the responsibilities that no one else can do. Essential responsibilities that can be completed by others ought to be delegated. Repeatedly the call for delegation is ignited by speedy company expansions, mainly as a result of acquirement. How to Delegate? Refuse the attraction to keep responsibilities to yourself as a way of control or a demonstration of power. Be a person in charge rather than a adviser (Kotelnikov, n.d.). Using delegation can be favorable for supervisors if they can find the right person for the job. Picking someone that fits a certain project, I believe, is half the battle, the other half will be picked up by that person that the manager has chosen to do that project. It is easy for managers to manage the different functions and...
Words: 377 - Pages: 2
...STUDY HABITS OF SECOND YEAR BS-AVTECH STUDENTS OF PATTS COLLEGE OF AERONAUTICS S.Y 2013-2014 An Undergraduate Research Presented to The Languages Department of PATTS College of Aeronautics In Partial Fulfillment of the Requirements for the course ENGL 211 – Technical Report Writing By Guevarra, Giorgio Martin C Guevarra, Lorenzo Miguel Jang, Jose, Yosalina, Leo Xander March 2014 ACKNOWLEDGEMENT The researcher would like to express our thanks to the lord. Our God for his guidance towards everything we do In life, including this study that we had made, and for being an inspiration for us all to do our best in life. We give our thanks to Ms. Karen M. Millano, our adviser for ENGL 211, for carefully and patiently guiding us so that we may finish the thesis research, and for supporting us and believing in us, that we can accomplish our task finishing the thesis. To the respondents of this study, we express our gratitude because without them, this thesis research would not have been completed, we thank them for allowing us to conduct a survey during their spare time, and their patience and integrity in answering the survey. To our parents, for their support and everlasting patience and understanding for us. And lastly to our classmates, since they have been with us since the beginning of the semester and they had been our companions in everything we do for the subject ENGL 211. ABSTRACT STUDY HABITS OF...
Words: 413 - Pages: 2