(assuming all jobs are currently in queue at their first operation) and do the following 1a. For the following set of jobs find the sequence that minimizes average completion time; 1b. For the following set of jobs find the sequence that minimizes the number of tardy jobs.
|
Job |
Processing Time |
Due Date |
|
1 |
15 |
20 |
|
2 |
8 |
30 |
|
3 |
11 |
32 |
|
4 |
6 |
40 |
|
5 |
14 |
50 |
|
6 |
7 |
50 |
|
7 |
3 |
65 |
|
8 |
9 |
75 |
In: Operations Management
According to a report issued by the CDC in 2013, 66.8 % of women 40 years of age and over had a mammogram within the last two years. An oncologist at the CDC would like to know if there has been a change in this percentage over the last two years. A random sample of 648 women (40 and older) is taken, and each is asked the date of their last mammogram.
It was found that 423 women in the sample had a mammogram in the last two years. Test the appropriate hypotheses using a significance level of 0.05.
In: Statistics and Probability
The USPS used a code named POSTNET to direct mail based on ZIP code until 2009. The bar code consists of full-or half-bars as shown below. Your code will be using a 1 for a full bar and 0 for half bar. The bar code above would then be encoded as: 110100101000101011000010011. The first and last digits of the bar code are always 1. Removing these leaves 25 digits or a 5-digit ZIP code. For the code above the digits are encoded as follows: 10100 10100 01010 11000 01001. Each decimal digit is encoded as 5 bars (2 full, 3 half)such that each digit corresponds to a given weight as follows (left to right) 7, 4, 2, 1, 0, respectively. Multiply the corresponding value with the digit and compute the sum to get the final encoded digit for the zip code. The digit ‘0’ is special, encoded as 11000or a decimal 11, as there have to be two full bars per digit.Write a zipcodeclass that encodes and decodes five-digit bar codes used in POSTNET. The class should have two constructors. First constructor should input the zipcode as an integer and the second constructor should input the zip code as a bar code stringconsisting of 0s and 1s as described above.Although you have two ways to input the zip code, internally the class should only store the zip code using the integer formatas a private variable. The class should have at least two public member functions: one to return the zip code as an integer and the other to return it as a string. Any other helper functions should be declared as private.Test all code functionality(think of cases that may break it and include safeguards to protect against them, e.g.:if the length is incorrect, start/end digitis incorrect, etc).Discuss your code if you have any additions or have taken into account these special cases (add this as comments). Show the output of your code for the following two cases: 23456 and “110100110000010100011110001”.
In: Computer Science
8) Last week, Onboard Co. has announced that the next two annual dividends will be in the amount of $2.28 and $4.21, respectively. After that, the dividends will increase by 2.93 percent annually. The required return on this stock is 10.35 percent. What is the current price per share? (Hint: draw this out on a timeline.)
In: Finance
This is in Python:
Alter your code for previous Do It Now problem, with the change that the row should only be printed by the second number that the user enters. For example, the user enters two numbers of 5 and 7 for the two input lines in the code, and the following will be printed:
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
*Previous Code that question refers to!*
Write a code to ask a number (one digit) from the user and prints the respective row of the multiplication table. For example, if the user enters 5, the following lines will be printed. Note that, if the user enters any number outside the range of 1-9, the program should display an error message.
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
num = int(input('Please enter the number : '));
while(num<1 or num>9):
num = int(input('Incorrect value entered, please re-enter : '));
for i in range(1,10):
print(num,' x ',i,' = ',num*i);
In: Computer Science
in java language
Write a method called findNums that takes a two-dimension array of integers and an int as parameters and returns the number of times the integer parameter appears in the array. For example, if the array (as created by the program below) is
10 45 3 8
2 42
3 21 44
And the integer parameter is 3, the value returned would be 2 (the number 3 appears two times in the array)
public class Question2 {
public static void main(String args[]){
int arr[][] = {{10, 45, 3, 8}, {2, 42}, {3, 21, 44}};
System.out.println(“The number time 3 appears is “+findNums(arr,3));
} //main
In: Computer Science
A box contains 5 green marbles, 8 blue marbles, and 8 red marbles.
Three marbles are selected at random from the box, one at a time, without replacement.
Find the probability that the first two marbles selected are not red, and the last marble is red.
In: Statistics and Probability
Q1A 4-poles, wave wound, 600 conductors DC long shunt generator has the armature, series and shunt resistances are 0.15 ohm, 0.18 ohm and 200 ohm respectively. It runs at 1500 rpm. Calculate the following if it is required supply to the load resistance of 20ohm with flux per pole as 8.33 mWb. Take the Iron and Frictional losses as 550 W.(i)Induced Emf(ii)Terminal Voltage(iii)Output Power(iv)Input Power(v)Efficiency
Q2Write short notes on following characteristics of dc generator(i) Open Circuit Characteristics (OCC)(ii) Load Characteristics
Q3A dc short shunt generator supply 500V to a 20 kW load. Its armature, series and shunt resistance are 0.8 , 0.6 and 700 respectively. Calculate the armature current, induced emf, input power, torque supplied by the prime mover and efficiency if its speed and mechanical losses are 1500 rpm and 910W respectively.
Q4A 500V, 4 poles, wave-wound DC Series Motor has 900 conductors on its armature. It has armature and series field resistance of 0.6, and 0.8respectively. The motor takes a current of 40A. Estimate the speed and gross Torque developed if it has a flux per pole of 20mWb.
Q5A dc shunt motor takes a no load current of 5 A at 300V. Its armature and shunt resistances are 0.45 ohm and 0.68 ohm respectively. Calculate the Constant Loss (Iron and Frictional Loss) of the machine.
Q6A dc series motor operates at 1000 rpm with a line current of 82A from 250V mains. its armature circuit resistance is 0.2and its field resistance is 0.6. Find the speed at which the motor runs at a line current of 65A, assuming that the flux at this current is 33% of the flux at 82A.
Q7A 3 phase, 50Hz, 4 poles induction motor runs at 1440 rpm. Calculate the following i.Synchronous speedii.Slipiii.Slip speediv.Rotor frequency while runningv.Rotor cu loss if mechanical power developed is 16 kW.
Q8A 40 kW (Rated Output), 415V, 50Hz, 3 phase, star connected induction motor has a synchronous speed of 1800 rpm. The full load slip is 4% and full load power factor is 0.9 lagging. Stator Cu losses are 2500 W. Iron losses are 2000W. Rotational losses are 1400 W. Calculate i.Shaft or Net Torque developedii.Mechanical power developediii.Power inputiv.Efficiencyv.Supply current
Q9The following are the equivalent circuit parameters of a 3phase, star connected 415V, 50Hz, 4 poles Induction Motor:R1= 0.5, R'2= 0.4/s , X1= 0.9, X'2= 0.8, Xm= 50,(neglect Ro)Calculate the input impedance, motor current, power input, power supplied to the rotor, power developed and efficiency if its rotational losses are 1200W. It runs at 1410 rpm.
Q10A 415-V, 29.84 kW, 50 Hz, delta-connected 3-phase induction motor gave the following test data:No load test:415V, 15A, 2000 WLocked rotor test:125V, 40A, 4000 WConstruct the circle diagram and determine the line current and power factor for the rated output. Assume stator and rotor Cu losses equal at standstill.Q11With a aid of neat circuit diagram, explain the working principle of Automatic star-delta starter of three phase induction motor
In: Electrical Engineering
In: Computer Science
Use C++
Black Jack
Create a program that uses methods and allows the user to play the game of blackjack against the computer dealer. Rules of Blackjack to remember include:
1. You need one 52 card deck of cards with cards from 2-Ace (4 cards of each number).
2. Jacks, Queens and Kings count as 10 points.
3. An Ace can be used as either 1 or 11 depending on what the user decides during the hand.
4. Draw randomly two cards for the "dealer" and display one of them while keeping the other hidden. Also, randomly draw two cards for the player and display them in view.
5. Allow the user to hit (randomly draw a card) as many times as they wish. If the player "busts" or gets over 21, the dealer automatically wins the players wager.
6. After the user "stands" or is satisfied with his total, the dealer must take a card if his total is 16 or below, and cannot take a card if his total is 17 or above.
7. If the dealer "busts" or goes over 21, the player wins back his wager plus his wager again. (Example - if a player bets $3 he gets back his original $3 plus an additional $3).
8. If neither the dealer or the player "busts" or goes over 21, then the highest total wins. Ties go to the dealer.
9. Note - the player should start with $20 in the bank and cannot wager more than he currently has in the bank.
10. Note - before each round the user can bet in whole dollars how much to wager or how much of the total in the bank to risk.
11. Allow the user to quit at any time. Of course, the user must quit if he/she runs out of money.
12. Remember, somehow ensure that the same card (example - 6 of spades) cannot be drawn twice in a single hand.
In: Computer Science