When the American system was being created, the office of the President was not the center and most important role (if anything was, on the federal level, it as Congress). Now, however, the POTUS occupies the center of American governance, attention (think about voting behavior), and politics. Why do you think that is? Why do you think the presidency has grown to the role in now plays in American politics?
CLASS- POLI 1
In: Accounting
Three particles are fixed on an x axis. Particle 1 of charge q1 is at x = -a and particle 2 of charge q2 is at x = +a. If their net electrostatic force on particle 3 of charge Q is to be zero, what must be the ratio q1/q2 when particle 3 is at (a) x = +0.754a and (b) x = +1.65a?
In: Physics
In: Computer Science
Identify five different brands for which you have a high level of brand loyalty. Describe your level of loyalty and discuss why you are loyal. How important is brand equity in your loyalty?
In: Operations Management
This is JAVA PROGRAMMING
Sort the contents of the two files in ascending order and
combine them into one new file (words.txt).
When comparing string order, you must use the compareTo method and
make an exception.The source code below is a code that only
combines files. Use the comparedTo method to sort the contents of
the two files in ascending order.(ex. if(str1.compareTo(str2)<0)
{})
<file1.txt>
at first
castle
consider
considerable
enlighten
explain
explanation
female
<file2.txt>
consideration
considering that
education
educational
endow
inherit
<code>
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Lab7_1 {
public static void main(String[] args) {
// TODO Auto-generated method
stub
fileMerge("file1.txt","file2.txt","words.txt");
}
private static void fileMerge(String filename1, String
filename2, String filename3) {
// TODO Auto-generated method
stub
Scanner str1=null;
Scanner str2=null;
PrintWriter output=null;
try {
str1 = new
Scanner(new File(filename1));
str2 = new Scanner(new File(filename2));
output = new PrintWriter(new
File(filename3));
fileWriter(str1,output);
fileWriter(str2,output);
} catch (FileNotFoundException e)
{
// TODO
Auto-generated catch block
System.err.println(e.getMessage());
//
e.printStackTrace();
} finally {
if (str1 !=
null)
str1.close();
if (str2 !=
null)
str2.close();
if (output !=
null)
output.close();
}
}
private static void
fileWriter(Scanner str1, PrintWriter output) {
// TODO
Auto-generated method stub
while(str1.hasNextLine()) {
String str = str1.nextLine();
output.println(str);
}
}
}
In: Computer Science
Discuss from your perspective the advantages and
disadvantages of the Uniform Commercial Code.
In: Accounting
A new implementation of Merge Sort uses a cutoff variable to use insertion sort for small number of items to be merged (Merging single elements is costly).
1. Give the pseudo code for the merge sort algorithm with a cutoff variable set to 4.
2. Show the trace for top-down merge sort using the following array of characters with a cutoff variable set to 4.
E A S Y M E R G E S O R T W I T H I N S E R T I O N
In: Computer Science
Program a math quiz on Python
Specifications:
- The program should ask the user a question and allow the student to enter the answer. If the answer is correct, a message of congratulations should be displayed. If the answer is incorrect, a message showing the correct answer should be displayed.
- the program should use three functions, one function to generate addition questions, one for subtraction questions, and one for multiplication questions.
- the program should store the questions and answers in a dictionary or list.
- the program should keep a count of the number of correct and incorrect responses.
In: Computer Science
The controller of Dash Shoes Inc. instructs you to prepare a monthly cash budget for the next three months. You are presented with the following budget information:
March | April | May | ||||
Sales | $147,000 | $185,000 | $247,000 | |||
Manufacturing costs | 62,000 | 80,000 | 89,000 | |||
Selling and administrative expenses | 43,000 | 50,000 | 54,000 | |||
Capital expenditures | _ | _ | 59,000 |
The company expects to sell about 12% of its merchandise for cash. Of sales on account, 70% are expected to be collected in the month following the sale and the remainder the following month (second month following sale). Depreciation, insurance, and property tax expense represent $10,000 of the estimated monthly manufacturing costs. The annual insurance premium is paid in July, and the annual property taxes are paid in November. Of the remainder of the manufacturing costs, 80% are expected to be paid in the month in which they are incurred and the balance in the following month.
Current assets as of March 1 include cash of $56,000, marketable securities of $79,000, and accounts receivable of $164,400 ($129,000 from February sales and $35,400 from January sales). Sales on account for January and February were $118,000 and $129,000, respectively. Current liabilities as of March 1 include a $74,000, 12%, 90-day note payable due May 20 and $10,000 of accounts payable incurred in February for manufacturing costs. All selling and administrative expenses are paid in cash in the period they are incurred. It is expected that $4,400 in dividends will be received in March. An estimated income tax payment of $22,000 will be made in April. Dash Shoes' regular quarterly dividend of $10,000 is expected to be declared in April and paid in May. Management desires to maintain a minimum cash balance of $44,000.
Required:
1. Prepare a monthly cash budget and supporting schedules for March, April, and May. Input all amounts as positive values except overall cash decrease and deficiency which should be indicated with a minus sign. Assume 360 days per year for interest calculations.
Dash Shoes Inc. | |||
Cash Budget | |||
For the Three Months Ending May 31, 2016 | |||
March | April | May | |
Estimated cash receipts from: | |||
Cash sales | $ | $ | $ |
Collection of accounts receivable | |||
Dividends | |||
Total cash receipts | $ | $ | $ |
Estimated cash payments for: | |||
Manufacturing costs | $ | $ | $ |
Selling and administrative expenses | |||
Capital expenditures | |||
Other purposes: | |||
Note payable (including interest) | |||
Income tax | |||
Dividends | |||
Total cash payments | $ | $ | $ |
Cash increase or (decrease) | $ | $ | $ |
Cash balance at beginning of month | |||
Cash balance at end of month | $ | $ | $ |
Minimum cash balance | |||
Excess or (deficiency) | $ | $ | $ |
In: Accounting
The budget director of Gourmet Grill Company requests estimates of sales, production, and other operating data from the various administrative units every month. Selected information concerning sales and production for July is summarized as follows:
a. Estimated sales for July by sales territory:
Maine: | |
Backyard Chef | 310 units at $700 per unit |
Master Chef | 150 units at $1,200 per unit |
Vermont: | |
Backyard Chef | 240 units at $750 per unit |
Master Chef | 110 units at $1,300 per unit |
New Hampshire: | |
Backyard Chef | 360 units at $750 per unit |
Master Chef | 180 units at $1,400 per unit |
b. Estimated inventories at July 1:
Direct materials: | |
Grates | 290 units |
Stainless steel | 1,500 lbs. |
Burner subassemblies | 170 units |
Shelves | 340 units |
Finished products: | |
Backyard Chef | 30 units |
Master Chef | 32 units |
c. Desired inventories at July 31:
Direct materials: | |
Grates | 340 units |
Stainless steel | 1,800 lbs. |
Burner subassemblies | 155 units |
Shelves | 315 units |
Finished products: | |
Backyard Chef | 40 units |
Master Chef | 22 units |
d. Direct materials used in production:
In manufacture of Backyard Chef: | |
Grates | 3 units per unit of product |
Stainless steel | 24 lbs. per unit of product |
Burner subassemblies | 2 units per unit of product |
Shelves | 4 units per unit of product |
In manufacture of Master Chef: | |
Grates | 6 units per unit of product |
Stainless steel | 42 lbs. per unit of product |
Burner subassemblies | 4 units per unit of product |
Shelves | 5 units per unit of product |
e. Anticipated purchase price for direct materials:
Grates | $15 per unit |
Stainless steel | $6 per lb. |
Burner subassemblies | $110 per unit |
Shelves | $10 per unit |
f. Direct labor requirements:
Backyard Chef: | |
Stamping Department | 0.50 hr. at $17 per hr. |
Forming Department | 0.60 hr. at $15 per hr. |
Assembly Department | 1.00 hr. at $14 per hr. |
Master Chef: | |
Stamping Department | 0.60 hr. at $17 per hr. |
Forming Department | 0.80 hr. at $15 per hr. |
Assembly Department | 1.50 hrs. at $14 per hr. |
Required:
1. Prepare a sales budget for July.
Gourmet Grill Company Sales Budget For the Month Ending July 31 |
||||
---|---|---|---|---|
Product and Area | Unit Sales Volume |
Unit Selling Price |
Total Sales | |
Backyard Chef: | ||||
Maine | $ | $ | ||
Vermont | ||||
New Hampshire | ||||
Total | $ | |||
Master Chef: | ||||
Maine | $ | $ | ||
Vermont | ||||
New Hampshire | ||||
Total | $ | |||
Total revenue from sales | $ |
2. Prepare a production budget for July. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
Gourmet Grill Company Production Budget For the Month Ending July 31 |
||
---|---|---|
Units | ||
Backyard Chef | Master Chef | |
3. Prepare a direct materials purchases budget for July. For those boxes in which you must enter subtracted or negative numbers use a minus sign.
Gourmet Grill Company Direct Materials Purchases Budget For the Month Ending July 31 |
|||||
---|---|---|---|---|---|
Grates (units) |
Stainless Steel (lbs.) |
Burner Sub- assemblies (units) |
Shelves (units) |
Total | |
Required units for production: | |||||
Backyard Chef | |||||
Master Chef | |||||
Desired inventory, July 31 | |||||
Total | |||||
Estimated inventory, July 1 | |||||
Total units to be purchased | |||||
Unit price | $ | $ | $ | $ | |
Total direct materials to be purchased | $ | $ | $ | $ | $ |
4. Prepare a direct labor cost budget for July.
Gourmet Grill Company Direct Labor Cost Budget For the Month Ending July 31 |
||||||||
---|---|---|---|---|---|---|---|---|
Stamping Department |
Forming Department | Assembly Department | Total | |||||
Hours required for production: | ||||||||
Backyard Chef | ||||||||
Master Chef | ||||||||
Total | ||||||||
Hourly rate | $ | $ | $ | |||||
Total direct labor cost | $ | $ | $ | $ |
In: Accounting
Consider the following ER diagram, which models an online bookstore.
As per the attached picture in the attached link :
https://www.google.com/imgres?imgurl=https://media.cheggcdn.com/study/45a/45a5708f-f2b8-4864-99a3-284d8c13e235/5924-7-20EEI1.png&imgrefurl=https://www.chegg.com/homework-help/consider-e-r-diagram-figure-729-models-online-bookstore-lis-chapter-7-problem-20e-solution-9780073523323-exc&tbnid=q173_TY0HXF25M&vet=1&docid=hPpMlzEq8SYJYM&w=756&h=688&hl=en&source=sh/x/im
A. List the entity sets and their primary keys.
B. Map the ER to appropriate schema showing the different relations.
In: Computer Science
discuss why knowledge of information technology applications are mandatory for managers?
In: Operations Management
what are the Descriptive Assumptions in the Death Penalty Article? Descriptive assumptions are also unstated.
They are the glue that binds the reasons to the conclusions. The descriptive assumption is the main underlying assumption the article. What must we assume about individuals convicted of murder? Dont over think this. If you would support the death penalty with the intensity of the author, what would you believe in your heart of hearts?
In: Psychology
In php:
After completed, the website should hide all messages before the user click submit button OR show either the error message or success message if the user click submit button.
//code
<?php
if(isset($_GET['submit'])){
//sanitize the input
/* Check the error from the input:
if input from user is empty
-> get an error string variable
if input is not empty
-> use preg_match() to match the pattern
$pattern = "/^[1-9][0-9]{2}(\.|\-)[0-9]{3}(\.|\-)[0-9]{4}$/";
-> if it's a matched, get a success string variable
*/
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous">
<link rel="stylesheet" href="">
<title>Lab 2-Part1</title>
</head>
<body>
<form action="" class="main-form
needs-validation">
<div class="form-group">
<label for="numbers">Phone Number</label>
<input type="text" id="numbers" class="form-control"
value=<?php //use PHP to print out the value the use typed in if
any ?>>
<small class="form-text text-muted">xxx.xxx.xxx or
xxx-xxx-xxxx</small>
<!-- Set a condition
if there is an error string variable, print out the string in
PHP
if there is a success string variable, print out the string in
PHP
-->
<div class="alert
alert-danger">
Must enter a valid
phone number! <!-- should be from an error string variable
-->
</div>
<div class="alert
alert-success">
Phone number is valid!
<!-- should be from an error string variable -->
</div>
</div>
<button type="submit" class="btn btn-primary"
>Submit</button>
</form>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS
-->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"></script>
</body>
</html>
In: Computer Science
How your identity impact your life? Sociology
In: Psychology