Questions
Compute the quartic interpolating polynomial for the Hermite interpolation problem p(0) = 2, p'(0) = -9...

Compute the quartic interpolating polynomial for the Hermite interpolation problem

p(0) = 2, p'(0) = -9

p(1) = -4, p'(1) = 4

p(2) = 44

with respect to the Newton basis. Compute the divided differences. Find a quintic interpolating polynomial that additionally satisfies p(3) = 2.

In: Advanced Math

Using the following array: //may be declared outside of the main function const int NUM_Games =4;...

Using the following array:

//may be declared outside of the main function

const int NUM_Games =4;

//may only be declared within the main function

int scores[NUM_GAMES] = {122, 76, 92, 143};

Write a C++ program to run a menu-driven program with the following choices:

1) Display the scores
2) Change a score
3) Display game with the highest score
4) Display a sorted list of the scores
5) Quit

  • Write a function called getValidScore that allows a user to enter in an integer and loops until a valid number that is>= 0 and <= 150 is entered. It returns the valid value.
    • int getValidScore();
  • Write a function called getValidGameNumber that allows a user to enter in an integer and loops until a valid number that is>= 1 and <= NUM_GAMES. It returns the valid value.
    • int getValidGame();
  • Write a function called displayScores that takes the score array as a parameter and displays the scores in the format in the sample run below.
    • void displayScores(int scores[NUM_GAMES]);
  • Write a function called ChangeAScore that takes the score array as a parameter, it allows the user to enter in a valid score and a valid game, It then stores the score under the selected game in the scores array.
    • void ChangeAScore(int scores[NUM_GAMES]);
  • Write a function called displayGameHighestScore that takes the score array as a parameter, it displays the number of the game with the highest score. Note: array elements are 0 to 2 but the game numbers are 1 to 5.
    • //displays the number of the game with the highest score
    • void displayGameHighestScore(int scores[NUM_GAMES]);
  • Write a function called displaySortedScores that takes the scores array as a parameter, it creates a local copy of the scores array, sorts the new array in descending order and displays values in the new array. You can use either bubble or selection sort.
    • void displaySortedScores(int scores[NUM_GAMES]);

Sample Run:

Welcome to the Gaming Program!

1) Display the scores

2) Change a score

3) Display game with the highest score

4) Display a sorted list of the scores to the menu

5) Quit

Select an option (1..4)..1

Display scores

Game 1            Game 2            Game 3            Game 4

   122                   76                    92                     143

1) Display the scores

2) Change a score

3) Display game with the highest score

4) Display a sorted list of the scores to the menu

5) Quit
Select an option (1..4)..2

Change a score

Please enter in the game number …

20

Please enter in a valid game number …

2

Please enter in the score ...

135

1) Display the scores

2) Change a score

3) Display game with the highest score

4) Display a sorted list of the scores to the menu

5) Quit
Select an option (1..4)..3

The game with the highest score is 4

Select an option (1..4)..4

Sorted list of scores

143      135      122      92

Select an option (1..4)..5

In: Computer Science

A soft drink bottling company just ran a long line of 12-ounce soft drink cans filled...

A soft drink bottling company just ran a long line of 12-ounce soft drink cans filled with cola. A sample of 32 cans is selected by inspectors looking for non-conforming items. Among the things the inspectors look for are paint defects on the can, improper seal, incorrect volume, leaking contents, incorrect mixture of carbonation and syrup in the soft drink, and out-of-spec syrup mixture. The results of this inspection are given here. Construct a c chart from the data.

Can
Number
Number of
Non-conformances
Can
Number
Number of
Non-conformances
1 2 17 3
2 1 18 1
3 1 19 2
4 0 20 0
5 2 21 0
6 1 22 1
7 2 23 4
8 0 24 0
9 1 25 2
10 3 26 1
11 1 27 1
12 4 28 3
13 2 29 0
14 1 30 1
15 0 31 2
16 1 32 0



Choose the correct c chart.

A
B
C
D

In: Statistics and Probability

Trump De Drum Ltd (TDT) is a company in aquacultural industry specialised in farming of aquatic...

Trump De Drum Ltd (TDT) is a company in aquacultural industry specialised in farming of aquatic organisms. DT is considering opening a new farm in Sandy Bay. This project would involve the purchase of 13 hectares land at a price of $1,000,000 (Note that: The land is not subject to depreciation for accounting and tax purposes). In addition to that, the company will need to purchase eight special equiments which cost $125,000 each. The equipments are expected to be in use for 5 years and after that, they will be scrapped without any residual value. Each year, each of these equipments will incur $5,000 maintenance cost. It is assumed that the farm will first be used at the beginning of the next financial year: 1 July 2021.

Before starting this new operation, TDT will need to redevelop and renovate the warehouse at the farm. This is expected to cost $200,000. Assume that TDT is not able to claim any annual tax deduction for the capital expenditure to the renovation of the building until the business is sold.

Revenue projections from the farm for the next five years are as follows:

Year 1

Year 2

Year 3

Year 4

Year 5

Beginning

1/7/2021

1/7/2022

1/7/2023

1/7/2024

1/7/2025

Ending

30/6/2022

30/6/2023

30/6/2024

30/6/2025

30/6/2026

Production quantity (tons)

120

140

170

185

185

Price (per tons)

$9,000

$9,150

$9,250

$9,300

$9,350

Operating variable costs associated with the new business including material costs and labour costs. Estimated material costs per tons in year 1 is $2,000 and this cost will increase by 3.5% every year. The farm will require about 6 workers working for 8 hours a day, 200 days per year. The pay rate is flat at $20/ hour including superannuation. Annual operating fixed costs associated with production (excluding depreciation) are $100,000. Existing administrative costs are $550,000 per annum. As a result of the new operation, these administrative costs will increase by 30%. The company is subject to a tax rate of 30% on its profits.

Meanwhile, TDT Ltd is currently financed by 60% of equity and 40% of debt. Company’s bond is traded at a price of $980. The bond has 10 year term, 8% coupon rate paid semi-annually and face value of $1,000. In addition, company’s equity has a beta of 1.2 while the risk-free rate in the market is 3% and market portfolio return is estimated to be 12%.

P. De Potato, the company CFO would like you to help him examine the viability of the project for the next five years, taking into account the projections of sales and operations costs prepared by company’s accountants.

Your tasks: Only Question 2 n 3 n 6 thanks.
the answer to other questions can find at
https://che.gg/2zaC2xe
https://che.gg/2VnCbGk

Based on the information in the case study, P. De Potato has asked you to write a report to TDT’s management advising them as to the best course of action regarding this project. Your report should address the following specific questions asked by management:

  1. Calculate the Net present value (NPV) of the project, assuming that the initial investment could be sold at the end of the five years for $1 million. Briefly comment on your results and make appropriate remarks on the assumptions made for these calculations if necessary.
  2. Estimate the Internal rate of return (IRR) of the project. Briefly comment on your results
  3. Using sensitivity analysis, recalculate NPV using the scenario of
    1. A decrease in project sales by 10% annually.
    2. An increase of the sale price by 5% annually
    3. An increase of material costs change from 3.5% to 8% Briefly comment on your results.
  4. In view of your answer to Point 4 to point 7 above, advise TDT’s management as to whether they should go ahead with the investment project. In your recommendations, you may wish to suggest possible refinements in the method used for evaluating this project.

In: Accounting

Isabel Briggs Myers was a pioneer in the study of personality types. The personality types are...

Isabel Briggs Myers was a pioneer in the study of personality types. The personality types are broadly defined according to four main preferences. Do married couples choose similar or different personality types in their mates? The following data give an indication. Similarities and Differences in a Random Sample of 375 Married Couples Number of Similar Preferences Number of Married Couples All four 27 Three 124 Two 118 One 70 None 36 Suppose that a married couple is selected at random.

1(a) Use the data to estimate the probability that they will have 0, 1, 2, 3, or 4 personality preferences in common. (For each answer, enter a number. Enter your answers to 2 decimal places.) 0=____ 1=____   2=_____ 3=_____ 4=________

1(b) Do the probabilities add up to 1? Why should they?

a. Yes, because they do not cover the entire sample space.

b. No, because they do not cover the entire sample space.

c. Yes, because they cover the entire sample space.

d. No, because they cover the entire sample space.

What is the sample space in this problem?

a. 0, 1, 2, 3 personality preferences in common

b. 1, 2, 3, 4 personality preferences in common

c. 0, 1, 2, 3, 4, 5 personality preferences in common

d. 0, 1, 2, 3, 4 personality preferences in common

2. Consider the data set.

  • 2, 3, 4, 5, 6

(a)

Find the range. (Enter an exact number.)=______

(b)

Use the defining formula to compute the sample standard deviation s. (Enter a number. Round your answer to two decimal places.)=______

(c)

Use the defining formula to compute the population standard deviation σ. (Enter a number. Round your answer to two decimal places.)=____

In: Statistics and Probability

using python 1. #Write a function called multiply_by_index. multiply_by_index #should have one parameter, a list; you...

using python

1.

#Write a function called multiply_by_index. multiply_by_index
#should have one parameter, a list; you may assume every item
#in the list will be an integer. multiply_by_index should
#return a list where each number in the original list is
#multipled by the index at which it appeared.
#
#For example:
#
#multiply_by_index([1, 2, 3, 4, 5]) -> [0, 2, 6, 12, 20]
#
#In the example above, the numbers 1, 2, 3, 4, and 5 appear
#at indices 0, 1, 2, 3, and 4. 1*0 = 0, 2 * 1 = 2, 3 * 2 = 6,
#and so on.


#Write your code here!


#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print:
#[0, 2, 6, 12, 20]
#[0, 7, 14, 21, 28, 35, 42]
#[0, 7, 74, 195, 36, 0, 330]
print(multiply_by_index([1, 2, 3, 4, 5]))
print(multiply_by_index([7, 7, 7, 7, 7, 7, 7]))
print(multiply_by_index([14, 7, 37, 65, 9, 0, 55]))

2.

#Write a function called inside_search. inside_search should
#have two parameters: a list of strings and a string to search
#for. inside_search should return a list of all the indices at
#which the string in the list contains the search string. Note
#that the string at that index does not need to BE the search
#string, but rather must just contain it.
#
#For example:
#
#a_list = ["cat", "cats", "dog", "dogs", "catsup"]
#search_term = "cat"
#inside_search(a_list, search_term) -> [0, 1, 4]
#
#Note that the strings "cat", "cats", and "catsup" all contain
#the search string "cat", and thus the result is their indices:
#[0, 1, 4].
#
#Make sure the list you return is sorted from lowest index to
#highest.


#Add your code here!

#Below are some lines of code that will test your function.
#You can change the value of the variable(s) to test your
#function with different inputs.
#
#If your function works correctly, this will originally
#print:
#[0, 1, 4]
#[2, 3]
#[1, 4]
#[4]
#[]
cats_and_dogs_list = ["cat", "cats", "dog", "dogs", "catsup"]
print(inside_search(cats_and_dogs_list, "cat"))
print(inside_search(cats_and_dogs_list, "dog"))
print(inside_search(cats_and_dogs_list, "cats"))
print(inside_search(cats_and_dogs_list, "sup"))
print(inside_search(cats_and_dogs_list, "aardvark"))

In: Computer Science

QUESTION 1 In the equation to determine the total magnification for a microscope, what does N...

QUESTION 1

  1. In the equation to determine the total magnification for a microscope, what does N stand for?

    1.

    The index of refraction of the eyepiece.

    2.

    The index of refraction of the objective.

    3.

    The average index of refraction of both lenses combined with diffraction.

    4.

    The number of lenses on the microscope.

    5.

    The distance the user can see an image with a relaxed eye.

    6.

    The next point of contact for the observer diffracted lens.

3 points   

QUESTION 2

  1. You sometimes see a fringe of color around an image seen in a simple lens. This is caused by

    1.

    differential chronometry.

    2.

    diffractive chronometry.

    3.

    spherical aberration.

    4.

    chromatic aberration.

    5.

    differential aberration.

3 points   

QUESTION 4

  1. You can correct nearsightedness by placing a _______ lens in front of the eye

    1.

    compact

    2.

    extended

    3.

    final

    4.

    initial

    5.

    converging

    6.

    diverging

3 points   

QUESTION 7

  1. If the focal length of a person's eye is less than that distance from the lens to the retina, then

    we say that person is

    1.

    nearsighted

    2.

    farsighted

    3.

    hyperopic

    4.

    astigmatic

3 points   

QUESTION 8

  1. We can use lenses to correct for a person nearsightedness by

    1.

    forming an image of distant objects between the person's eye and their far point

    2.

    forming an image of distant objects the focal point of the eye

    3.

    forming an image of distant objects between the object and their far point

    4.

    magnifying the image of all distant objects

3 points   

QUESTION 9

  1. When the eye views a distant object, the ciliary muscles are ______ allowing

    the eye's lens to be more __________

    1.

    tense, curved

    2.

    relaxed, flat

    3.

    compact, narrow

    4.

    retracted, open

3 points   

QUESTION 10

  1. The shortest distance at which the eye can focus sharply on an object is referred to

    as the

    1.

    near point.

    2.

    radius of curvature.

    3.

    focal length.

    4.

    ciliary distance.

In: Physics

The following table lists the characteristics of three processes that require service in a time-sharing system...

The following table lists the characteristics of three processes that require service in a time-sharing system Assume that no time is required to choose the next process and perform a context switch. For each algorithm, show the process that is running in each time interval

Process

Name

Arrival

Time

Burst/CPU Time

Priority

Start Time

End Time

Turnaround (TA) Time

WTA

Wait

P1

2

8

1

P2

4

5

4

P3

6

2

3

p4 3 4 2


d) Preemptive Shortest Job First (Shortest Remaining Time First (SRTF))

Time

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

Process

d) Priority Scheduling (PRI): Preemptive

Time

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

Process

d) Round Robin: Time Quantum =2, context switch =1.

Time

0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

Process

In: Computer Science

Question 1 A psychiatrist studying student depression asked 30 students of MTH177 how many times a...

Question 1 A psychiatrist studying student depression asked 30 students of MTH177 how many times a day they wished they did not have to take statistics. She recorded the following data: 3, 5, 1, 0, 6, 8, 8, 5, 2, 3, 2, 0, 7, 6, 7, 4, 2, 15, 25, 3, 1, 1, 4, 3, 5, 6, 7, 8, 1, 2, 3, 5 Sorted: (0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 5, 5, 5, 5, 6, 6, 6, 7, 7, 7, 8, 8, 8, 15, 25)

A) She has asked you to organize the data into table showing frequency, relative frequency, and cumulative frequency.

B) She has also asked you for a relative frequency bar chart (Remember to label)

C) She has also asked for the calculation of:

a. the mean and standard deviation (of the ungrouped data),

b. the median and the five number summary with a box-and-whisker diagram,

c. the mode

d. with regard to the outlier problem, she has asked for the calculation of a 10% trimmed mean, and also for the calculation of outliers using the inter quartile range method.

In: Statistics and Probability

Write a console application to total a set of numbers indicated and provided by a user,...

Write a console application to total a set of numbers indicated and provided by a user, using a while loop or a do…while loop according to the user’s menu choice as follows:

C++programming

Menu

1. To total numbers using a while loop

2. To total numbers using a do...while loop

Enter your menu choice: 1

How many numbers do you want to add: 2

Enter a value for number 1: 4

Enter a value for number 2: 5

The total is: 9

Example

Menu

1. To total numbers using a while loop

2. To total numbers using a do...while loop.

Enter your menu choice: 1

How many numbers do you want to add: 4

Enter a value for number 1: 3

Enter a value for number 2: 2

Enter a value for number 3: 5

Enter a value for number 4: 1

The total is: 11

Requirements

  1. All the values above are only examples.
  1. Menu choice 1 will total numbers provided by the user using a while loop.
  2. Menu choice 2 will total numbers provided by the user using a do…while loop.
  3. The message “Enter a value for number #” must include a sequence number (i.e. 1, 2, 3, 4, 5, 6, …).

In: Computer Science