Farah runs a hair salon in Dammam and employs technicians and cleaners from Kenya and the Phillipines.
Her business is profitable and has grown from 1 salon to 3 salons in the last 2 years. Her employees are paid on seniority and they were loyal to her. She has never trained any of her employees, always asking the senior technicians to teach the new comers.
Recently the following happened:
Farah calls you up, because she knows that you study Introduction HRM. She asks for your advice. What will you tell her?
In: Operations Management
A solenoid (coil) of radius R has 10 turns per centimeter. It is 10cm long, and the coiled wire carries a current I. In addition to the coil of wire, a second wire runs right down the central axis of the solenoid, carrying a current of 2I. (The solenoid wire doesn't intersect this second wire, because the former wraps around the latter, always a distance R away.) A) Find the magnitude of the total magnetic field at a distance R/2 from the central wire.
Will there be a magnetic force between the two wires? Why or why not?
In: Physics
Write a Python program called arecongruent.py that
determines whether two integers a and b are congruent modulo n.
Your code must
work as follows: From the command prompt the user runs the program
by typing
python arecongruent.py and then your program interface prompts the
user for
the values of a, b, and n. The program outputs either True or
False, and the values
of a mod n and b mod n. Submit your Python source code
arecongruent.py.
NOTE: please include step by steps and the full python screenshots.
In: Computer Science
Gwen runs a company that provides corporate health and
wellness
programs. One of her sales people signed a contract at the
beginning of the quarter for a very large client. It was a
bundle
of services to be provided over the next year. The contract was
for
$120,000, with equal payments at the beginning of each month
($10,000 per month). The new client is a very high profile and
well
known company, so Gwen is very excited. This is the first
bundled
contract that the company has sold and the salesperson felt like
it
was a great deal. It starts with an intense bootcamp in the
first
month for all employees. That will require a lot of work and
Gwen
would normally charge $30,000 for the bootcamp. Each month
throughout the contract they will offer an & intensive
weekend& ; of workouts and diet advice. Gwen normally
charges
$5,000 for each of these. They also will provide access to
their
online program, which has activity and food logs as well as
preprogrammed exercise suggestions and a weekly inspirational
email. Gwen would normally charge a company of this size
$15,000
for one year of access to the website. How much revenue should
Gwen
recognize at the end of the first quarter (3 months into the
deal)?
In: Accounting
IN C++, ONE FILE
Also include the main class that just runs these functions, thanks.
Write a recursive function to produce a pattern of n lines of asterisks. The first line contains one asterisk, the next line contains two, and so on, up to the nth line, which contains n asterisks. For example, if the non-negative integer is 5, the pattern generated is:
* ** *** **** *****
Prototype:
void pattern(unsigned n);
Write a recursive function, sum_range that finds the sum of the integers in the range [first,last]. For example, sum_range(0, 5) returns 15, while sum_range(4, 5) returns 9. Prototype:
long sum_range(long first, long last);
Write a recursive function called power that computes powers of
the form baseexp, where base is any double number and
exp is an integer. So, power(3.0, 2) is 3.02 (which is
9.0), and power(4.2, 3) is 4.23 (which is 74.088). For
any non-zero value of base, the value of base0 is
defined to be 1, so for example power(9.1, 0) is 1. For a negative
exponent, -exp, the value returned is defined by
base-exp = 1/baseexp
For example, power(3.0, -2) is 1/3.02 (which is 1/9).
Taking 0exp when exp is not positive is undefined.
Prototype:
double power(double base, int exp);
Write a recursive function that reverses the order of the elements of an array of type T in the range [first, last). For example, the array { 1, 2, 3 } once reversed becomes { 3, 2, 1 }.
void reverse(T* first, T* last);
Write a recursive function to decide whether it is
possible to win the Gummy Bear Game.
Here are the rules. At any point in the game, you can give back
some of the gummy bears, but you must follow these rules where
n is the number of gummy bears that you have:
The goal of the game is end up with exactly 42 gummy bears.
For example, suppose that you start with 250 gummy bears. Then you could make the following moves:
Your function decides whether it is possible to win the Gummy Bear Game if you start with n gummy bears. You do not have to figure out the exact sequence of decisions; just determine if it is possible or not.
Prototype:
bool gummybears(unsigned n);
Examples:
In: Computer Science
In Java lang
Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have 3~4 letters (case insensitive) associated with them. Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might remember it as "NUMBERS."
Digit Letters
2 ABC
3 DEF
4 GHI
5 JKL
6 MNO
7 PQRS 8 TUV
9 WXYZ
Each seven-letter word corresponds to exactly one seven-digit telephone number, but a seven-digit number corresponds to many seven-letter strings, most of which are not words.
Create a Project2 class under the project package.
In this project you will develop a program which will find all the corresponding English
words given any specific telephone number. Here are the detailed requirements:
In the Project2 class you will create a static void test() method.
The test method will first ask the user to type in through keyboard a 7-digit telephone
number.
If the number typed in by the user is not 7 digits or the number contains some number
of the digit ‘0’ or ‘1’, then your program reports an error and asks to type in another
number.
If the number typed in by the user is a 7-digit telephone number made up of the digits
‘2’ through ‘9’, then your program will print out all the English words corresponding to the telephone number (and the total number of them), using the given English word library in the “COSC240_P2_EnglishWordList.txt”.
In: Computer Science
Problem 16-07 (Algorithmic)
Baseball's World Series is a maximum of seven games, with the winner being the first team to win four games. Assume that the Atlanta Braves are playing the Minnesota Twins in the World Series and that the first two games are to be played in Atlanta, the next three games at the Twins' ballpark, and the last two games, if necessary, back in Atlanta. Taking into account the projected starting pitchers for each game and the home field advantage, the probabilities of Atlanta winning each game are as follows:
| Game | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Probability of Win | 0.46 | 0.52 | 0.45 | 0.55 | 0.43 | 0.41 | 0.6 |
In: Statistics and Probability
Baseball's World Series is a maximum of seven games, with the winner being the first team to win four games. Assume that the Atlanta Braves and the Minnesota Twins are playing in the World Series and that the first two games are to be played in Atlanta, the next three games at the Twins' ballpark, and the last two games, if necessary, back in Atlanta. Taking into account the projected starting pitchers for each game and the home field advantage, the probabilities of Atlanta winning each game are as follows:
| Game | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Probability of Win | 0.7 | 0.45 | 0.49 | 0.55 | 0.47 | 0.45 | 0.6 |
Set up a spreadsheet simulation model for which whether Atlanta
wins or loses each game is a random variable. What is the
probability that the Atlanta Braves win the World Series? If
required, round your answer to two decimal places.
What is the average number of games played regardless of winner? If
required, round your answer to one decimal place.
In: Math
Baseball's World Series is a maximum of seven games, with the winner being the first team to win four games. Assume that the Atlanta Braves and the Minnesota Twins are playing in the World Series and that the first two games are to be played in Atlanta, the next three games at the Twins' ballpark, and the last two games, if necessary, back in Atlanta. Taking into account the projected starting pitchers for each game and the home field advantage, the probabilities of Atlanta winning each game are as follows:
| Game | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| Probability of Win | 0.65 | 0.4 | 0.45 | 0.55 | 0.47 | 0.42 | 0.6 |
a. Set up a spreadsheet simulation model for which whether Atlanta wins or loses each game is a random variable. What is the probability that the Atlanta Braves win the World Series? If required, round your answer to two decimal places.
b. What is the average number of games played regardless of winner? If required, round your answer to one decimal place.
In: Math
An urn contains three blue and seven green marbles. Alice chooses two marbles at random
from the urn. If they have the same color, Bob will pay her $7; but if they have different colors, Alice will pay Bob $8
a) Give the probability distribution for Alice’s payoffs of this game. Use proper headings for the table.
b) What are Alice expected winnings in this game?
Is it a fair game?
In: Statistics and Probability