Write a function calc_bonus (sales) which calculates and returns the bonus value given a sales amount based on the following criteria:
def calc_bonus(sales): # Checking if sales is greater than or equals to 100000 if(sales>=100000): # Returning value 5000 as bonus return 5000 # Checking if sales is greater than or equals to 80000 elif(sales>=80000): # Returning value 3500 as bonus return 3500 # Checking if sales is greater than or equals to 50000 elif(sales>=50000): # Returning value 1000 as bonus return 1000 # Checking if sales is less than 50000 else: # Returning value 0 as bonus return 0 # Testing print(calc_bonus(85000))
3500
Write a function calc_bonus (sales) which calculates and returns the bonus value given a sales amount...
Write the parametric equations x=2siny=4cos0 in the given Cartesian form. y^2/16= with x0. Write the parametric equations x=2sin2y=5cos2 in the given Catesian form. y= with 0x2. Write the parametric equations x=4ety=8e−t as a function of x in Cartesian form. y= with x0. Write the parametric equations x = 2 sin 0, y = 4 cos 0, 0<O< in the given Cartesian form. = with x > 0. 16 Write the parametric equations x = 2 sin’e, y = 5 cos?...
C++ 3. Write a program that recursively calculates n factorial (n!) a) Main should handle all input and output b) Create a function that accepts a number n and returns n factorial c) Demonstrate the function with sample input from console. n! n * n-1 * n-2 * n-3, for all n > 0 For example, 3!-3 21-6 using a recursive process to do so. Example output (input in bold italics) Enter a number: 5 5120
(3) Consider the function given by y0.0 y=2.2 y=2x 0.0 0.0 < x < 1.0 1.0<x<10.0 20.0 > 10.0 Write a C++ function that, given a double argument r, calculates and returns the y value.
Suppose that a consumer's utility function is u(x, y) = x, defined for all bundles such that x > 0 and y > 0. For any given positive level of utility, the corresponding indifference curve is O strictly convex. a vertical line. O a horizontal line. a line that is neither horizontal nor vertical.
Find the inverse Laplace transform, f(t) of the function F(s)+ f(t) Points possible: 1 S > 3 Preview t>0 Enter an algebraic expression [more..]
Question 1 (1 point) Given: Br" (aq) -->BrO3- (aq), basic solution. How many electrons appear in the balanced half-reaction? 06 o o o o
Q3. Find the quantile function F-1 for F(r)-1-1-α, x > 1.
Use the convolution theorem to find the inverse Laplace transform of the given function. 2 $3 (s2+4) 2 >(t)= (s2+4) s3
All in C++ Create a function NumEven( std: forward_list-int> SList) that computes and returns the number of even values in a singly linked list SList of type std: forward_list-int> If there is no even value or the list is empty, return 0. Select the appropriate C++ statement for each of the below to implement the function. unsigned NumEven (std:: forward_list<int> Slist) { Select] Select ] Select ] } [ Select] for (int i; i < num; i++) { if (n...
Pago < 6 > 9 0 ZOOM + 5. (4 points Bonus) a) Show how to accomplish the following synthesis of ibuprofen. The available organic reagents have four or fewer carbon atoms. How? Ibuprofen H3CCO,