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

Related

- Good Essays
## Com/156 Week 6 Assignment

- 1142 Words
- 5 Pages

There are many different types of animals that work for us. There are three types of service animals that help the disabled. Guide animals assist the blind, hearing animals signal the deaf, and there are many other animals that help persons with other disabilities. Another way that animals work for us is by providing emotional support to those with mental health issues. These animals are usually prescribed by a doctor and they are called emotional support animals. One last way that we can see an animal working is in the military. There are many military working dogs that serve to protect us just as a

- 1142 Words
- 5 Pages

Good Essays - Better Essays
## DirectFileTopicDownload 3

- 1286 Words
- 6 Pages

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?

- 1286 Words
- 6 Pages

Better Essays - Decent Essays
## Gac201 Week 3 Individual Assignment

- 471 Words
- 2 Pages

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.

- 471 Words
- 2 Pages

Decent Essays - Decent Essays
## Gac201 Week 2 Individual Assignment

- 500 Words
- 2 Pages

As I move forward in my education, I have become more nervous and uncertain. When I started on this journey, I thought I would make a great therapist, now that I have almost completed my coursework, uncertainty and fear have taken over any confidence I once had. In our reading Comier described a professional identity, I believe this is one of my challenges (2014). This is my third career. I spent 14 years working in laboratories doing bioscience research, another 10 years in the business side of science. In both roles, I was eager to wear the clothes and learn the behaviors that are needed to be successful. This endeavor is completely different. Although there were lives involved with the bioscience job, I could only do what the biology would let me do. I never felt like anything was my fault, if things went wrong we had a team of people try and figure it out. In business, who cares if we didn’t make the deal or the project fell apart. This challenge is about people, their lives and giving them hope and tools to help make their life journey fit closer to what they want it to be. That is very intimidating. I realize I have some natural skills that help me build congruency fairly quickly, but I have no idea how to use that skill. I have read and studied and done enrichment in addition to my schoolwork and I do not feel prepared to talk with clients. So I would measure my current competency as

- 500 Words
- 2 Pages

Decent Essays - Decent Essays
## Cis: 111 Strayer University Assignment 1 Essay

- 696 Words
- 3 Pages

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.

- 696 Words
- 3 Pages

Decent Essays - Decent Essays
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.

- 505 Words
- 3 Pages

Decent Essays - Satisfactory Essays
## Eco 550

- 687 Words
- 3 Pages

* 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.)

- 687 Words
- 3 Pages

Satisfactory Essays - Satisfactory Essays
## Week 3 Assignment Analysis

- 505 Words
- 3 Pages

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”.

- 505 Words
- 3 Pages

Satisfactory Essays - Good Essays
## Utility Concerns In Choosing A Case Analysis Essay

- 1316 Words
- 6 Pages

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

- 1316 Words
- 6 Pages

Good Essays - Satisfactory Essays
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.

- 320 Words
- 2 Pages

Satisfactory Essays - Decent Essays
## What Phenomenon Is The Article Trying To Explain?

- 1114 Words
- 5 Pages

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").

- 1114 Words
- 5 Pages

Decent Essays - Satisfactory Essays
## Essay about Mat 540 Quiz 5

- 1016 Words
- 5 Pages

Write a constraint to ensure that if machine 4 is used, machine 1 will not be used.

- 1016 Words
- 5 Pages

Satisfactory Essays - Good Essays
## Which Of The Following Equation Is True?

- 4111 Words
- 17 Pages

8) You might choose to use a switch statement instead of nested if-else statements if

- 4111 Words
- 17 Pages

Good Essays - Satisfactory Essays
## Quantitative Reasoning for Business

- 10676 Words
- 43 Pages

b. Repeat this 24 more times until you have a list of 25 numbers, each of them between 0 and 10.

- 10676 Words
- 43 Pages

Satisfactory Essays - Satisfactory Essays
## Linear Programming Assignment Essay

- 1625 Words
- 7 Pages

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

- 1625 Words
- 7 Pages

Satisfactory Essays