Past behavior is one of the best predictors of future crime.
True |
|
False |
In: Psychology
In ‘Market Demand Analysis & Forecasting’ what aspects an asset manager (or an organization) should consider?
In: Operations Management
5.31 Calculating Interest Expense
You receive a credit card application from Shady Banks Savings and Loan offering an introductory rate of .9 percent per year, compounded monthly for the first six months, increasing thereafter to 18.5 percent compounded monthly. Assuming you transfer the $10,000 balance from your existing credit card and make no subsequent payments, how much interest will you owe at the end of the first year?
In: Finance
Project Assignment
Construct the Y_bus matrix of a given power network by computer programming, preferably MATLAB. Note that the necessary data are available in the IEEE common data format; and as the working data, you can use the IEEE 14-bus system data.
Due Date: December 26, 2019.
IEEE-Format Data for 14-Bus System
08/19/93 UW ARCHIVE 100.0 1962 W IEEE 14 Bus Test Case BUS DATA FOLLOWS 14 ITEMS 1 Bus 1 HV 1 1 3 1.060 0.0 0.0 0.0 232.4 -16.9 0.0 1.060 0.0 0.0 0.0 0.0 0 2 Bus 2 HV 1 1 2 1.045 -4.98 21.7 12.7 40.0 42.4 0.0 1.045 50.0 -40.0 0.0 0.0 0 3 Bus 3 HV 1 1 2 1.010 -12.72 94.2 19.0 0.0 23.4 0.0 1.010 40.0 0.0 0.0 0.0 0 4 Bus 4 HV 1 1 0 1.019 -10.33 47.8 -3.9 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 5 Bus 5 HV 1 1 0 1.020 -8.78 7.6 1.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 6 Bus 6 LV 1 1 2 1.070 -14.22 11.2 7.5 0.0 12.2 0.0 1.070 24.0 -6.0 0.0 0.0 0 7 Bus 7 ZV 1 1 0 1.062 -13.37 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 8 Bus 8 TV 1 1 2 1.090 -13.36 0.0 0.0 0.0 17.4 0.0 1.090 24.0 -6.0 0.0 0.0 0 9 Bus 9 LV 1 1 0 1.056 -14.94 29.5 16.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.19 0 10 Bus 10 LV 1 1 0 1.051 -15.10 9.0 5.8 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 11 Bus 11 LV 1 1 0 1.057 -14.79 3.5 1.8 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 12 Bus 12 LV 1 1 0 1.055 -15.07 6.1 1.6 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 13 Bus 13 LV 1 1 0 1.050 -15.16 13.5 5.8 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 14 Bus 14 LV 1 1 0 1.036 -16.04 14.9 5.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 -999 BRANCH DATA FOLLOWS 20 ITEMS 1 2 1 1 1 0 0.01938 0.05917 0.0528 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1 5 1 1 1 0 0.05403 0.22304 0.0492 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2 3 1 1 1 0 0.04699 0.19797 0.0438 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2 4 1 1 1 0 0.05811 0.17632 0.0340 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 2 5 1 1 1 0 0.05695 0.17388 0.0346 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 3 4 1 1 1 0 0.06701 0.17103 0.0128 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4 5 1 1 1 0 0.01335 0.04211 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 4 7 1 1 1 0 0.0 0.20912 0.0 0 0 0 0 0 0.978 0.0 0.0 0.0 0.0 0.0 0.0 4 9 1 1 1 0 0.0 0.55618 0.0 0 0 0 0 0 0.969 0.0 0.0 0.0 0.0 0.0 0.0 5 6 1 1 1 0 0.0 0.25202 0.0 0 0 0 0 0 0.932 0.0 0.0 0.0 0.0 0.0 0.0 6 11 1 1 1 0 0.09498 0.19890 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 6 12 1 1 1 0 0.12291 0.25581 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 6 13 1 1 1 0 0.06615 0.13027 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 7 8 1 1 1 0 0.0 0.17615 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 7 9 1 1 1 0 0.0 0.11001 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9 10 1 1 1 0 0.03181 0.08450 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 9 14 1 1 1 0 0.12711 0.27038 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 10 11 1 1 1 0 0.08205 0.19207 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 12 13 1 1 1 0 0.22092 0.19988 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 13 14 1 1 1 0 0.17093 0.34802 0.0 0 0 0 0 0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -999 LOSS ZONES FOLLOWS 1 ITEMS 1 IEEE 14 BUS -99 INTERCHANGE DATA FOLLOWS 1 ITEMS 1 2 Bus 2 HV 0.0 999.99 IEEE14 IEEE 14 Bus Test Case -9 TIE LINES FOLLOWS 0 ITEMS -999 END OF DATA
IEEE Common Data Format
Partial Description of the IEEE Common Data Format for the Exchange of Solved Load Flow Data The complete description can be found in the paper "Common Data Format for the Exchange of Solved Load Flow Data", Working Group on a Common Format for the Exchange of Solved Load Flow Data, _IEEE Transactions on Power Apparatus and Systems_, Vol. PAS-92, No. 6, November/December 1973, pp. 1916-1925. The data file has lines of up to 128 characters. The lines are grouped into sections with section headers. Data items are entered in specific columns. No blank items are allowed, enter zeros instead. Floating point items should have explicit decimal point. No implicit decimal points are used. Data type codes: A - Alphanumeric (no special characters) I - Integer F - Floating point * - Mandatory item Title Data ========== First card in file. Columns 2- 9 Date, in format DD/MM/YY with leading zeros. If no date provided, use 0b/0b/0b where b is blank. Columns 11-30 Originator's name (A) Columns 32-37 MVA Base (F*) Columns 39-42 Year (I) Column 44 Season (S - Summer, W - Winter) Column 46-73 Case identification (A) Bus Data * ========== Section start card *: --------------------- Columns 1-16 BUS DATA FOLLOWS (not clear that any more than BUS in 1-3 is significant) * Columns ?- ? NNNNN ITEMS (column not clear, I would not count on this) Bus data cards *: ----------------- Columns 1- 4 Bus number (I) * Columns 7-17 Name (A) (left justify) * Columns 19-20 Load flow area number (I) Don't use zero! * Columns 21-23 Loss zone number (I) Columns 25-26 Type (I) * 0 - Unregulated (load, PQ) 1 - Hold MVAR generation within voltage limits, (PQ) 2 - Hold voltage within VAR limits (gen, PV) 3 - Hold voltage and angle (swing, V-Theta) (must always have one) Columns 28-33 Final voltage, p.u. (F) * Columns 34-40 Final angle, degrees (F) * Columns 41-49 Load MW (F) * Columns 50-59 Load MVAR (F) * Columns 60-67 Generation MW (F) * Columns 68-75 Generation MVAR (F) * Columns 77-83 Base KV (F) Columns 85-90 Desired volts (pu) (F) (This is desired remote voltage if this bus is controlling another bus. Columns 91-98 Maximum MVAR or voltage limit (F) Columns 99-106 Minimum MVAR or voltage limit (F) Columns 107-114 Shunt conductance G (per unit) (F) * Columns 115-122 Shunt susceptance B (per unit) (F) * Columns 124-127 Remote controlled bus number Section end card: ----------------- Columns 1- 4 -999 Branch Data * ============= Section start card *: --------------------- Columns 1-16 BRANCH DATA FOLLOWS (not clear that any more than BRANCH is significant) * Columns 40?- ? NNNNN ITEMS (column not clear, I would not count on this) Branch data cards *: -------------------- Columns 1- 4 Tap bus number (I) * For transformers or phase shifters, the side of the model the non-unity tap is on Columns 6- 9 Z bus number (I) * For transformers and phase shifters, the side of the model the device impedance is on. Columns 11-12 Load flow area (I) Columns 13-14 Loss zone (I) Column 17 Circuit (I) * (Use 1 for single lines) Column 19 Type (I) * 0 - Transmission line 1 - Fixed tap 2 - Variable tap for voltage control (TCUL, LTC) 3 - Variable tap (turns ratio) for MVAR control 4 - Variable phase angle for MW control (phase shifter) Columns 20-29 Branch resistance R, per unit (F) * Columns 30-40 Branch reactance X, per unit (F) * No zero impedance lines Columns 41-50 Line charging B, per unit (F) * (total line charging, +B) Columns 51-55 Line MVA rating No 1 (I) Left justify! Columns 57-61 Line MVA rating No 2 (I) Left justify! Columns 63-67 Line MVA rating No 3 (I) Left justify! Columns 69-72 Control bus number Column 74 Side (I) 0 - Controlled bus is one of the terminals 1 - Controlled bus is near the tap side 2 - Controlled bus is near the impedance side (Z bus) Columns 77-82 Transformer final turns ratio (F) Columns 84-90 Transformer (phase shifter) final angle (F) Columns 91-97 Minimum tap or phase shift (F) Columns 98-104 Maximum tap or phase shift (F) Columns 106-111 Step size (F) Columns 113-119 Minimum voltage, MVAR or MW limit (F) Columns 120-126 Maximum voltage, MVAR or MW limit (F) Section end card: ----------------- Columns 1- 4 -999 Loss Zone Data ============== Section start card ------------------ Columns 1-16 LOSS ZONES FOLLOWS (not clear that any more than LOSS is significant) Columns 40?- ? NNNNN ITEMS (column not clear, I would not count on this) Loss Zone Cards: ---------------- Columns 1- 3 Loss zone number (I) Columns 5-16 Loss zone name (A) Section end card: ----------------- Columns 1- 3 -99 Interchange Data * ================== Section start card ------------------ Columns 1-16 INTERCHANGE DATA FOLLOWS (not clear that any more than first word is significant). Columns 40?- ? NNNNN ITEMS (column not clear, I would not count on this) Interchange Data Cards *: ------------------------- Columns 1- 2 Area number (I) no zeros! * Columns 4- 7 Interchange slack bus number (I) * Columns 9-20 Alternate swing bus name (A) Columns 21-28 Area interchange export, MW (F) (+ = out) * Columns 30-35 Area interchange tolerance, MW (F) * Columns 38-43 Area code (abbreviated name) (A) * Columns 46-75 Area name (A) Section end card: ----------------- Columns 1- 2 -9 Tie Line Data ============= Section start card ------------------ Columns 1-16 TIE LINES FOLLOW (not clear that any more than TIE is significant) Columns 40?- ? NNNNN ITEMS (column not clear, I would not count on this) Tie Line Cards: --------------- Columns 1- 4 Metered bus number (I) Columns 7-8 Metered area number (I) Columns 11-14 Non-metered bus number (I) Columns 17-18 Non-metered area number (I) Column 21 Circuit number Section end card: ----------------- Columns 1- 3 -999
In: Electrical Engineering
ABC paid a dividend of $3.00 this past year. The dividends are expected to grow at a rate of 20% for the next three years, and at a constant 3% rate thereafter. The required rate of return for investors in this stock is 10%. Calculate the value of this stock today.
In: Finance
What would be appropriate fiscal ( expansionary or contractionary ) policy for our economy right now? and why?
In: Economics
In: Computer Science
Evaluate the following pure-yield pickup swap: You currently hold a 15-year, AA-rated, 8.5% coupon bond priced to yield 11.0%. As a swap candidate, you are considering a 15-year, AA-rated, 10.5% coupon bond priced to yield 12.0%. (Assume reinvestment at 11.0%, $1,000 par value, semiannual coupons.) Do not round intermediate calculations. Round your monetary answers to the nearest cent and percentage answers and value of swap to two decimal places. You may use Appendix C to answer the questions.
Current Bond | Candidate Bond | |
Dollar investment | $ | $ |
Annual coupon | $ | $ |
i on one coupon | $ | $ |
Principal value at year end | $ | $ |
Total accrued | $ | $ |
Realized compound yield | % | % |
Value of swap: basis points in one year
In: Finance
Please provide a PESTEL analysis on Bayer the pharmaceutical company.
In: Economics
True or False Questions: Determine if true or false. If false why?
1) Premature efforts to treat problem behavior before determining its function can be inefficient, ineffective, and even harmful.
2) Research has found that functional analyses conducted in natural environments (e.g., classroom settings) often yield the same (or even clearer) results compared to those conducted in simulated settings.
3) Problem behavior can only be maintained by one function. Behaviors are not multi-functional.
4) Indirect functional assessment procedures are referred to as “indirect” because they do not involve direct observation of the behavior.
5) According to Skinner’s definition of ‘verbal behavior,’ body language is not verbal behavior.
6) This is a correct analysis of verbal behavior: It is raining outside (antecedent), child asks mom if she can wear her rainboots (verbal behavior), mom says “yes” (access to tangible).
7) For reading to be called textual behavior, the reader must understand what he is reading.
8) Token economies should only be used for early learners because it is not age-appropriate for older clients to earn tokens.
9) Self-management skills should only be taught to adolescent or older clients; young children do not yet comprehend methods of self-management.
10) Scenario: After Eva learns to read 10 C-V-C (consonant-vowel-consonant) words such as CAT, RUG, BAR, she can read different C-V-C words for which she had not received any instruction. This exemplifies generalization.
11) Generalized behavior change is always desirable.
12) It is okay to teach skills that will not meet naturally existing contingencies of reinforcement if the skill is identified as a deficit.
13) Learners only need to be taught when to engage in a skill, not when not to engage in a skill; It is not useful to provide “don’t do it” instruction.
14) Generalization probes should be conducted before, during, and after instruction.
In: Psychology
write a java code.
Consider a four digit number such as 6587. Split it at two digits, as 65 and 87. Sum of 65 and 87 is 152. Sum of the digits of 152 is 8. Given the starting and ending four digit numbers and a given target number such as 10, write a program to compute and print the number of instances where the sum of digits equals the target.
In: Computer Science
NOT using Excel, please show all steps.
A bank is planning to install a new computerized accounts system. Bank management has determined the activities required to complete the project, the precedence relationships of the activities, and activity time estimates as follows: NOT using Excel, please show all steps.
Activity |
Description |
Predecessor |
a |
m |
b |
a |
Position recruiting |
— |
5 |
8 |
17 |
b |
System development |
— |
3 |
12 |
15 |
c |
System training |
a |
4 |
7 |
10 |
d |
Equipment training |
a |
5 |
8 |
23 |
e |
Manual system test |
b, c |
1 |
1 |
1 |
f |
Preliminary system changeover |
b, c |
1 |
4 |
13 |
g |
Computer-personnel interface |
d, e |
3 |
6 |
9 |
h Equipment d, e 1 2.5 7
modification
i Equipment h 1 1 1
testing
j System f, g 2 2 2
debugging and
installation
k Equipment g, i 5 8 11
changeover
a. Draw the precedence diagram.
b. Determine the earliest and latest activity times, the expected completion time and standard
deviation.
c. What is the probability that the project will be completed in 40 weeks or less?
d. The following table provides the crash data for the project network. The normal activity times are
considered to be deterministic and not probabilistic.
Activity Time (weeks) Activity Cost ($) |
||||
Activity |
Normal |
Crash |
Normal |
Crash |
a |
9 |
7 |
4,800 |
6,300 |
b |
11 |
9 |
9,100 |
15,500 |
c |
7 |
5 |
3,000 |
4,000 |
d |
10 |
8 |
3,600 |
5,000 |
e |
1 |
1 |
0 |
0 |
f |
5 |
3 |
1,500 |
2,000 |
g |
6 |
5 |
1,800 |
2.000 |
h |
3 |
3 |
0 |
0 |
i |
1 |
1 |
0 |
0 |
j |
2 |
2 |
0 |
0 |
k |
8 |
6 |
5,000 |
7,000 |
Crash the network the maximum amount, indicate how much it would cost the bank, and identify the new critical path(s).
In: Operations Management
Research a computer operation that could be improved through parallelization on a multi-core CPU. Include the following:
In: Computer Science
What is a metric in a routing protocol? What is a metric used for? List and describe two major metrics used in routing protocols.
In: Computer Science
IN JAVA
USING loops, Arrays, filewriter/reader/exceptions, I dont think we are allowed to use arraylists/algorithm constraints
THE TWO FILES ARE LISTED AFTER THE QUESTION(CDDriver.java and
TextMenu.java)
Lab 14
Array of Objects and File IO
The following exercises are to be completed during lab class. If
you do not have time to finish during lab, they must be completed
before the beginning of the following lab session.
Set-Up
Import the following file (See below)
o CDDriver.java
o TextMenu.java
Import the input file, Collection.txt, into the root of your
project.
Problem
You will be writing a program to manage a list for a CD collection.
Existing CDs are stored in a file. The data in the file (title and
artist) is read into an array. The user will be presented with a
menu with the following choices: add a new CD, display the list, or
quit. You will create one new class and modify an existing
class.
Class diagram and main algorithm
Song
- title:String
- artist:String
+ Song(String title, String artist)
+ toString( ):String
all getters and setters
main algorithm
CREATE array of Song objects
CREATE TextMenu object
READ music collection into array
choice = get menu choice using TextMenu object
2
WHILE (choice != 3)
CASE choice
WHEN 1:
READ data for new song from keyboard
ADD the new song object to the array
INCREMENT count
WRITE the new song data to the file
WHEN 2:
PRINT the array
OTHERWISE:
PRINT "Invalid menu choice. Please try again"
END CASE
PRINT menu
choice = get menu choice using TextMenu object
END WHILE
CLOSE output file
END MAIN
Processing Instructions (write the code in this order) – use the
comments in the program to help with placement.
1. Create the new class called Song.java using the given class
diagram.
There is no default constructor, only the one sending in both
title and artist.
toString - define it so that it prints in the form: title by
artist
2. Write the code for menu choice 2 to print the array to the
screen. Doing this at the beginning allows you to test that the
array has the correct values whenever a change has been made to
it.
You have been given the declarations for:
MAX_ARRAY_SIZE
FILENAME
count (used to keep track of the number of elements currently in
the array)
choice (used to capture the menu choice made by the user)
3. Review the TextMenu class, and write code to create a TextMenu
object with appropriate menu choices. Call the appropriate method
to display the menu and get the user’s choice before the loop and
at the bottom of the loop.
3
Run your program to test getting the menu choice to be sure this
is working correctly.
4. Open the file, read the input data from the file, create a Song
object for each set of data, store the song object in the array.
When done, close the file. Remember to use a try/catch when
attempting to open the file. You will also be keeping track of how
many Song objects are put into the array.
Test this using menu choice 2 to see if everything loaded
correctly.
5. Write the code for the following:
write the output to SongData.txt. Use a try/catch for any
exceptions.
6. Write the code for menu choice 1.
Prompt the user, read the data from the keyboard and create a new
Song object.
Add the song to the array
o Don't forget to add to the count so you know how many items are
in the array
Add the song to the file
7. Close the output file.
8. Run the code. Add a song, then use menu choice 2 to see if it
was added correctly.
FILES NEEDED
/*
* File name: CDDriver.java
*
import java.io.IOException;
public class CDDriver
{ public static void main(String[] args) throws
IOException
{
final int MAX_ARRAY_SIZE =
50;
final String FILENAME =
"Collection.txt";
int count = 0; //
Counter to keep track of number of elements in the array
int choice = 0; // Menu
choice
// Create array to hold song
collection
// Create TextMenu object for menu
(this may involve writing multiple lines of code)
// Read the data from the input file into the array
// Count the elements currently in
the array
// Get the menu choice
while (choice != 3)
{
switch
(choice)
{
case 1:
// Read data for new song to
add to the collection from the keyboard
// Add the song to the
array
// Don't forget to increment
the count
// Add the song to the
file
break;
case 2:
// Print the list
break;
default:
System.out.println("Invalid
menu choice. Please try again.");
}
// Get the menu
choice
}
}
}
****NEXT FILE TextMenu******
package edu.ilstu;
import java.util.*;
/*
* TextMenu.java
*
*/
/**
* TextMenu class
*
*
*/
public class TextMenu
{
private String [] menuItems;
/**
* @param menuItems
* An array of Strings that represent the various menu labels. The
array
* must be the exact size to hold the number of menu items
desired.
*/
public TextMenu(String[] menuItems)
{
this.menuItems = menuItems;
}
/**This method displays the menu and gets a choice from the user.
The choice
* is validated.
*
* @param scan A Scanner object attached to the
keyboard for user input
* @return
* A number between 1 and the number of menu items, representing the
user's choice
*/
public int getChoice(Scanner scan)
{
int choice;
String input;
this.displayMenu();
System.out.print("Please enter your choice(1-" + menuItems.length +
"): ");
input = scan.next();
choice = this.validateChoice(input);
while (choice == -1)
{
System.out.println("That is not a valid choice. Please try
again.");
System.out.print("Enter a number between 1 and " + menuItems.length
+ ": ");
input = scan.next();
choice = this.validateChoice(input);
}
return choice;
}
// displays the menu to the screen
private void displayMenu()
{
System.out.println();
System.out.println();
for (int i = 0; i < menuItems.length; i++)
{
System.out.println(" " + (i+1) + " " + menuItems[i]);
}
System.out.println();
}
// validates the menu choice
private int validateChoice(String input)
{
int choice;
try
{
choice = Integer.parseInt(input);
}
catch (NumberFormatException e)
{
choice = -1;
}
if (choice < 1 || choice > menuItems.length)
{
choice = -1;
}
return choice;
}
***NEXT FILE collection*** really not needed but used for testing I imagine
Ode to Joy
Bach
The Sleeping Beauty
Tchaikovsky
Lullaby
Brahms
Canon
Bach
Symphony No. 5
Beethoven
The Blue Danube Waltz
Strauss
In: Computer Science