for the unity feedback system, the open loop transfer functions
is
G(s)=K(s+2)(s+3) / (((s^2)+2*s+2)(s+4)(s+5)(s+6))
a. sketch the root locus (detail step wise)
b. find the jw-axis crossing and the gain. K, at the crossing
In: Electrical Engineering
4. Assume that the economy of Stockland produces four goods, rocks, socks, blocks, and clocks. Rocks and blocks are both used as weapons; they are good substitutes for each other. The quantities and prices for each of the goods in years one and two are given by the following table:
YEAR 1
YEAR 2
good quantity price good quantity price
rocks 200
$1 rocks 150
$4
socks 200
$2 socks 220
$5
blocks 200
$3 blocks 400 $2
clocks 200
$4 clocks 300 $6
a. What is nominal GDP in year 1?
b. What is real GDP in year 1?
c. What is nominal GDP in year 2?
d. What is real GDP in year 2? (Use year 1 as the base
year.)
e. What is the percentage increase in nominal GDP?
Real GDP?
f. What is the GDP price deflator?
In: Economics
• You should use the divide-and-conquer strategy and write multiple functions. • You should always use arrays for the data sequences. • You should always use const int to define the sizes of your arrays. a. Write a C++ program. The program first asks the user to enter 4 numbers to form Sequence 1. Then the program asks the user to enter 8 numbers to form Sequence 2. Finally, the program shall tell which sequence has a larger average. For example, if the user enters 3 4 5 6 for Sequence 1, and 0 1 2 3 4 5 6 7 for Sequence 2. Your program should know the average of Sequence 1 is 4.5, and the average of Sequence 2 is 3.5. Therefore, your program should conclude that Sequence 1 has a larger average.
In: Computer Science
PROGRAM SIMULATION. Understand the given JAVA program and write the output.
1. public class Places
{
public static void main(String args[])
{
String place[]=new String[4];
place[0]="Salmaniya";
place[1]="Salmabad";
place[2]="Isa Town";
place[3] = “Manama”
System.out.println(place[3]);
System.out.println(place[1].toLowerCase());
System.out.println(place[2].substring(4,6);
System.out.println(place[3].charAt(4));
System.out.println(place[1].equals(place[2]));
}
}
b. public class ChangeIt
{
public void doIt( int[] z )
{
z[0] = 0;
}
}
public class TestIt
{
public static void main ( String[] args )
{
int[] myArray = {1, 2, 3, 4, 5} ;
ChangeIt.doIt(myArray );
for (int j=0; j<myArray.length; j++ )
System.out.print( myArray[j] + " " ) ;
}
}
In: Computer Science
Programming Problem
Design a program in java that can perform three different arithmetic operations based on the user’s input.
The three operations are
1. Summation of integers from 1 to m
2. Factorial of a given number n (n!)
3. Finding the leftmost digit of a given integer (note: you have to use int)
This program should prompt the user a menu including four options, ask the user for one option, and perform the corresponding computation. This process will repeat until the user chooses “Quit”.
Please use this menu in your program: (use a switch statement)
Please choose one option from the following menu:
1) Calculate the sum of integers from 1 to m
2) Calculate the factorial of a given number
3) Display the leftmost digit of a given number
4) Quit
Sample Output
Below is an example of what your output should roughly look like when this lab is completed. Text in RED represents user input.
Please choose one option from the following menu:
1) Calculate the sum of integers from 1 to m
2) Calculate the factorial of a given number
3) Display the leftmost digit of a given number
4) Quit
1
Enter a number:
4
The sum of 1 to 4 is 10
Please choose one option from the following menu:
1) Calculate the sum of integers from 1 to m
2) Calculate the factorial of a given number
3) Display the leftmost digit of a given number
4) Quit
2
Enter a number: 5
The factorial of 5 is 120
Please choose one option from the following menu:
1) Calculate the sum of integers from 1 to m
2) Calculate the factorial of a given number
3) Display the leftmost digit of a given number
4) Quit
3
Enter a number:
987654321
The leftmost digit of 987654321 is 9
Please choose one option from the following menu:
1) Calculate the sum of integers from 1 to m
2) Calculate the factorial of a given number
3) Display the leftmost digit of a given number
4) Quit 4 Bye
PLEASE USE THE FOLLOWING FORMAT
I need it in the format of a do while loop
Due today please help!
public class Lab4 {
public static void main(String[] args) {
// Declare some variables you need
// -->
do {
// Display the menu
displayMenu();
// Ask the user for one option
// -->
switch (?????) {
// Define four cases for different options. Don't forget
"break".
// -->
}
} while (?????);
}
/**
* Print the menu
*/
private static void displayMenu() {
System.out.println("Please choose one option from the following
menu:");
System.out.println("1) Calculate the sum of integers from 1 to
m");
System.out.println("2) Calculate the factorial of a given
number");
System.out.println("3) Display the leftmost digit of a given
number");
System.out.println("4) Quit");
}
}
If you can explain that would be awesome, thank you!
In: Computer Science
A.) Identify the one substrate that reacts the fastest
when treated with hydrochloric acid at room temperature.
A.) 5-Chloro-2-methylheptan-2-ol
B.) 6-Chloro-6-methylheptan-3-ol
C.) 2-Chloro-2-methylheptan-1-ol
D.) 2-Chloro-2-methylheptan-3-ol
B.) identify the one substrate that reacts the fastest
when treated with PBr3.
A.) 4-Methyl-3-penten-1-ol
B.) 3-Methyl-2-buten-1-ol
C.) 6-Methyl-5-hepten-2-ol
D.) 2,4-Dimethyl-2-hepten-4-ol
please help!!!
In: Chemistry
In: Computer Science
Problem 4: Consider the tabulated standard-form LP starting with X1 and X2 basic. Please apply the revised simplex method and solve the LP.
Note: in each iteration determine Matrix A, B, E, V, C, and the improving direction!
|
X1 |
X2 |
X3 |
X4 |
X5 |
||
|
Min C |
5 |
4 |
3 |
2 |
16 |
b |
|
A |
2 |
0 |
1 |
0 |
6 |
8 |
|
0 |
1 |
1 |
2 |
3 |
12 |
In: Advanced Math
Two judges rate 10 contestant in a beauty contest.Test the hypothesis that the ratings are independent of one another versus the alternative that the judges tend to agree in th judgment. ( at 5% level of significance)
A B C D E F G H I J
Judge 1 1 2 3 4 5 6 7 8 9 10
Judge 2 2 3 1 4 6 5 9 10 8 7
In: Statistics and Probability
In: Statistics and Probability