...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
...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
...Law Written Assignment 3 Case Study 1 Parks, a 7-foot, 265-pound center for the San Diego Slick, objected when his contract was assigned from the ABC Corporation to the XYZ Corporation, the team’s new owner. The change of owners did not cause a change in the composition of the team although a new coach was hired. Parks’s compensation and his responsibilities remained the same. Was this contract assignable? Facts of the Case: 1) Parks contract was assigned from the ABC Corporation to XYZ Corporation. 2) Parks compensation and his responsibilities remained the same. Issues: 1) The reason why we are in court today is to identify if Park’s contract was assignable. Rules of the Law: 1) Personal Service Contract – The parties agree that a personal service contract may be assigned. This allows the trade of an athlete from one team to another team. 2) Notice of Assignment – Assignee is under a duty to notify the obligor that the assignment has been made and performance must be rendered to the assignee. 3) Anti-Assignment Clause – Prohibits the assignment of rights under the contract. 4) Approval Clause – requires that the obligor approves any assignment of contract. Analysis & Conclusion: Since we do not have all the facts we can assume the following: 1) Parks contract did include the Personal service contract. 2) Notice of assignment was made by XYZ Corporation. 3) Parks contract did NOT include Anti-Assignment Clause. ...
Words: 495 - 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
...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
...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
...11108944 Name: ASHWINI KUMAR Roll No. : RE3R02B32 PART- A 1. Ans :- (a) unary and ternary operator Unary operator:- It pecedes an operand . The operand (the value on which the operator operates ) of the unary operator must have arithmetic or pointer type and the result is the value of the argument. Example:- If 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:- ...
Words: 399 - Pages: 2
...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 /* operator out of order*/ 2.0 >> 3.3 /*invalid operator*/ flag = = done /*spaces are not allowed*/ Relational expressions are also known as conditions. The if and if-else Statements The simplest C selection statement is the one-way if statement having the syntax if ( expression ) statement; In this construction, the statement following the if (expression ) is only executed if the...
Words: 1617 - Pages: 7
...ACC 616 Prof. Robert Simpson Student name: On the back Assignment 1: Explain Assignment of Income Doctrine The "assignment of income" doctrine states that income is taxed to the one who actually earns it. That means a taxpayer cannot avoid tax liability by assigning his income to another party or entity. Therefore, to be able to shift income to someone else, that one must actually earn the income. This doctrine aims to against the tax evasion when the taxpayer tries to deflect income to another party. First, starting from the term “earning”, earnings can occur either through the direct efforts of the taxpayer or the taxpayer’s ownership of an asset that generates income. Based on that understanding about earning, there are 2 ways to shifting income from one to another: the transferee must really work to earn that income or share the ownership of an asset that creates income. For example, if you are an owner of a business and you want to shift one part of your income to your family member such as your son, you need to hire your son to work for your company and give him the pay rate that is appropriate with his job. And the other way is to share your investment income with him, same meaning with sharing your ownership with him. The assignment of income applies the “tree and fruit” metaphor, in which the fruits cannot be attributed to a different tree from that on which they grew. If you want to avoid the tax liability on the fruit from the tree, you must prove that the...
Words: 421 - Pages: 2
...Pre course assignment 2: Performance Related Pay The assignment is to write a paper about Performance Related Pay (2000 words) Performance Related Pay is receiving a great deal of attention. On the one hand (collective) labour agreements are increasingly including arrangements that relate to pay-forperformance, at the same time there is also strong resistance. Trade unions have never been enthusiastic proponents subject to certain conditions, but opinions are also divided in employers' circles. Pay-for-performance is even named as a root cause for the crisis of the financial sector and for the collapse of some companies. A number of companies have recently announced that they will abolish or change their pay- for-performance systems. When organizations have performance related pay systems in place, (front line) managers usually play an important role. They make pay decisions, or provide information for these decisions. The paper is also a preparation for a class debate about pay for performance in the fourth lecture. The debate will be about the statement: “The introduction of individual pay for performance contributes to an improvement in a company's (financial) performance” The paper will be written from one of three starting points: 1. You are against the statement: all arguments you discuss should underpin that the statement is false 2. You are in favour of the statement: all arguments you bring forward should underpin that the statements is true 3. You are undecided: find...
Words: 453 - Pages: 2
...Introduction to Programming with C# Variable Types & Initialising Variables Introduction to Variables A variable is a storage location that holds a value. You can think of a variable as a box in the computer’s memory holding temporary information. You must give each variable in a program an unambiguous name that uniquely identifies it in the context in which it is used. You use a variable’s name to refer to the value it holds. For example, if you want to store the value of the cost of an item in a store, you might create a variable simply called cost and store the item’s cost in this variable. Later on, if you refer to the cost variable, the value retrieved will be the item’s cost that you stored there earlier. Working with Primitive Data Types C# has a number of built-in types called primitive data types. The following table lists the most commonly used primitive data types in C# and the range of values that you can store in each. |Type |Description |Size (in bits) |Range | |int |Whole numbers |32 |-2147483648 to 2147483647 | |long |Whole numbers (larger range than int |64 |-9223372036854775808 to 9223372036854775807 | | |data type) | | | |float ...
Words: 714 - Pages: 3
...Running Head: Team Assignment 1 Team Assignment Disparity of Wages on the Labor Market part 2 RES/351 University of Phoenix Team Assignment 2 What are the research questions? 1. Do minorities get penalized when it comes to hiring and wages? 2. What is the average annual wages for each job type in the local region? 3. What qualities affect the wages earned annually by employees? These questions will help to lead the direction of our paper, as well as to help ensure that our group can keep the focus of the paper to stay where we want it to be. Identify one dependent variable among the variables in the Data Set for the organization assigned to your team. This variable must be the most suitable one among the variables whose values change with the changes in the values of other variables in the Data Set. For this project, it has become clear that the dependant variable in our data set is wages. Independent variables that are a driving force, in this case, are going to be race, experience, and gender. These things can have an effect on wages that are to be set but being a Union member does not seem to have an impact on that. We also noticed that education did not seem to have an impact on the wages set for employees. What...
Words: 410 - 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
...of responsibilities and duties to fulfill. At times, a manager may not have enough time to complete tasks. Therefore, he or she may choose to delegate tasks to get the job done. Delegation refers to assigning tasks to another employee to carry out (Robbins & Coulter, 2012). Ricky Lee is a contract manager for an office supply distributor. His manager has asked him to prepare a new procedures manual to explain how to negotiate contracts. However, Ricky is currently working on another project and will need to enlist the help of one of his employees Bill Harmon. In order for Ricky to be an effective delegator, he must follow five delegation behaviors. Clarify the Assignment Based on Ricky’s current workload, he is aware that preparing the new procedures manual will need to be delegated to Bill. Bill has the experience and knowledge to prepare the manual and the ability to do so. When Ricky meets with Bill, he will need to clarify the assignment. He will provide clear directions, expectations, and the due date. Ricky will need to ensure that Bill and he come to an agreement on the expectations. However, Bill will be responsible for the completion of the manual. Range of Discretion When Ricky meets with Bill, Ricky will specify Bill’s range of discretion to be followed for the completion of the project. To best explain the amount of control that Bill has to edit the procedures in the manual, Ricky will give specific examples of acceptable changes for each section. Ricky...
Words: 369 - Pages: 2
...what we learned as a team as well as individuals. The team also was able to go over the Mystat lab that we were assigned in the individual assignment. In step one a team would state a null hypothesis as well as an alternate hypothesis. The null hypothesis is used only for testing. We either reject or fail to reject the null hypothesis. The alternate hypothesis is accepted if sample data provide enough evidence that the null hypothesis is false. No matter what the problem looks like the null hypothesis will always contain the equal sign. This is true because since the null hypothesis is being tested there is a need for a specific value to be seen in the calculations. When comparing the means of two or more groups the team must state the null hypothesis. Random samples of each population must be chosen to show the formula in a working status. To get a more accurate sample a higher number of the populations should be used. An independent sample T-test is used to compare the means of two or more groups. Pooled variance can be used if the variances of the two populations being tested are constant. The correlation between two variables describes the likelihood that a change in one variable will cause a proportional change in the other variable. A high correlation between two variables suggests they share a common cause or a change in one of the variables is directly responsible for a change in the other variable. The team reflection was divided by...
Words: 352 - Pages: 2