PT1420 - Unit 5 Homework and Lab Assignment Unit 5 Assignment 1: Homework 1.) Design an if-then statement that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is greater than 100. (Simple if statement) If x > 100 then Y=20 Z=40 End if 2.) Design an if-then statement that assigns 0 to the variable b and assigns 1 to the variable c if variable a is less than 10. (Simple if statement) 3.) Design an if-then-else statement that assigns 0 to variable b if variable a is less than 10, otherwise it should assign 99 to variable b. (Alternative if statement) If a < 10 then B = 0 Else B = 99 End f 4.) The symbols >, <, and == are all Relational operators. 5.) …show more content…
Additionally, if their sales
He tells his son that if he can guess the amount of money he is holding within 5% error he can have the money. The son guesses that he is holding 81 cents. The dad opens his hand and displays 90 cents. Did the son guess close enough to receive the money from his father?
There is a statistical difference in the current level of democracy between North and South Africa.
There will be many different constraints in the database. An example of a constraint is one if the students' GPA will have to be between 0.00 and 4.00. Another example would be that each class can only have one instructor. There would be a constraint on the social security number ensuring that there are only nine numbers and in the format is xxx-xx-xxxx, and each individual number would be between 0 and 9. There would be a constraint for the telephone numbers as well. Each individual number would be between 0 and 9 in the format of (xxx)-xxx-xxxx.
Design has factored a great amount in my life. It has told me what to choose and what not to choose in clothing, grocery, and book stores. Design influences me in these places because it helps me to be aware of what I’m buying and what is physically appealing to me as a consumer. One time I was at the grocery store with my mother, and I bought 20oz Fuji water bottles for the both of us. While I was in line, waiting to pay for the water bottles, I started to think of why the company of Fuji water shaped their bottles rectangular. Was it easier to hold? Was it just a slimmer and satisfying design? Was it different tasting water? What made me buy this bottle compared to other water bottles such as Aquamarine or the Great Value brand? These were the questions that running through my head. All these questions are what company’s designers think of when trying to get consumers to buy their products.
There are many tasks I have undertaken or completed in the last year or two that have nothing to do with academics or education. Even though these tasks have not been related to my education, they have helped me prepare for the tasks I plan to undertake in 2014.
First, state whether blood pressure in Table 2A would be a continuous variable or a discrete variable. Explain. Then supposing that the number of women in each of groups (non-users and users) were identified, would the number of women in each category be a continuous variable or a discrete variable? Explain.
The instruction for this week’s assignment is “The area of a triangle is given by the formula Area = 1/2 * Base * Height. Using the IDLE development environment, create a Python script named t_area.py . Your script must calculate the area of a triangle and display the results of the calculation. The triangle that your script must calculate the areas for has a base of 12 inches and a height of 16 inches. IDLE has both an interactive mode and a script mode. You must use the script mode to develop your script”.
The given chart provides data about the percentage of personnel's contenment in college A, B, C and D from 1991 to 2002. Overall, there was a unpredictable raise in the figure of college C which changed from the lowest to highest position of the totall given information in the final phase.
* Use the profit maximization rule MR = MC to determine your optimal price and optimal output level now that you have market power. Compare these values with the values you generated in Assignment 1. Determine whether your price higher is or lower.)
b. Repeat this 24 more times until you have a list of 25 numbers, each of them between 0 and 10.
Problem: State Bank has over time increased salaries to tellers that were so high that of the 23 tellers at State Bank they were being paid over what other local tellers were being paid; additionally no other employees outside of the tellers were receiving an exceedingly higher salary based on the other local banks averages. All of this information was compiled in a report based on survey results taken from State Bank and the other local surrounding banks.
PART A – Linear Programming 1 a) Linear Programing Model Decision Variables: Let x = acres of watermelon Let y = acres of cantaloupe Objective Function: Maximize Z = 390x + 1300y – 5(20x + 15y) + 5(2x + 2.5y) = 270x + 300y – 100x + 75y + 10x + 12.5y = 256x + 284.5y where Z = total profit 390x = profit from watermelons 1300y = profit from cantaloupe 5(20x + 15y) = cost of fertilizer 5(2x + 2.5y) = cost of labour Identification of Constants: Maximize Z = 256x + 284.5y
In this particular case, Randy will need to assign the correct numbers to the correct category. For the purposes of this case study, assume T will equal 1 to make the equation represent one year of employment in one of the ice cream shops. For following variables, Nn will equal 50 as there will be 50 applicants total selected to be hired, rxy will represent .30 in one equation representing the interview and job performance and in the other equation, it will represent .50 which will represent the work sample predictor and job performance, SDy will be chosen to represent .20, Ẑs will be .80 because it will be the predictor score of the selected applicants, Na will represent 100, as that is the total number of applicants that submitted applications, and Cy will represent the cost per applicant in the interview and job performance in one equation as 100 and it will represent 150 in the other equation for work sample and job
C) there are two or more int variables being tested, each of which could be one of several hundred values
Trap A) – don't fall into the trap of saying this level of X (e.g. smoker) is one variable and that level of X (e.g. non-smoker) is another variable. Actually there would be just one variable, X (e.g., “smoking,” or more explicitly, “whether someone currently smokes vs. does not currently smoke” --- and you'd wnat to specify what window counts as "currently").