Engineering
LAB: Output values in a list below a user defined amount - functionsWrite a program that first gets a list of integers from input. The input begins with an integer indicating the number of integers that follows. Then, get the last value from the input, and output all integers less than or equal to that value.Ex: If the input is:5506014020075100the output is:506075The 5 indicates that there are five integers in the list, namely 50, 60, 140, 200, and 75. The 100 indicates that the program should output all integers less than or equal to 100, so the program outputs 50, 60, and 75.Such functionality is common on sites like Amazon, where a user can filter results. Utilizing functions will help to make your main very clean and intuitive.Your code must define and call the following two functions:def get_user_values()def ints_less_than_or_equal_to_threshold(user_values, upper_threshold)Note: ints_less_than_or_equal_to_threshold() returns the new array.
chi(X, t) = x =AX 2 hat e 1 +BX 1 hat e 2 +CX 3 hat e 34.36 A body experiences deformation characterized by the mapping where A, B, and C are constants. The Cauchy stress tensor components at certain point of the body are given by where sigma_{0} is a constant. Determine the Cauchy stress vector t and the first Piola- Kirchhoff stress vector T on a plane whose normal in the current configuration is hat n = hat e 2[sigma] = [[0, 0, 0], [0, sigma_{0}, 0], [0, 0, 0]] * MPa
Consider the relation R = {A, B, C, D, E, F, G, H, I, J} and functional dependencies {A,B} {C} {A} {D,E) {B} {F} {F} (G,H) {D} (I,J} What is the key for R? Decompose R into 2NF and then 3NF relations.
Consider an L1 cache that has 8 sets, is direct-mapped (1-way), and supports a block size of 64 bytes. For the following memory access pattern (shown as byte addresses), show which accesses are hits and misses. For each hit, indicate the set that yields the hit. (30 points)0, 48, 84, 32, 96, 360, 560, 48, 84, 600, 84, 48.please explain answers