Questions
Program 4(Total Point 15): You will use the scanner class and ask users following things. -...

Program 4(Total Point 15): You will use the scanner class and ask users following things.

- Student Age (Value)

- Student Name (Key)

You will store information for at least 10 students on Map. You will then use iterator to print all the values. You will print the youngest student’s name.

In: Computer Science

The Campbell Company is considering adding a robotic paint sprayer to its production line. The sprayer's...

The Campbell Company is considering adding a robotic paint sprayer to its production line. The sprayer's base price is $830,000, and it would cost another $17,500 to install it. The machine falls into the MACRS 3-year class (the applicable MACRS depreciation rates are 33.33%, 44.45%, 14.81%, and 7.41%), and it would be sold after 3 years for $630,000. The machine would require an increase in net working capital (inventory) of $14,500. The sprayer would not change revenues, but it is expected to save the firm $457,000 per year in before-tax operating costs, mainly labor. Campbell's marginal tax rate is 40%. What is the Year-0 net cash flow? $ What are the net operating cash flows in Years 1, 2, and 3? Round your answers to the nearest dollar. Year 1 $ Year 2 $ Year 3 $ What is the additional Year-3 cash flow (i.e, the after-tax salvage and the return of working capital)? Round your answer to the nearest dollar. $ If the project's cost of capital is 11 %, what is the NPV of the project? Round your answer to the nearest dollar. $ Should the machine be purchased?

In: Finance

Unlike direct materials, the sum of all the direct labor variances is always equal to the...

Unlike direct materials, the sum of all the direct labor variances is always equal to the flexible budget variance.

True

False

A negative direct labor efficiency variance is considered favorable.

True

False

For direct labor, if the efficiency and rate variances are both negative, then the flexible budget variance will be unfavorable.

True

False

The total number of hours worked by employees is always directly tied to the total level of production.

True

False

In: Accounting

The materials needed to make a burger include 1 burger bun, 2 cups of vegetable, and...

The materials needed to make a burger include 1 burger bun, 2 cups of vegetable, and 1 burger patty. Now, there are 5 burger buns, 12 cups of vegetable, and 6 burger patties. Which is the limiting reactant/material? What is the theoretical yield of burger? If 3 burgers are accidentally dropped on the floor, what is the percent yield?

In: Chemistry

The credit department of Lion’s Department Store in Anaheim, California, reported that 26% of their sales...

The credit department of Lion’s Department Store in Anaheim, California, reported that 26% of their sales are cash, 27% are paid with a credit card, and 47% with a debit card. Twenty percent of the cash purchases, 86% of the credit card purchases, and 61% of the debit card purchases are for more than $50. Ms. Tina Stevens just purchased a new dress that cost $120. What is the probability that she paid cash? (Round your answer to 3 decimal places.)

A) Probability:

In: Math

Calculate the quantity of energy produced per mole of U -235 (atomic mass = 235.043922 amu...

Calculate the quantity of energy produced per mole of U -235 (atomic mass = 235.043922 amu ) for the neutron-induced fission of U -235 to produce Te -137 (atomic mass = 136.9253 amu ) and Zr -97 (atomic mass = 96.910950 amu ).

In: Chemistry

Nike claims that the number of miles a jogger can get a on a pair of...

Nike claims that the number of miles a jogger can get a on a pair of Nike’s running shoes is higher than 1000. Moreover, Nike also claims that their shoes outperform Adidas shoes by more than 15 miles. We have samples of 150 joggers using Nike shoes and 170 using Adidas shoes. The sample average of miles they got are 1015 for Nike and 995 for Adidas. The sample standard deviations are 100 for Nike and 50 for Adidas.

a.) At a 5% level of significance, is there statistical evidence showing that Nike shoes get more than 1000 miles?

b.) Obtain the p-value for the previous test. What does it mean?

c.) At a 5% level of significance, is there statistical evidence showing that Nike shoes outperform Adidas shoes?

d.) Obtain the p-value for the previous test. Interpret.

In: Math

emergency physics question! what is the minimum film of coating with index of refraction of 1.52...

emergency physics question!

what is the minimum film of coating with index of refraction of 1.52 on a glass with index of refraction of 1.40 for which destructive interference of a red component of white light in air can take place by reflection? assume the wavelength of the red component in vacuum is 650nm. find the minimum visible wavelength in vacuum for constructive interference due reflection for the thickness of the coating film you found.

what should be the minimum additional coating to get constructive interference for the red component of 650nm?

not just an answer, I need help understand the answer and the question!

STEP BY STEP explanation please!

In: Physics

A survey of 1000 adults from a certain region​ asked, "Do you enjoy shopping for clothing...

A survey of 1000 adults from a certain region​ asked, "Do you enjoy shopping for clothing for​ yourself?" The results indicated that 59​% of the females enjoyed shopping for clothing for themselves as compared to 51​% of the males. The sample sizes of males and females were not provided. Suppose that of 600 ​females, 354 said that they enjoyed shopping for clothing for themselves while of 400 ​males, 204 said that they enjoyed shopping for clothing for themselves. Complete parts​ (a) through​ (d) below.

a. Is there evidence of a difference between males and females in the proportion who enjoy shopping for clothing for themselves at the 0.1 level of​ significance? State the null and alternative​ hypotheses, where pi 1 is the population proportion of females that enjoy shopping for themselves and pi 2 is the population proportion of males that enjoy shopping for themselves.

Determine the value of the test statistic.

Determine the critical​ value(s) for this test of hypothesis.

The critical​ value(s) is​ (are) nothing

find the p value

Construct and interpret a 90​% confidence interval estimate for the difference between the proportion of males and females who enjoy shopping for clothing for themselves.

What are the answers to​ (a) through​ (c) if 212 males enjoyed shopping for clothing for​ themselves?

Is there evidence of a difference between males and females in the proportion who enjoy shopping for clothing for themselves at the 0.1 level of​ significance? State the null and alternative​ hypotheses, where pi 1π1 is the population proportion of females that enjoy shopping for themselves and pi 2π2 is the population proportion of males that enjoy shopping for themselves.

Determine the value of the test statistic.

Determine the critical​ value(s) for this test of hypothesis.

The critical​ value(s) is​ (are)

Find the​ p-value and interpret its meaning.

Construct and interpret a 90​% confidence interval estimate for the difference between the proportion of males and females who enjoy shopping for clothing for themselves.

In: Math

In recent years, public universities have experienced major budget cuts due to reduced funding from their...

In recent years, public universities have experienced major budget cuts due to reduced funding from their state governments. These budget cuts usually occur at the most inopportune time—during the school year when contractual commitments with faculty and staff had been signed, programs had been planned, and students were enrolled and taking classes.

Required:

  1. Should the administration be “fair” to all affected and institute across-the-board cuts whenever the state announces a reduction in funding?
  2. If not across-the-board cutbacks in programs, then would you recommend more focused reductions, and if so, what priorities would you establish for bringing spending in line with revenues?
  3. Since these usually are not one-time-only cutbacks, how would you manage continuous, long-term reductions in budgets extending over a period of years?
  4. Should the decision-making process be top-down (centralized with top administrators) or bottom-up (participative)? Why?
  5. How should issues such as protect-your-turf mentality, resistance to change, and consensus building be dealt with?

In: Accounting

You need to write and run C programs (as processes on your Linux machine), and monitor...

You need to write and run C programs (as processes on your Linux machine), and monitor their behavior. Consider the following problem: A program is to be written to print all numbers between 1 and 1000 (inclusive) that are not (evenly) divisible by either 2 or 3. This problem is to be solved using three processes (P0, P1, P2) and two one-integer buffers (B0 and B1) as follows:  P0 is to generate the integers from 1 to 1000, and place them in B0 one at a time. After placing 1000 in the buffer, P0 places the sentinel 0 in the buffer, and terminates.  P1 is to read successive integers from B0. If a value is not divisible by 2, the value is placed in B1. If the value is positive and divisible by 2, it is ignored. If the value is 0, 0 is placed in B1, and P1 terminates.  P2 is to read successive integers from B1. If a value is not divisible by 3, it is printed. If the value is positive and divisible by 3, it is ignored. If the value is 0, P2 terminates. Write a program to implement P0, P1, and P2 as separate processes and B0 and B1 as separate pieces of shared memory {each the size of just one integer}. Use semaphores to coordinate processing. Access to B0 should be independent of access to B1; for example, P0 could be writing into B0 while either P1 was writing into B1 or P2 was reading.

In: Computer Science

At 700 K acetaldehyde decomposes in the gas phase to methane and carbon monoxide. The reaction...

At 700 K acetaldehyde decomposes in the gas phase to methane and carbon monoxide. The reaction is:
CH3CHO(g)→CH4(g)+CO(g)
A sample of CH3CHO is heated to 700 K and the pressure is measured as 0.43 atm before any reaction takes place. The kinetics of the reaction are then followed by measurements of total pressure and these data are obtained:

t(s) 0 1000 3000 7000
PTotal (atm) 0.43 0.50 0.59 0.68

Question:

Find total pressure after 1.39×104 s .

In: Chemistry

TASK 1 (30 marks) Chantel Cohen works for ABC retailers and is seeking management’s approval to...

TASK 1

Chantel Cohen works for ABC retailers and is seeking management’s approval to install an automatic mail-response system. Using the correct proposal format, write to Jamie Oliver, Chantel’s manager requesting a decision to be made with regard to the installation of an automatic mail-response system.

Pay careful attention to the following:

· Audience, register, tone and style

· Choice of words and language structure

· Format

Criteria used for Assessment                                       Marks

Correct format                                                        3

The problem                                                           5

The solution                                                             14

Cost analysis                                                           4

Conclusion                                                              4

Total                                                                          30

In: Accounting

************CODING IN C++ ONLY ******************** Instructions Write a function, remove, that takes three parameters: an array...

************CODING IN C++ ONLY ********************

Instructions

Write a function, remove, that takes three parameters: an array of integers, the number of elements in the array, and an integer (say, removeItem).

The function should find and delete the first occurrence of removeItem in the array. (Note that after deleting the element, the number of elements in the array is reduced by 1.) Assume that the array is unsorted. Also, write a program to test the function.

Your program should prompt the user to enter 10 digits for the array. Display the starting array to the user and prompt them to select an integer to remove. After the selected integer has been removed, the updated list should be displayed to the user. If the value does not exist or the array is empty, output the following message: x is not in the list

GRADING CRITERIA

1)  Defined the remove function

2) Removing elements from the list

3) List does not contain integer to be removed

TESTING WITH INPUT

2
7
6
8
3
9
10
1
5
4
6

OUTPUT SHOULD BE

2 7 8 3 9 10 1 5 4

*************************************

A SAMPLE OF MY CODE, IT HAS MANY ERRORS

#include <iostream>
using namespace std;

void remove(int arrayList[],int& size,int removeItem)
{
int i, j;
for (i = 0; i < size; i++)
if (arrayList[i] == removeItem)
if(i == size-1)
{
//decrease items
size--;
return;
}
else
{
for (j = i; j < size-1; j++)
arrayList[j] = arrayList [j+1];
size --;
return;
}
cout <<" item" << remove item << is not found in the array";
}

In: Computer Science

1. What is the pH of pure water? 2. What is the change in pH when...

1. What is the pH of pure water?

2. What is the change in pH when 10.0 mL of 0.010 M HCl is added to 500 mL of pure water.

3. What is the change in pH when 10.0 mL of 0.010 M NaOH is added to 500 mL of pure water.


In: Chemistry