Questions
(Python) In a weather station, there is a sensor that measures the temperature three times a...

(Python) In a weather station, there is a sensor that measures the temperature three times a
day (in Celsius). Write a program that asks the user to input three numbers, corresponding to the
sensor's three readings for a particular day. Then, print the minimum, maximum and average value
of the three numbers.
Note: If one or two inputs are either less than -70, or greater than +50 degrees, you should ignore
those one or two inputs, and calculate the minimum, maximum and average using only the other
inputs. If all 3 inputs are either less than -70 or greater than 50, your code should print "Broken
sensor!" and not perform any calculations.
For this question, you must not use any built-in functions or functions from math
module except print(), input() or oat(). You must compute the minimum, maximum
and average values using if statement and arithmetic operators. This means that you
cannot use the built-in max() or min() functions.

In: Computer Science

A state government has an affiliated day-care center for kids. The center provides three different programs...

A state government has an affiliated day-care center for kids. The center provides three different programs for infants, toddlers, and preschool kids. Tuition is charged weekly. The center runs at full capacity, which is 30 infants, 30 toddlers and 40 preschool kids. The center pays a monthly rent of $4,000 for the building they use. The center hires an executive director, a coordinator, an accountant, and a staff member working with maintenance and cleaning. Their annual salaries are $60,000, $50,000, $40,000, and $35,000. State laws require that student-to-teacher ratio should be 5:1 for infants, 6:1 for toddlers, and 10:1 for preschool kids. Each teacher gets an annual salary of $50,000. The expenses for daily activities per kid per day for the three programs are $10 (infant), $12 (toddler), and $15 (preschool kids). Electricity, depreciations, and other expenses run up to around $2,000 in total per month.

(1) Identify all the items of fixed costs and variable costs. (Assuming the size of program for infants, toddlers and preschool kids are fixed at 30, 30 and 40)

(2) The center decides to charge the same weekly tuition for each kid in all the three programs (infants, toddlers, and preschool kids). Calculate the break-even price per kid per week.

(3) If state employees get a 10% discount on the tuition, and the center estimates that 90% of the kids come from families of state employees, what is the full tuition price per week at break-even? (Hint: calculate the weighted break-even price for both state employees and non-state employees).

In: Accounting

21. The inflation rate between the years 2000 and 2001 was 3.43%. Based on this information,...

21. The inflation rate between the years 2000 and 2001 was 3.43%. Based on this information, a basket of goods that cost $178 in the year 2000 would now cost how much in the year 2001? Enter a number rounded to two decimal places.

22.

Three goods are produced and consumed in an economy during years 1 and 2. The table shows prices (P1 and P2) for each good and the quantities produced (Q1 and Q2) for each good. The base year is year 1.

Good

P1

Q1

P2

Q2

Milk

(gallons)

$4.10

40

$4.20

50

Beef

(pounds)

$1.90

20

$2.20

25

Carrots

(bags)

$4.50

10

$4.80

15

Enter numbers rounded to two decimal places in each blank.

Real GDP in year 1 is $  .

Real GDP in year 2 is $  .

In: Economics

Assume a program requires the execution of 50 × 106 FP instructions, 110 × 106 INT...

Assume a program requires the execution of 50 × 106 FP instructions, 110 × 106 INT instructions, 80 × 106 L/S instructions, and 16 × 106 branch instructions. The CPI for each type of instruction is 1, 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate.

a. Find the execution time?

b. By how much must we improve the CPI of FP instructions if we want the program to run two times faster?

c. By how much must we improve the CPI of L/S instructions if we want the program to run two times faster?

d. By how much is the execution time of the program improved if the CPI of INT and FP instructions is reduced by 40% and the CPI of L/S and Branch is reduced by 30%?

In: Computer Science

A firm uses activity-based costing and has the following activity rates: $100 per machine hours, $500...

A firm uses activity-based costing and has the following activity rates: $100 per machine hours, $500 per batch start, $5 per order.

The firm has two several products, including the following two.

Product 1: $100,000 revenue, $50,000 direct costs, 250 machine hours, 25 batch starts, 500 orders

Product 2: $95,000 revenue, $40,000 direct costs, 40 machine hours, 16 batch starts, 400 orders

Which of the following process improvements is the MOST profitable?

a.

Reduce both product’s batch starts by 25%.

b.

Reduce Product 1’s direct costs by 12.5%.

c.

Reduce Product 2’s orders by 50%.

d.

Reduce machine hour activity rate cost by 25%.

In: Accounting

Recall again that Rind & Bordia (1996) investigated whether or not drawing a happy face on...

Recall again that Rind & Bordia (1996) investigated whether or not drawing a happy face
on customers’ checks increased the amount of tips received by a waitress at an upscale
restaurant on a university campus. During the lunch hour a waitress drew a happy,
smiling face on the checks of a random half of her customers. The remaining half of the
customers received a check with no drawing (18 points).
The tip percentages for the control group (no happy face) are as follows:
45% 39% 36% 34% 34% 33% 31% 31% 30% 30% 28%
28% 28% 27% 27% 25% 23% 22% 21% 21% 20% 18%
8%
The tip percentages for the experimental group (happy face) are as follows:
72% 65% 47% 44% 41% 40% 34% 33% 33% 30% 29%
28% 27% 27% 25% 24% 24% 23% 22% 21% 21% 17%

This time, you are to perform a “hypothesis test” using the tip data, answering each of
the questions below. For short-answer questions, be brief. However, you must give
enough detail to justify your answers. Single-sentence responses will generally not
suffice, but do not exceed a paragraph for any given answer.

h. Enter the data above into SPSS. You will enter in two variables for each
restaurant patron: 1) which experimental group they belonged to (1 = no
happy face, 2 = happy face) and 2) the tip percentage left.

In: Statistics and Probability

A dairy scientist is testing a new feed additive. She chooses 13 cows at random from...

A dairy scientist is testing a new feed additive. She chooses 13 cows at random from a large population. She randomly assigns nold = 8 to the old diet and nnew = 5 to a new diet including the additive. The cows are housed in 13 widely separated pens. After two weeks, she milks each cow and records the milk produced in pounds: Old Diet: 43, 51, 44, 47, 38, 46, 40, 35 New Diet: 47, 75, 85, 100, 58 Let μnew and μold be the population mean milk productions for the new and old diets, respectively. She wishes to test H0 : μnew − μold = 0 against HA : μnew − μold ̸= 0 using α = 0.05.(a) Graph the data as you see fit. Why did you choose the graph(s) that you did and what does it (do they) tell you?(b) Perform the hypothesis test assuming equal population variance. Compute the p-value and make a reject or not reject decision. State your conclusion in the context of the problem. (c) Repeat the previous part, but without the equal variance assumption. (d) Compare the results from part b and c. Which test do you trust more and why? I have answers for (a) and (b) with p-value 0.035 which rejects null hypothesis. Can you help with (c) and (d)? Thank you!

In: Math

(JAVA) We will write a program to check the spelling of the word entered by user,...

(JAVA)

We will write a program to check the spelling of the word entered by user, using data from a dictionary, which is text file. The program will ask user to enter a word for spell check, and then check in the text file (dictionary.txt) if the word exists. (The dictionary.txt file is provided) If the word exists in text file, the output will be “Word is correctly spelled”. If the word doesn’t exist in the text file, program will write the message “Word doesn’t exist in the Dictionary” and will request user to enter “yes” or “no” to save the word in another text file. If user wants to write the word in a text file, user will enter “yes” (This text file can be named anything, for example “PersonalDictionary.txt”). Note: at this step, you need to write the word in the text file and display the message “****** is saved successfully in the file” (Asterisks denote the word entered by the user). If user doesn’t want to write/save the word in the file, user will enter “no” and the program will display a message “****** is not stored in the file” (Where asterisks denote the word). After this, program will ask the user to enter another word or enter some key (for example: -1) to exit the program. The program will use “dictionary.txt” file to read the list of words to be compared with. The program will create and write into a file (you can name it anything, for example “updateDictionary.txt”), the list of words that don’t match.

1. (60 points) Program runs successfully

a. (10 points) Inputs word from the user using a Scanner object.

b. (10 points) Reads the dictionary text file and save the data in a variable

c. (10 points) Repeats until user exit the program (Using Sentinel value to stop)

d. (15 points) Writes the word into a new personal dictionary file

e. (15 points) Outputs the final summary correctly for spelling check

2. (40 points) Program contents follow readability standards including:

a. (10 points) Correct use of arrayLists or any other data type

b. (10 points) Successfully write and use a method outside of the main method

c. (10 points) Correct variable types with Useful, Camel-case identifiers and proper tabbing.

d. (10 points) Document your code with at least 5 helpful comments

i. Put comments above the lines of code they are documenting, not to the right

I cannot attach the dictionary.txt file i appologize

In: Computer Science

Dodge Ball Bearings had sales of 14,000 units at $40 per unit last year. The marketing...

Dodge Ball Bearings had sales of 14,000 units at $40 per unit last year. The marketing manager projects a 25 percent increase in unit volume sales this year with a 5 percent price decrease (due to a price reduction by a competitor). Returned merchandise will represent 7 percent of total sales. What is your net dollar sales projection for this year?

In: Finance

Suppose a seven-year, $1000 bond with an 8% coupon rate and semiannual coupons is trading with...

Suppose a seven-year, $1000 bond with an 8% coupon rate and semiannual coupons is trading with a yield to maturity of 6.75%.

  1. Is this bond currently trading at a discount, at par, or at a premium? Explain.

  2. If the yield to maturity of the bond rises to 7.00% (APR with semiannual compounding), what price will the bond trade for?

**please list out step by step actions, please show the formulas used, please DONT USE excel**

In: Finance