def sum_gt_avg(num_list): Implement a function that returns the sum of the numbers in num_list that have...

def sum_gt_avg(num_list): Implement a function that returns the sum of the numbers in num_list that have a value greater than the average value in the list. • Parameters: num_list is a list of numbers (mixed integers and floats) • Examples: sum_gt_avg([1,2,3,4,5]) → 9 # 4+5

sum_gt_avg([1,2,3,-4,5]) → 10 # 2+3+5

sum_gt_avg([-1,-2,-3,-4,-5]) → -3 # -1-2

in python

In: Computer Science

A brick laid its greatest dimension horizontal and its face parallel to the wall face called...

A brick laid its greatest dimension horizontal and its face parallel to the wall face called

A)Shiner

B) Plasticity

C) Strength

D) All of the above

Grouting brick or CMU wall serves to

  1. Increase the cross sectional area of the wall
  2. Resist vertical and lateral shear loads
  3. Bonds wythes together

D. All of the above

In: Civil Engineering

Create a SQLite Replit that creates a table representing students in a class, including at least...

Create a SQLite Replit that creates a table representing students in a class, including at least name, graduation year, major, and GPA.

Include two queries searching this student data in different ways, for example searching for all students with graduation year of 2021, or all students with GPA above a certain number.

Here is an example you can work from: https://repl.it/@klmec/SQLExample (this is the default example from Replit; you can choose among several other examples when you create a new SQLite Replit).

In: Computer Science

Apply DMAIC to improve the following at any university. Course registration.

Apply DMAIC to improve the following at any university.

Course registration.

In: Operations Management

In an experiment, subjects were asked to mentally imagine the letter 'F'. They were then instructed...

In an experiment, subjects were asked to mentally imagine the letter 'F'. They were then instructed to mentally move around the letter and make a judgement on each corner. The researchers found that

they could respond more accurately by pointing than by responding verbally.
only about half of the participants could complete the task at all.
they could respond more quickly in verbal form than by pointing.
most could not complete the task, but those who did preferred to point.

In: Psychology

For this computer assignment, you are to write and implement an interactive C++ program to find...

For this computer assignment, you are to write and implement an interactive C++ program to find and print all prime numbers, which are less than or equal to a given value of n, using the algorithm known as the Sieve of Eratosthenes. A prime number p is an integer greater than 1 that is divisible only by 1 and p (itself). The algorithm begins by initializing a set container to contain all the integers in the range 2 to n. A loop makes multiple passes over the elements in the set, using successive integer key values 2, 3, 4, … Each pass “shakes free” nonprime numbers and lets them “filter through the sieve.” At the end, only the prime numbers remain. Begin with the integer m = 2, which is the smallest prime number. The pass scans the set and removes all multiples of 2, having the form 2 * k for k >= 2. The multiples cannot be prime numbers, because they are divisible by 2. At the end of the pass, we have removed all even numbers except 2. Next, look at the integer m = 3, which is a prime number. As with value 2, remove all multiples of 3, having the form 3 * k for k >= 3. The multiples 12, 18, and so forth, are even numbers, so they have already been removed from the set. The next key integer is m = 4, which is no longer in the set, because it was removed as a multiple of 2. The pass takes no action. The process continues until it removes all multiples of prime numbers. In other words, for integer m, remove all multiples of m, having the form m * k for k >= m.

The numbers that remain in the sieve are the prime numbers in the range 2 to n. The algorithm uses an optimization feature by looking at the key values for m <= sqrt ( n ). However, in your implementation, test all numbers m such that m * m <= n, rather than computing the square root of n.

Programming Notes:

1. Use a set container to store the prime numbers. In the STL, a set is implemented as an associative container, it uses the model of a mathematical set, it stores keys that are objects of a specified data type, where duplicate keys are not allowed. To use a set in your program, you need to insert the statement: #include in your header file.

2. In addition to the main ( ) routine, implement (at least) the following two subroutines in your program: • void sieve ( set < int >& s, int n ): This routine can be used to apply the Sieve of Eratosthenes algorithm to remove all nonprime numbers from the integer set s = { 2, 3, …, n }. • void print_primes ( const set < int >& s ): This routine can be used to print the elements in the integer set s (NO_ITEMS = 16 primes per line and ITEM_W = 4 spaces allocated for each prime). Sieve of Eratosthenes 2

3. The main ( ) routine creates an empty set of integers and prompts the user for an upper limit and calls the subroutine sieve ( ) to execute the Sieve of Eratosthenes. It calls the subroutine print_primes ( ) to print the prime numbers on stdout.

4. Include your header file prog3.h, by inserting the statement: #include “prog3.h” at the top of your source file prog3.cc.

ALSO PLEASE ATTACH AN HEADER FILE

In: Computer Science

An exercise science major wants to try to use body weight to predict how much someone...

An exercise science major wants to try to use body weight to predict how much someone can bench press. He collects the data shown below on 30 male students. Both quantities are measured in pounds.

Body weight

Bench press

148

145

176

148

154

133

189

156

181

166

217

174

210

168

150

139

137

109

151

119

172

138

219

167

142

131

143

119

164

151

136

124

147

149

129

134

219

162

169

140

180

149

187

156

198

149

156

131

220

149

154

138

212

147

122

122

163

133

136

136

b) Compute a 95% confidence interval for the average bench press of 150 pound males. What is the lower limit? Give your answer to two decimal places.  

c) Compute a 95% confidence interval for the average bench press of 150 pound males. What is the upper limit? Give your answer to two decimal places.  

d) Compute a 95% prediction interval for the bench press of a 150 pound male. What is the lower limit? Give your answer to two decimal places.  

e) Compute a 95% prediction interval for the bench press of a 150 pound male. What is the upper limit? Give your answer to two decimal places.  

In: Math

The goal of this assignment is to write five short Java/Pyhton programs to gain practice with...

The goal of this assignment is to write five short Java/Pyhton programs to gain practice with expressions, loops and conditionals.

  1. Boolean and integer variables and Conditionals.

Write a program Ordered.java that reads in three integer command-line arguments, x, y, and z.   Define a boolean variable isOrdered whose value is true if the three values are either in strictly ascending order  (x < y < z) or in strictly descending order  (x > y > z), and false otherwise.

Print out the variable isOrdered using System.out.println(isOrdered).

% java Ordered 10 17 49

true

% java Ordered 49 17 10

true

% java Ordered 10 49 17

false

  1. Type conversion. There are a number of different formats for representing color.  RGB format specifies the level of red (R), green (G), and blue (B) on an integer scale from 0 to 255:

It is the primary format for LCD displays, digital cameras, and web pages. CMYK format specifies the level of cyan (C), magenta (M), yellow (Y), and black (K) on a real scale of 0.0 to 1.0:

It is the primary format for publishing books and magazines.

Write a program RGBtoCMYK.java that reads in three integers red, green, and blue from the command line and prints out equivalent CMYK parameters. The mathematical formulas for converting from RGB to an equivalent CMYK color are:

Hint.   Math.max(x, y) returns the maximum of x and y.

        % java RGBtoCMYK 75 0 130       // indigo

cyan    = 0.423076923076923

magenta = 1.0

yellow  = 0.0

black   = 0.4901960784313726

If all three red, green, and blue values are 0, the resulting color is black (0 0 0 1).

In: Computer Science

Packaging Solutions Corporation manufactures and sells a wide variety of packaging products. Performance reports are prepared...

Packaging Solutions Corporation manufactures and sells a wide variety of packaging products. Performance reports are prepared monthly for each department. The planning budget and flexible budget for the Production Department are based on the following formulas, where q is the number of labor-hours worked in a month:

Cost Formulas
Direct labor $16.20q
Indirect labor $4,000 + $2.00q
Utilities $5,500 + $0.30q
Supplies $1,600 + $0.20q
Equipment depreciation $18,300 + $2.90q
Factory rent $8,400
Property taxes $2,900
Factory administration $13,500 + $0.50q

The Production Department planned to work 4,200 labor-hours in March; however, it actually worked 4,000 labor-hours during the month. Its actual costs incurred in March are listed below:

Actual Cost Incurred in March
Direct labor $ 66,360
Indirect labor $ 11,580
Utilities $ 7,150
Supplies $ 2,650
Equipment depreciation $ 29,900
Factory rent $ 8,800
Property taxes $ 2,900
Factory administration $ 14,830

Prepare the Production Department’s flexible budget performance report for March, including both the spending and activity variances.(Indicate the effect of each variance by selecting "F" for favorable, "U" for unfavorable, and "None" for no effect (i.e., zero variance). Input all amounts as positive values.)

Packaging Solutions Corporation
Production Department Flexible Budget Performance Report
For the Month Ended March 31
Actual Results Flexible Budget Planning Budget
Labor-hours 4,000
Direct labor $66,360
Indirect labor 11,580
Utilities 7,150
Supplies 2,650
Equipment depreciation 29,900
Factory rent 8,800
Property taxes 2,900
Factory administration 14,830
Total expense $144,170

In: Accounting

Trecek Corporation incurs research and development costs of $685,000 in 2017, 30 percent of which relate...

Trecek Corporation incurs research and development costs of $685,000 in 2017, 30 percent of which relate to development activities subsequent to IAS 38 criteria having been met that indicate an intangible asset has been created. The newly developed product is brought to market in January 2018 and is expected to generate sales revenue for 10 years.

Assume that a U.S.–based company is issuing securities to foreign investors who require financial statements prepared in accordance with IFRS. Thus, adjustments to convert from U.S. GAAP to IFRS must be made. Ignore income taxes.

Required:

  1. Prepare journal entries for research and development costs for the years ending December 31, 2017, and December 31, 2018, under (1) U.S. GAAP and (2) IFRS.

  2. Prepare the entry(ies) that Trecek would make on the December 31, 2017, and December 31, 2018, conversion worksheets to convert U.S. GAAP balances to IFRS.

In: Accounting

Question #1 A bakery's use of corn sweetener is normally distributed with a mean of 80...

Question #1

A bakery's use of corn sweetener is normally distributed with a mean of 80 gallons per day and a standard deviation of four gallons per day. Lead time for delivery of the corn sweetener is normal, with a mean of six days and a standard deviation of two days. If the manager wants a service level of 99 percent, calculate the following: [Note: for a 99% service level the appropriate z value is 2.33] Equations:

  1. Assuming demand is constant at 80 gallons per day and lead time is variable as indicated above, what would the reorder point be?

  1. Assuming lead time is constant at six days and demand is variable as indicated above, what would the reorder point be?

  1. The supply chain manager for this bakery is considering two options to improve performance. Option #1 is marketing effort to gain new customers that will stabilize demand. Options #2 is a long term contract with the supplier which will guarantee delivery lead times. Which option would you recommend and why?



In: Operations Management

Here are the abbreviated financial statements for Planner’s Peanuts: INCOME STATEMENT, 2019 Sales $ 3,500 Cost...

Here are the abbreviated financial statements for Planner’s Peanuts:

INCOME STATEMENT, 2019
Sales $ 3,500
Cost 2,700
Net income $ 800
BALANCE SHEET, YEAR-END
2018 2019 2018 2019
Assets $ 4,500 $ 5,000 Debt $ 833 $ 1,000
Equity 3,667 4,000
Total $ 4,500 $ 5,000 Total $ 4,500 $ 5,000

Assets are proportional to sales. If the dividend payout ratio is fixed at 50%, calculate the required total external financing for growth rates in 2020 of (a) 20%, (b) 25%, and (c) 30%. (Do not round intermediate calculations. Round your answers to 2 decimal places.)

In: Finance

Is it ethical for governments to write malware to fight their enemies? What impact can it...

Is it ethical for governments to write malware to fight their enemies? What impact can it have on civilians?

In: Computer Science

what are some of the challenges faced by MNCs in their global compensation practices?

what are some of the challenges faced by MNCs in their global compensation practices?

In: Operations Management

Requirement 1—All users in the csmtech.local forest should be authenticated to all resources in the csmasia....

  • Requirement 1—All users in the csmtech.local forest should be authenticated to all resources in the csmasia. local forest.
  • Requirement 2—Selected users in the csmasia.local domains should be authenticated to selected resources in the csmtech.local forest.
  • Requirement 3—No users in the csmchina.local domain tree should be authenticated to the csmtech.local forest.
  • Requirement 4—Users in the bj.csmchina.local domain access resources in the phx.usa.csmtech.local domain frequently. Latency should be kept to a minimum.
  • Requirement 5—Users in the phx.usa.csmtech.local domain access resources in the gb.uk.csmtech.local domain frequently. Latency should be kept to a minimum.
  • Requirement 6—Users in the Linux network need to access resources in the csmasia.local forest frequently.

Given the preceding requirements, write a report describing how to configure trust relationships and listing configuration options, such as one way or two way, transitivity, authentication, and so forth.

In: Computer Science