A researcher wishes to examine the relationship between wage earned and educational level of workers. For a sample of 4000 workers she has data on hourly earnings (measured in SAR), age of the worker (in years), worker’s gender, years of experience, number of years with the present employer, size of the firm in which the worker is employed, and highest educational qualification (with 4 classifications: no qualification, secondary school certificate, bachelor degree or PhD)
In: Statistics and Probability
Write a program that asks the user for a file name.
The file contains a series of scores(integers), each written on a separate
line.
The program should read the contents of the file into an array and then
display
the following content:
1) The scores in rows of 10 scores and in sorted in descending order.
2) The lowest score in the array
3) The highest score in the array
4) The total number of scores in the array
5) The average score in the array.
6) The median score in the array.
Please find a file named scores.txt in Canvas.
Program structure shall be as follows:
A top level function named TestScoreAnalysis() which accepts a
file of scores to be analyzed and displayed to the console
screen describing the six content items specified above.
Each task shall be done in a separate function.
There are nine(9) tasks,... therefore at least nine functions
should be constructed to meet the requirements.
Allocate an array to hold at least 100 scores.
Note - The programming language is C++
In: Advanced Math
A researcher wishes to examine the relationship between wage earned and educational level of workers. For a sample of 4000 workers she has data on hourly earnings (measured in SAR), age of the worker (in years), worker’s gender, years of experience, number of years with the present employer, size of the firm in which the worker is employed, and highest educational qualification (with 4 classifications: no qualification, secondary school certificate, bachelor degree or PhD)
In: Statistics and Probability
In: Statistics and Probability
26 59 88 109 154 209 265 294 304 321 42 64 96 121 155 224 267 294 304 322
54 77 97 129 164 248 275 299 306 323 57 85 107 136 179 249 287 299 309 324
1. What should the interval size be if you want to use 12 intervals?
2. Generate a Frequency Distribution from the interval size and number of intervals stated above and then tell me what the frequency of the highest interval is. For the lower apparent limit of your lowest interval use a multiple of 5.
3. What is the Relative Frequency of the lowest interval?
4. What is the Midpoint in the interval third one down from the top?
5. What is the Cumulative Relative Frequency in the third interval up from the bottom?
Is there a way to find these answers on my TI-83?
In: Statistics and Probability
Write a Java programs.
Q.1. A freshman has 0-29 credits, a sophamore has 30-59, a junior has 60-89 and a senior has 90+ credits. Write a program to open the file and read all the contents. Report back to the user the number of freshmen, sophomores, juniors and seniors. Output the first and last names of the person with the highest GPA for each of those categories.
Q.2. (Occurrence of each letter) Write a Program that prompts the user to enter a file name and displays the occurrence of each letter in the file. Letters are case insensitive.
Students.java
The file students.txt has the following format on each line
fname(string) lname(string) credits(int) GPA(float) with a single space between each field.
For example
Mitchell Beck 11 2.88
Thelma Colon 43 2.25
Erma Mullins 68 1.98
Pedro Mack 17 1.95
.
In: Computer Science
Create a program in java with the following information:
Design a program that uses an array with specified values to display the following:
The lowest number in the array
The highest number in the array
The total of the numbers in the array
The average of the numbers in the array
Initialize an array with these specific 20 numbers: 26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
example output:
The array was initialized to:
26 45 56 12 78 74 39 22 5 90 87 32 28 11 93 62 79 53 22 51
The lowest number is: 5
The highest number is: 93
The total of the numbers is: 965
Please use the code below to design the program above:
// Chapter 6 Figure 6-15
// psuedocode embedded as comments
// Ray Warren
// 5 June 2020 - create C++
// 17 Aug 2020 C++ -> java
import java.util.Scanner;
public class DiscountRate
{
// CONSTANTS
// Create a Scanner object for keyboard input.
static final Scanner KEYBOARD = new Scanner(System.in);
// start
public static void main(String[] args)
{
// Declaration
// num quantity
int quantity;
// num SIZE = 4, local CONSTANT
final int SIZE = 4;
// num DISCOUNTS[4] = 0, 0.10, 0.15, 0.20
double DISCOUNTS[] = {0, 0.10, 0.15, 0.20};
// num QUAN_LIMITS[4] = 0, 9, 13, 26
int QUAN_LIMITS[] = {0, 9, 13, 26};
// num x
// int x; // NOT USED
// num QUIT = -1
int QUIT = -1;
// housekeeping()
quantity = housekeeping(QUIT);
// while quantity <> QUIT
while (quantity != QUIT){
// determineDiscount()
quantity = determineDiscount(SIZE, QUIT, quantity, QUAN_LIMITS,
DISCOUNTS);
// endwhile
} // end while
// finish()
finish();
} // end main()
// stop
// housekeeping()
public static int housekeeping(int QUIT) {
// output "Entry quantity ordered or ", QUIT, " to quit "
System.out.println("Entry quantity ordered or " + QUIT + " to quit
");
// input quantity
int quantity = KEYBOARD.nextInt();
// return
return quantity;
} // end housekeeping()
// determineDiscount()
public static int determineDiscount(int SIZE, int QUIT, int
quantity, int QUAN_LIMITS[], double DISCOUNTS[] ) {
// x = SIZE - 1
int x = (SIZE - 1);
// while quantity < QUAN_LIMIT[x]
while (quantity < QUAN_LIMITS[x]) {
// x = x-1
x = x-1;
// endwhile
} // end while
// output "Your discount rate is ", DISCOUNTS[x]
System.out.println("Your discount rate is " + DISCOUNTS[x]);
// output "Enter quantity ordered or ", QUIT, " to quit "
System.out.println("Enter quantity ordered or " + QUIT + " to quit
");
// input quantity
quantity = KEYBOARD.nextInt();;
// return
return quantity;
} // end determineDiscount()
// finish()
public static void finish() {
// output "End of job"
System.out.println("End of job");
// return
} // end finish()
} // end class
In: Computer Science
You are Marketing Manager for Bud Beer, produced by the Budweiser Division of
Anheuser-Busch, the brewing company with the highest market share in the United States. The
second-highest market share belongs to Miller’s Beer, produced by Miller Brewer Company. So you know that Miller’s is your most-important competitor. You also know that watching football on TV makes beer more enjoyable. Therefore Bud sales (the demand for Bud Beer—quantity of Bud Beer demanded, number of six-packs per week) depends on the price of Bud beer (dollars per six-pack), the price of Miller’s Beer (dollars per six-pack), and TV football (number of football games on TV per week). Currently, the level of Bud sales is eight million six-packs weekly.
Here are three scenarios, which are independent of each other; so they should be answered separately. Parts (a) and (b) of scenarios 1 and 2 are each worth one point, and scenario 3 is worth one point. Thus a total maximum point score of five.
Scenario 1. The CEO asks you to predict the increase in Bud sales if Bud price is reduced by ten percent. You have to make a sensible prediction.
(a) In the context of this scenario, what elasticity information do you need? (i) Name this elasticity (ii) Define this elasticity.
(b) What assumptions must you make using this elasticity for your prediction? Explain your answer.
Scenario 2. The CEO has learned that Miller will reduce the price of its beer by five percent. The CEO wants to know the effect on Bud sales if she does not reduce the price of Bud beer and if TV football is unchanged. Your staff informs you that the cross-price elasticity of the demand for Bud beer with respect to the price of Miller’s beer is 2.
(a) Why is this elasticity positive (+2) rather than negative (-2)? Explain thoroughly.
(b) What is the new level of Bud sales (number of six-packs per week)? Show your computation.
Hint: Be sure to distinguish between the change in sales and the new level of sales.
Scenario 3. The National Football League announces that TV football will increase from 95 games to 105 games. Your staff informs you that, assuming the price of Bud beer and the price of Miller’s beer do not change, Bud sales will increase from eight million to ten million weekly.
Using the “midpoint method,” compute the “elasticity of demand for Bud beer with respect to TV football.” Show your computation.
In: Economics
***SHOW ALL WORK*** You are Marketing Manager for Bud Beer, produced by the Budweiser Division of Anheuser-Busch, the brewing company with the highest market share in the United States. The second-highest market share belongs to Miller’s Beer, produced by Miller Brewer Company. So you know that Miller’s is your most-important competitor. You also know that watching football on TV makes beer more enjoyable. Therefore Bud sales (the demand for Bud Beer—quantity of Bud Beer demanded, number of six-packs per week) depends on the price of Bud beer (dollars per six-pack), the price of Miller’s Beer (dollars per six-pack), and TV football (number of football games on TV per week). Currently, the level of Bud sales is eight million six-packs weekly. Here are three scenarios, which are independent of each other; so they should be answered separately. Parts (a) and (b) of scenarios 1 and 2 are each worth one point, and scenario 3 is worth one point. Thus a total maximum point score of five. Scenario 1. The CEO asks you to predict the increase in Bud sales if Bud price is reduced by ten percent. You have to make a sensible prediction. (a) In the context of this scenario, what elasticity information do you need? (i) Name this elasticity (ii) Define this elasticity. (b) What assumptions must you make using this elasticity for your prediction? Explain your answer. Scenario 2. The CEO has learned that Miller will reduce the price of its beer by five percent. The CEO wants to know the effect on Bud sales if she does not reduce the price of Bud beer and if TV football is unchanged. Your staff informs you that the cross-price elasticity of the demand for Bud beer with respect to the price of Miller’s beer is 2. (a) Why is this elasticity positive (+2) rather than negative (-2)? Explain thoroughly. (b) What is the new level of Bud sales (number of six-packs per week)? Show your computation. Hint: Be sure to distinguish between the change in sales and the new level of sales. Scenario 3. The National Football League announces that TV football will increase from 95 games to 105 games. Your staff informs you that, assuming the price of Bud beer and the price of Miller’s beer do not change, Bud sales will increase from eight million to ten million weekly. Using the “midpoint method,” compute the “elasticity of demand for Bud beer with respect to TV football.” Show your computation.
In: Economics
Brandybuck Insurance Company (BIC) is deciding whether to insure the lives of those leading a quest to Moria. Based on past experience, the probability of surviving such a quest is 96.1%. If BIC charges a premium of 5,878 silver coins and would pay a death benefit of 43,118 silver coins if the insured were to die, what is the expected value of this insurance policy to BIC?
Round to the nearest silver coin as needed. If the expected value is a loss to BIC, enter your answer as a negative number.
In: Statistics and Probability