Required information
[The following
information applies to the questions displayed
below.]
In 2018, the Westgate Construction Company entered into a contract
to construct a road for Santa Clara County for $10,000,000. The
road was completed in 2020. Information related to the contract is
as follows:
| 2018 | 2019 | 2020 | |||||||
| Cost incurred during the year | $ | 2,204,000 | $ | 3,192,000 | $ | 2,424,400 | |||
| Estimated costs to complete as of year-end | 5,396,000 | 2,204,000 | 0 | ||||||
| Billings during the year | 2,140,000 | 3,256,000 | 4,604,000 | ||||||
| Cash collections during the year | 1,870,000 | 3,200,000 | 4,930,000 | ||||||
Westgate recognizes revenue over time according to percentage of
completion.
rev: 09_15_2017_QC_CS-99734
2-a.
In the journal below, complete the necessary journal entries for
the year 2018 (credit "Various accounts" for construction costs
incurred).
2-b. In the journal below, complete the necessary
journal entries for the year 2019 (credit "Various accounts" for
construction costs incurred).
2-c. In the journal below, complete the necessary
journal entries for the year 2020 (credit "Various accounts" for
construction costs incurred).
In: Accounting
Performance Tires plans to engage in direct mail advertising. It is currently in negotiations to purchase a mailing list of the names of people who bought sports cars within the last three years. The owner of the mailing list claims that sales generated by contacting names on the list will more than pay for the cost of using the list. (Typically, a company will not sell its list of contacts, but rather provides the mailing services. For example, the owner of the list would handle addressing and mailing catalogs.)
Before it is willing to pay the asking price of $3 per name, the company obtains a sample of 225 names and addresses from the list in order to run a small experiment. It sends a promotional mailing to each of these customers. The data for this exercise show the gross dollar value of the orders produced by this experimental mailing. The company makes a profit of 20% of the gross dollar value of a sale. For example, an order for $100 produces $20 in profit.
Should the company agree to the asking price?
this is one part of the question i am stuck on the other 3 parts i did already
How is the certainty of your decision dependent on the number of names in the sample list? How would, for example, doubling the number of sample names change the certainty of your decision?
In: Statistics and Probability
1. Compare and contrast the fields of clinical psychology and counseling psychology. Describe each specialization. In what ways are they similar? In what ways do they differ? Include three similarities and three differences in your answer.
2. When psychologists conduct scientific studies, they have one of three goals: to describe, to correlate, or to experiment. Describe each goal, including how they differ from one another.
3. You're sitting in the theater watching a movie when the fire alarm goes off. You jump and get out of your seat to leave the theater, but the alarm stops and an announcement is made that the alarm was unintentional and there is no emergency. You calm down and go back to enjoying your movie.
Name and explain the roles of the divisions of the autonomic nervous system in your responses.
4. Explain two ways in which the left and right hemispheres of the cerebrum differ in function.
5. Define and differentiate between sensation and perception. Use an example to illustrate your descriptions. Be sure to use the term that describes the conversion of environmental energy into neural signals.
6. Define and differentiate between bottom-up and top-down processing. Give an example of each in a single sensory experience.
In: Psychology
Python Programming Question
1. Implement the median-of-three method for selecting a pivot value as a modification to quickSort (name this function
mo3_quickSort). Prepare test cases for your mo3_quickSort .function
QuickSort function:
def quickSort(alist):
quickSortHelper(alist,0,len(alist)-1)
def quickSortHelper(alist,first,last):
if first
splitpoint = partition(alist,first,last)
quickSortHelper(alist,first,splitpoint-1)
quickSortHelper(alist,splitpoint+1,last)
def partition(alist,first,last):
pivotvalue = alist[first]
leftmark = first+1
rightmark = last
done = False
while not done:
while leftmark <= rightmark and alist[leftmark] <=
pivotvalue:
leftmark = leftmark + 1
while alist[rightmark] >= pivotvalue and rightmark >=
leftmark:
rightmark = rightmark -1
if rightmark < leftmark:
done = True
else:
temp = alist[leftmark]
alist[leftmark] = alist[rightmark]
alist[rightmark] = temp
temp = alist[first]
alist[first] = alist[rightmark]
alist[rightmark] = temp
return rightmark
alist = [54,26,93,17,77,31,44,55,20]
quickSort(alist)
print(alist)
2. Prepare and run an experiment to verify the following hypothesis.
Canonic quickSort is as fast as mo3_quickSort when processing large lists of unsorted integers.
In: Computer Science
Write a C# console program that continually asks the user "Do you want to enter a name (Y/N)? ". Use a "while" loop to accomplish this. As long as the user enters either an upper or lowercase 'Y', then prompt to the screen "Enter First and Last Name: " and then get keyboard input of the name. After entering the name, display the name to the screen.
In: Computer Science
Write a C# console program that continually asks the user "Do you want to enter a name (Y/N)? ". Use a "while" loop to accomplish this. As long as the user enters either an upper or lowercase 'Y', then prompt to the screen "Enter First and Last Name: " and then get keyboard input of the name. After entering the name, display the name to the screen.
In: Computer Science
Write a program called listful.py, in which the user inputs names, which get added to a list. Your program should:
· Include a comment in the first line with your name.
· Include comments describing each major section of code.
· Create a list.
· Ask the user to input a first name or hit enter to end the list.
· If the user adds a first name (i.e., anything other than a blank value):
o Add the name to the list.
o Tell the user that they’ve added [name] to the list (where [name] is the name that just got added).
o Ask the user (again) to input a first name — and keep asking until the user hits enter without adding another name (i.e., enters a blank value).
· Once the user enters a blank value:
o Tell the user how many names they added to the list.
o Using a for-loop, output all the names that are in the list, using a separate line for each name.
o Do not include the blank value in the list!
In: Computer Science
1. Create a1. Create a new java file named Name.java that should have Name class based on new java file named Name.java that should have Name class based on the following UML
Name
- first: String
- last: String
+ Name ()
+ Name (String firstName, String lastName)
+ getName () : String
+ setName (String firstName, String lastName) : void
+ getFirst () : String
+ setFirst (String firstName) : void
+ getLast () : String
+ setLast (String lastName) : void
+ printName () : void
Notes: Name() constructor should call the other constructor to set blank values for first and last variables; getName should call getFirst and getLast; setName should call setFirst and setLast; printName should call getName and then print the name in the following format (assuming that values of Rahul & Dewan were used to create the Name object) – Hello Rahul Dewan, Welcome to CIS1500 Course ! If the name is blank, it should display message like: Name is blank !
In: Computer Science
How do you use header files on a program?
I need to separate my program into header files/need to use header files for this program.Their needs to be 2-3 files one of which is the menu. thanks!
#include
#include
#include
using namespace std;
const int maxrecs = 5;
struct Teletype
{
string name;
string phoneNo;
Teletype *nextaddr;
};
void display(Teletype *);
void populate(Teletype *);
void modify(Teletype *head, string name);
void insertAtMid(Teletype *, string, string);
void deleteAtMid(Teletype *, string);
int find(Teletype *, string);
bool is_phone_no(string);
int main()
{
Teletype *list, *current;
string name;
string phoneNo;
int menu;
list = new Teletype; //new reserves space and returns the adress to the list
current = list;
for (int i = 0; i < maxrecs - 1; i++)
{
populate(current);
current->nextaddr = new Teletype;
current = current->nextaddr;
}
populate(current);
current->nextaddr = NULL;
cout << "The contents of the linked list is: " <<
endl;
display(list);
cout << "\nPlease select a number from the menu: "
<< endl;
cout << "(1)Insert new Structure on the linked list."
<< endl;
cout << "(2)Modify an existing structure in the Linked list."
<< endl;
cout << "(3)Delete an existing structure in the Linked list."
<< endl;
cout << "(4)Find an existing Structure from the Linked list."
<< endl;
cout << "(5)Exit the program." << endl;
cin >> menu;
switch (menu)
{
case 1: cout << "Enter Name and number" << endl;
cin >> name >> phoneNo;
insertAtMid(list, name, phoneNo);
cout << "The contents of the link list after inserting: "
<< endl;
display(list);
break;
case 2: cout << "\nName of the person you need to modify:
";
cin >> name;
modify(list, name);
display(list);
break;
case 3: cout << endl;
cout << "Enter Name " << endl;
cin >> name;
deleteAtMid(list, name);
cout << endl;
cout << "The contents of the linked list after deleting is: "
<< endl;
display(list);
break;
case 4: cout << endl<< endl;
cout << "Enter a name (last, first): ";
getline(cin, name); // getline because of the namespace
if (!find(list, name))
{
cout << "The name is not in the current phone list" <<
endl;
}
break;
case 5: break;
}
return 0;
}
void insertAtMid(Teletype *head, string name, string
phone)
{
Teletype *tmp = new Teletype();
tmp->name = name;
tmp->phoneNo = phone;
tmp->nextaddr = head->nextaddr;
head->nextaddr = tmp;
}
void deleteAtMid(Teletype *head, string name)
{
while (head->nextaddr != NULL)
{
if (head->nextaddr->name == name)
{
Teletype *del = head->nextaddr;
head->nextaddr = head->nextaddr->nextaddr;
delete del;
}
head = head->nextaddr;
}
}
void display(Teletype *contents)
{
while (contents != NULL)
{
cout << endl
<< setw(30) << contents->name << setw(20)
<< contents->phoneNo;
contents = contents->nextaddr;
}
}
int find(Teletype *contents, string name)
{
int found = 0;
while (contents != NULL)
{
if (contents->name == name)
{
found = 1;
cout << setw(30) << contents->name << setw(20)
<< contents->phoneNo;
break;
}
else
{
contents = contents->nextaddr;
}
}
cout << endl;
return found;
}
void modify(Teletype *head, string name)
{
string phone;
while (head->nextaddr != NULL)
{
if (head->nextaddr->name == name)
{
cout << "Enter new name and phoneNumber: ";
cin >> name >> phone;
head->nextaddr->name = name;
head->nextaddr->phoneNo = phone;
return;
}
head = head->nextaddr;
}
cout << "No suchrecord found\n";
}
bool is_phone_no(string phoneNo)
{
for (auto it = phoneNo.begin(); it != phoneNo.end(); it++)
{
if (*it > '9' || *it < '0')
return false;
}
return true;
}
void populate(Teletype *record)
{
cout << "Enter a name: ";
getline(cin, record->name);
string phoneNo;
while (true)
{
cout << "Enter the phone number: ";
getline(cin, phoneNo);
try
{
if (!is_phone_no(phoneNo))
{
throw "Exception caught! Invalid phone number\n";
}
record->phoneNo = phoneNo;
break;
}
catch (const char *e)
{
cout << e;
}
}
return;
}
In: Computer Science
Start with the partial model in the file Ch15 P13 Build a Model.xls on the textbook's Web site. J. Clark Inc. (JCI), a manufacturer and distributor of sports equipment, has grown until it has become a stable, mature company. Now JCI is planning its first distribution to shareholders. (See the file for the most recent year's financial statements and projections for the next year, 2016; JCI's fiscal year ends on June 30.) JCI plans to liquidate and distribute $500 million of its short-term securities on July 1, 2016, the first day of the next fiscal year, but it has not yet decided whether to distribute with dividends or with stock repurchases.
a. Assume first that JCI distributes the $500 million as dividends. Fill in the missing values in the file's balance sheet column for July 1, 2016, which is labeled "Distribute as Dividends." Assume that JCI did not have to establish an account for dividends payable prior to the distribution.
b. Now assume that JCI distributes the $500 million through stock repurchases. Fill in the missing values in the file's balance sheet column for July 1, 2016, which is labeled "Distribute as Repurchase."
c. Calculate JCI's projected free cash flow; the tax rate is 40%.
d. What is JCI's current intrinsic stock price (the price on 6/30/2015)? What is the projected intrinsic stock price for 6/30/2016?
e. What is the projected intrinsic stock price on 7/1/2016 if JCI distributes the cash as dividends?
f. What is the projected intrinsic stock price on 7/1/2016 if JCI distributes the cash through stock repurchases? How many shares will remain outstanding after the repurchase?
In: Accounting