onestoga Corporation operates manufacturing facilities in State P and State Q. In addition, the corporation owns nonbusiness rental property in State Q. Conestoga incurred the following compensation expenses:
|
Sixty percent of the time is spent by the administrative staff located in State Q and 30% of the time spent by officers located in State Q are devoted to the operation, maintenance, and supervision of the rental property. Both states exclude such rent income from the definition of apportionable income.
Round your answers to four decimal places before converting to a percentage. If required, round your final answers to two decimal places.
Conestoga's payroll factor for State P is % and for State Q is %.
In: Accounting
1)
What's the result of calling method blitz passing strings "Aquamarine" as the first argument and "Heliotrope" as the second argument?
static int blitz(String v, String w) { if (v.length() != w.length()) return 0; int c = 0; for (int i = 0; i < v.length(); i++) if (v.charAt(i) == w.charAt(i)) c++; return c; }
a)0
b)1
c)2
d) 3
2)What is NOT an advantage of dynamic arrays compared to static arrays?
a)new elements can be added
b)elements can be inserted
c)elements can be individually indexed
d)elements can be removed
3)
Consider the following code segment:
ArrayList<Integer> scores = new ArrayList<>();
scores.add(5);
scores.add(8);
scores.add(1);
scores.add(1, 9);
scores.remove(2);
scores.add(0, 2);
What's the content of array scores after the code is executed?
a)[2, 5, 8, 1]
b)[2, 5, 9, 1]
c)[5, 2, 9, 1]
d) something else
4)
Consider the following code segment:
int mat[][] = new int[4][3]; for (int i = 0; i < mat.length; i++) for (int j = 0; j < mat[0].length; j++) if (i % 2 == 0) mat[i][j] = 2; else if (i % 3 == 0) mat[i][j] = 3; else mat[i][j] = 0;
What is the content of mat's 3rd row after the code segment is executed?
a)[3, 3, 3, 3]
b)[3, 3, 3]
c)[2, 2, 2, 2]
d)[2, 2, 2]
In: Computer Science
3. Explain the differences between assimilation, pluralism and multiculturalism as successive policies pertaining to cultural diversity in the US. Critically comment on the advantages and limitations of each approach.
In: Psychology
The concept that all data and transactions on the Internet must be treated equally is called _______________________________.
A. |
Moore's Law |
|
B. |
ISP Equality |
|
C. |
Net Neutrality |
|
D. |
Service-oriented Architecture |
In: Computer Science
change the do while by using while or any other way
public void read_input(){
int x,y;
int pop;
Scanner sc = new Scanner(System.in);
do {
System.out.print("Enter X and Y for city 1: ");
x = sc.nextInt();
y = sc.nextInt();
} while ((x < 1 || x > 25) || (y < 1 || y > 25));
setCity1(x,y);
System.out.print("Enter population for city 1: ");
pop = sc.nextInt();
setPop1(pop*1000);
do {
System.out.print("Enter X and Y for city 2: ");
x = sc.nextInt();
y = sc.nextInt();
} while ((x < 1 || x > 25) || (y < 1 || y > 25));
setCity2(x,y);
System.out.print("Enter population for city 2: ");
pop = sc.nextInt();
setPop2(pop*1000);
do {
System.out.print("Enter X and Y for city 3: ");
x = sc.nextInt();
y = sc.nextInt();
} while ((x < 1 || x > 25) || (y < 1 || y > 25));
setCity3(x,y);
System.out.print("Enter population for city 3: ");
pop = sc.nextInt();
setPop3(pop*1000);
do {
System.out.print("Enter X and Y for city 4: ");
x = sc.nextInt();
y = sc.nextInt();
} while ((x < 1 || x > 25) || (y < 1 || y > 25));
setCity4(x,y);
System.out.print("Enter population for city 4: ");
pop = sc.nextInt();
setPop4(pop*1000);
}
In: Computer Science
Need a description what does this program does and how does it work.
#include <iostream>
using namespace std;
double function(int num, double* memorize);
int main()
{
int num=5;
char cont;
double* memorize = new double[num + 1];
do {
cout << "Enter n ";
cin >> num;
memorize[1] = 1;
memorize[2] = 1;
memorize[3] = 1;
memorize[4] = 3;
memorize[5] = 5;
for (int i = 6; i <= num; i++)
memorize[i] = -1; // -1 means that the value is not in the array
cout << num << "th number: " << function(num, memorize) << endl;
cout << "Continue?";
cin >> cont;
cout << endl;
} while (cont == 'y' || cont == 'Y');
delete[] memorize;
return 0;
}
double function(int num, double* memorize)
{
// checks if value was calculated before
if (memorize[num] == -1)
{
// recursively calculates said value and stores it in
memorize[num] = function(num - 1, memorize) + (3 * function(num - 5, memorize));
}
return memorize[num];
}
In: Computer Science
A-13 Present Value of Cash Flows Rush Corporation plans to acquire production equipment for $625,000 that will be depreciated for tax purposes as follows: year 1, $125,000; year 2, $215,000; and in each of years 3 through 5, $95,000 per year. A 14 percent discount rate is appropriate for this asset, and the company’s tax rate is 40 percent. Use Exhibit A.8 and Exhibit A.9. Required: a. Compute the present value of the tax shield resulting from depreciation. (Round PV factor to 3 decimal places and other intermediate calculations to nearest whole number.) b. Compute the present value of the tax shield from depreciation assuming straight-line depreciation ($125,000 per year). (Round PV factor to 3 decimal places and other intermediate calculations to nearest whole number.)
In: Accounting
Given the class Date that can prints the date in numerical form. Some applications might require the date to be printed in another form, such as October 1, 2020. Please do the following:
public class Date
{
private int dMonth; //variable to store the month
private int dDay; //variable to store the day
private int dYear; //variable to store the year
//Default constructor
//Data members dMonth, dDay, and dYear are set to
//the default values
//Postcondition: dMonth = 1; dDay = 1; dYear = 1900;
public Date()
{
dMonth = 1;
dDay = 1;
dYear = 1900;
}
//Constructor to set the date
//Data members dMonth, dDay, and dYear are set
//according to the parameters
//Postcondition: dMonth = month; dDay = day;
// dYear = year;
public Date(int month, int day, int year)
{
setDate(month, day, year);
}
//Method to set the date
//Data members dMonth, dDay, and dYear are set
//according to the parameters
//Postcondition: dMonth = month; dDay = day;
// dYear = year;
public void setDate(int month, int day, int year)
{
if (year >= 1)
dYear = year;
else
dYear = 1900;
if (1 <= month && month <= 12)
dMonth = month;
else
dMonth = 1;
switch (dMonth)
{
case 1: case 3: case 5: case 7:
case 8: case 10: case 12: if (1 <= day && day <=
31)
dDay = day;
else
dDay = 1;
break;
case 4: case 6:
case 9: case 11: if (1 <= day && day <= 30)
dDay = day;
else
dDay = 1;
break;
case 2: if (isLeapYear())
{
if (1 <= day && day <= 29)
dDay = day;
else
dDay = 1;
}
else
{
if (1 <= day && day <= 28)
dDay = day;
else
dDay = 1;
}
}
}
//Method to return the month
//Postcondition: The value of dMonth is returned
public int getMonth()
{
return dMonth;
}
//Method to return the day
//Postcondition: The value of dDay is returned
public int getDay()
{
return dDay;
}
//Method to return the year
//Postcondition: The value of dYear is returned
public int getYear()
{
return dYear;
}
//Method to return the date in the form mm-dd-yyyy
public String toString()
{
return (dMonth + "-" + dDay + "-" + dYear);
}
public boolean isLeapYear()
{
if ((dYear % 4 == 0 && dYear % 100 != 0) || (dYear % 400 ==
0))
return true;
else
return false;
}
public void setMonth(int m)
{
dMonth = m;
}
public void setDay(int d)
{
dDay = d;
}
public void setYear(int y)
{
dYear = y;
}
public int getDaysInMonth()
{
int noOfDays = 0;
switch (dMonth)
{
case 1: case 3: case 5:
case 7: case 8: case 10: case 12: noOfDays = 31;
break;
case 4: case 6: case 9: case 11: noOfDays = 30;
break;
case 2: if (isLeapYear())
noOfDays = 29;
else
noOfDays = 28;
}
return noOfDays;
}
public int numberOfDaysPassed()
{
int[] monthArr = {0,31,28,31,30,31,30,31,31,30,31,30,31};
int sumDays = 0;
int i;
for (i = 1; i < dMonth; i++)
sumDays = sumDays + monthArr[i];
if (isLeapYear() && dMonth > 2)
sumDays = sumDays + dDay + 1;
else
sumDays = sumDays + dDay;
return sumDays;
}
int numberOfDaysLeft()
{
if (isLeapYear())
return 366 - numberOfDaysPassed();
else
return 365 - numberOfDaysPassed();
}
public void incrementDate(int nDays)
{
int[] monthArr = {0,31,28,31,30,31,30,31,31,30,31,30,31};
int daysLeftInMonth;
daysLeftInMonth = monthArr[dMonth] - dDay;
if (daysLeftInMonth >= nDays)
dDay = dDay + nDays;
else
{
dDay = 1;
dMonth++;
nDays = nDays - (daysLeftInMonth + 1);
while (nDays > 0)
if (nDays >= monthArr[dMonth])
{
nDays = nDays - monthArr[dMonth];
if ((dMonth == 2) && isLeapYear())
nDays--;
dMonth++;
if (dMonth > 12)
{
dMonth = 1;
dYear++;
}
}
else
{
dDay = dDay+nDays;
nDays = 0;
}
}
}
public void makeCopy(Date otherDate)
{
dMonth = otherDate.dMonth;
dDay = otherDate.dDay;
dDay = otherDate.dDay;
}
public Date getCopy()
{
Date temp = new Date();
temp.dMonth = dMonth;
temp.dDay = dDay;
temp.dYear = dYear;
return temp;
}
}
In: Computer Science
how can we teach our children to value inner influences over External influences . Be spefic.
In: Psychology
>>> words('example.txt')
['The', '3', 'lines', 'in', 'this', 'file', 'end', 'with', 'the', 'new', 'line', 'character', 'There', 'is', 'a', 'blank', 'line', 'above', 'this', 'line']
In: Computer Science
Sarah and Rolfe are excited about starting a business together! They want to start manufacturing unique pieces of furniture and selling them locally and then expand nationwide. Sarah is single and plans on working on growing the business 24/7. She currently rents an apartment, drives a used car and only has about $1,000 in her bank account. Rolfe is married and works full-time for Amazon in customer service and his partner works as an emergency room nurse. Rolfe can only devote about 10 hours a week to the business. He and his partner make about $180,000 per year combined, own a home and have about $50,000 saved in their bank account. Currently, they are planning on having children in the near future.
Based on the above facts, if Sarah and Rolfe want to create a formal business entity, what type should it be? Explain why, based on what you've learned from your reading and the facts listed above. You can include any assumptions as some facts may be missing that you would want to know, but please state what assumptions you've made in your answer. (answer must be a minimum of 10 sentences)
In: Operations Management
Develop a scenario with a series of logical statements that can be "solved" using k-maps. Once you have the scenario and logical statements, translate them into a truth table and use a k-map to build a simplified Boolean equation.
In: Computer Science
Calculate the depreciation for the following scenarios. Bought a piece of equipment costing $30,000, with a salvage value of $10,000.
a) Figure the SL depreciation for year one and year two. Assuming a 10 year useful life.
b) Figure the units of production (activity) depreciation. Assuming that total units will be 100,000.
Year 1 – 20,000 units
Year 2 - 30,000 units
c)Figure the double declining balance depreciation for year one and year two. Assuming a 4 year life.
d) Figure the SL depreciation; assuming a 10 year life; if the equipment was purchased on July 1st.
e) Prepare the Journal Entry for a (SL Depreciation)
In: Accounting
In: Physics
Purpose of Assignment
The purpose of this assignment is to allow the students to
understand and practice the measurement of present value, future
value, and interest rate using
Microsoft® Excel®.
Assignment Steps
Resources: Microsoft® Office® 2013 Accessibility Tutorials, Microsoft® Excel®, Time Value of Money Calculations Template
Calculate the following time value of money problems using Microsoft® Excel®:
If we place $8,592.00 in a savings account paying 7.5
percent interest compounded annually, how much will our account
accrue to in 9.5 years?
What is the present value of $992 to be received in
13.5 years from today if our discount rate is 3.5
percent?
If you bought a stock for $45 dollars and could sell
it fifteen years later for three times what you originally paid.
What was your return on owning this stock?
Suppose you bought a house for $3,250,000 to make it a
nursing home in the future. But you have not committed to the
project and will decide in nine years whether to go forward with it
or sell off the house. If real estate values increase annually at
1.5%, how much can you expect to sell the house for in nine years
if you choose not to proceed with the nursing home
project?
If your daughter wants to earn $215,000 within the
next twenty-three years and the salaries grow at 4.45% per year.
What salary should she start to reach her goal?
In: Finance