Sunland Company began operations on January 2, 2019. It employs 11 individuals who work 8-hour days and are paid hourly. Each employee earns 12 paid vacation days and 7 paid sick days annually. Vacation days may be taken after January 15 of the year following the year in which they are earned. Sick days may be taken as soon as they are earned; unused sick days accumulate. Additional information is as follows.
|
Actual Hourly |
Vacation Days Used |
Sick Days Used |
||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
2019 |
2020 |
2019 |
2020 |
2019 |
2020 |
|||||||
| $12 | $13 | 0 | 11 | 5 | 6 | |||||||
Sunland Company has chosen not to accrue paid sick leave until
used, and has chosen to accrue vacation time at expected future
rates of pay without discounting. The company used the following
projected rates to accrue vacation time.
|
Year in Which Vacation |
Projected Future Pay Rates |
|
|---|---|---|
|
2019 |
$12.69 | |
|
2020 |
13.69 |
New attempt is in progress. Some of the new entries may impact the last attempt grading.Your answer is partially correct.
Prepare journal entries to record transactions related to compensated absences during 2019 and 2020. (If no entry is required, select "No Entry" for the account titles and enter 0 for the amounts. Credit account titles are automatically indented when amount is entered. Do not indent manually. Round answers to 0 decimal places, e.g. 5,125.)Compute the amounts of any liability for compensated absences that should be reported on the balance sheet at December 31, 2019 and 2020. (Round answers to 0 decimal places, e.g. 5,125.)
|
2019 |
2020 |
|||
|---|---|---|---|---|
|
Accrued liability |
$enter a dollar amount rounded to 0 decimal places | $enter a dollar amount rounded to 0 decimal places |
In: Accounting
6.9 Lab: Singly-Linked Lists
As an entry-level programmer you have to be able to read, understand existing code and update it (add new features). One of this assignment’s goals is to read about 400 lines of code in five files, compile and run the program, understand it, and change it as required.
Download and review the following files (read code and all comments carefully):
---------------------------------------------------------
//colleges.txt
3 SBCC Santa Barbara City College; 18524
97 ZZC ZZ College; 9997
5 PCC Pasadena City College; 17666
7 NVC Napa Valley College; 18920
15 PVC Palo Verde College; 18266
4 DVC Diablo Valley College; 20579
6 FC Foothill College; 19302
12 CS College of the Siskiyous; 21936
99 CPC Cupertino College; 9999
10 CC Cuesta College; 19135
8 OC Ohlone College; 15878
98 ABC AB College; 9998
1 DAC De Anza College; 19302
9 IVC Irvine Valley College; 20577
--------------------------------------------------------------------------------
//LinkedList.cpp
#include <iostream>
#include "LinkedList.h"
using namespace std;
//**************************************************
// Constructor
// This function allocates and initializes a sentinel node
// A sentinel (or dummy) node is an extra node added before the first data record.
// This convention simplifies and accelerates some list-manipulation algorithms,
// by making sure that all links can be safely dereferenced and that every list
// (even one that contains no data elements) always has a "first" node.
//**************************************************
LinkedList::LinkedList()
{
head = new Node; // head points to the sentinel node
head->next = NULL;
length = 0;
}
//**************************************************
// The insertNode function inserts a new node in a
// sorted linked list
//**************************************************
void LinkedList::insertNode(College dataIn)
{
Node *newNode; // A new node
Node *pCur; // To traverse the list
Node *pPre; // The previous node
// Allocate a new node and store num there.
newNode = new Node;
newNode->college = dataIn;
// Initialize pointers
pPre = head;
pCur = head->next;
// Find location: skip all nodes whose code is less than dataIn's code
while (pCur && newNode->college.getCode() > pCur->college.getCode())
{
pPre = pCur;
pCur = pCur->next;
}
// Insert the new node between pPre and pCur
pPre->next = newNode;
newNode->next = pCur;
// Update the counter
length++;
}
//**************************************************
// The deleteNode function searches for a node
// in a sorted linked list; if found, the node is
// deleted from the list and from memory.
//**************************************************
bool LinkedList::deleteNode(string target)
{
Node *pCur; // To traverse the list
Node *pPre; // To point to the previous node
bool deleted = false;
// Initialize pointers
pPre = head;
pCur = head->next;
// Find node containing the target: Skip all nodes whose gpa is less than the target
while (pCur != NULL && pCur->college.getCode() < target)
{
pPre = pCur;
pCur = pCur->next;
}
// If found, delte the node
if (pCur && pCur->college.getCode() == target)
{
pPre->next = pCur->next;
delete pCur;
deleted = true;
length--;
}
return deleted;
}
//**************************************************
// displayList shows the value
// stored in each node of the linked list
// pointed to by head, except the sentinel node
//**************************************************
void LinkedList::displayList() const
{
Node *pCur; // To move through the list
// Position pCur: skip the head of the list.
pCur = head->next;
// While pCur points to a node, traverse the list.
while (pCur)
{
// Display the value in this node.
pCur->college.hDdisplay();
// Move to the next node.
pCur = pCur->next;
}
cout << endl;
}
//**************************************************
// The searchList function looks for a target college
// in the sorted linked list: if found, returns true
// and copies the data in that node to the output parameter
//**************************************************
bool LinkedList::searchList(string target, College &dataOut) const
{
bool found = false; // assume target not found
Node *pCur; // To move through the list
/* Write your code here */
return found;
}
//**************************************************
// Destructor
// This function deletes every node in the list.
//**************************************************
LinkedList::~LinkedList()
{
Node *pCur; // To traverse the list
Node *pNext; // To hold the address of the next node
// Position nodePtr: skip the head of the list
pCur = head->next;
// While pCur is not at the end of the list...
while(pCur != NULL)
{
// Save a pointer to the next node.
pNext = pCur->next;
// Delete the current node.
delete pCur;
// Position pCur at the next node.
pCur = pNext;
}
delete head; // delete the sentinel node
}
--------------------------------------------------------------------------------------
//LinkedList.h
#ifndef LINKED_LIST_H
#define LINKED_LIST_H
#include "College.h"
class LinkedList
{
private:
struct Node
{
College college;
Node *next;
};
Node *head;
int length;
public:
LinkedList(); // constructor
~LinkedList(); // destructor
// Linked list operations
int getLength() const {return length;}
void insertNode(College);
bool deleteNode(string);
void displayList() const;
bool searchList(string, College &) const;
};
#endif
In: Computer Science
Case Study
In December 2016, Arshad Ali joined Imperial Computers Ltd. (ICL) as a Senior Programmer, with a handsome pay. Prior to this job, he worked successfully as an assistant programmer in Gem Computers (Gem). Arshad felt that ICL offered better career prospects, as it was growing much faster than Gem, which was a relatively small company.
Although Arshad had enjoyed working there (at Gem), he realized that to grow further in his field, he would have to join a bigger company, and preferable one that handled international projects. He was sure he would excel in his position at ICL, just as he had done in his old job at Gem.
ICL had international operations and there was more than a slim chance that he would be sent to USA or the UK on a project. Knowing that this would give him a lot of exposure, besides looking good on his resume, Arshad was quite excited about his new job.
Arshad joined Gunjan’s five-member team at ICL. He had met Gunjan during the orientation sessions, and was looking forward to working under her. His team members seemed warm and friendly, and comfortable with their work. He introduced himself to the team members and got to know more about each of them.
Wanting to know more about his boss, he casually asked Rehman, one of the team members, about Gunjan. Rehman said, “Gunjan does not interfere with our work. In fact, you could even say that she tries to ignore us as much as she can.” Arshad was surprised by the comment but decided that Gunjan was probably leaving them alone to do their work without any guidance, in order to allow them to realize their full potential.
At Gem, Arshad had worked under Sultan and had looked up to him as a guide and mentor – always guiding, but never interfering. Sultan had let Arshad make his own mistakes and learn from them. He had always encouraged individual ideas, and let the team discover the flaws, if any, through discussion and experience. He rarely held an individual member of his team responsible if the team as a whole failed to deliver – for him the responsibility for any failure was collective. Arshad remembered telling his colleagues at Gem that the ideal boss would be someone who did not interfere with his/her subordinate’s work. Arshad wanted to believe that Gunjan too was the non-interfering type. If that was the case, surely her non-interference would only help him to grow.
In his first week at work, Arshad found the atmosphere at the office a bit dull. However, he was quite excited. His team had been assigned a new project and was facing a few glitches with the new software. He had thought about the problem till late in the night and had come up with several possible solutions. He could not wait to discuss them with his team and Gunjan. He smiled to himself when he thought of how Gunjan would react when he will tell her that he had come up with several possible solutions to the problem. He was sure she would be happy with his having put in so much effort into the project, right from day one.
He was daydreaming about all the praise that he was going to get when Gunjan walked into the office. Arshad waited for her to go into her cabin, and after five minutes, called her up, asking to see her. She asked him to come in after tem minutes. When he went in, she looked at him blankly and asked, “Yes?” Not sure whether she had recognized him, Arshad introduced himself. She said, “Ok, but why did you want to meet me?” Arshad started to tell her about the problems they were having with the software. But before he could even finish, she told him that she was busy with other things, and that she would send an email with the solution to all the members of the team by the end of the day, and that they could then implement it immediately. Arshad was somewhat taken aback. However, ever the optimist, he thought that she had perhaps already discussed the matter with the team.
Arshad came out of Gunjan’s cabin and went straight to where his team members sat. He thought it would still be nice to bounce ideas off them and also to see what solutions others might come up with. He told them of all the solutions he had in mind. He waited for the others to come up with their suggestions but not one of them spoke up. He was surprised, and asked them point-blank why they were so disinterested.
Aftab, one of the team members, said, “What is the point in our discussing these things? Gunjan is not going to have time to listen to us on discuss anything. She will just give us the solution she thinks is best, and we will just do what she tells us to do; why waste everyone’s time?”
Arshad felt his heart sink. Was this the way things worked over here? However, he refused to lose heart and thought that maybe, he could change things a little. But as the days went by, Arshad realized that Gunjan was the complete opposite of his old boss.
While she was efficient at what she did and extremely intelligent, she had neither the time nor the inclination to groom her subordinates. Her solutions to problem were always correct, but she was not willing to discuss or debate the merits of any other ideas that her team might have. She did not hold the team down to their deadlines not did she ever interfere. In fact, she rarely said anything at all. If work did not get finished on time, she would just blame her team, and totally disassociate herself from them.
Time and again, Arshad found himself thinking of Sultan his old boss, and of how he had been such a positive influence. Gunjan, on the other hand, even without actively doing anything, had managed to significantly lower his motivation levels.
Arshad gradually began to lose interest in his work – it had become too mechanical for his taste. He didn’t really need to think; his boss had all the answers. He was learning nothing new, and he felt his career was going nowhere. As he became more and more discouraged, his performance suffered. From being someone with immense promise and potential Arshad was now in danger of becoming just another mediocre techie.
Questions:
Q1. What, according to you, were the reasons for Arshad’s disillusionment? Answer the question using Maslow’s Hierarchy of Needs.
Q2. What should Arshad do to resolve his situation?
Q3. What can a team leader do to ensure high levels of motivation among his/her team members?
Please note the dead line in3 hours
In: Operations Management
Case Study In December 2016, Arshad Ali joined Imperial Computers Ltd. (ICL) as a Senior Programmer, with a handsome pay. Prior to this job, he worked successfully as an assistant programmer in Gem Computers (Gem). Arshad felt that ICL offered better career prospects, as it was growing much faster than Gem, which was a relatively small company. Although Arshad had enjoyed working there (at Gem), he realized that to grow further in his field, he would have to join a bigger company, and preferable one that handled international projects. He was sure he would excel in his position at ICL, just as he had done in his old job at Gem. ICL had international operations and there was more than a slim chance that he would be sent to USA or the UK on a project. Knowing that this would give him a lot of exposure, besides looking good on his resume, Arshad was quite excited about his new job. Arshad joined Gunjan’s five-member team at ICL. He had met Gunjan during the orientation sessions, and was looking forward to working under her. His team members seemed warm and friendly, and comfortable with their work. He introduced himself to the team members and got to know more about each of them. Wanting to know more about his boss, he casually asked Rehman, one of the team members, about Gunjan. Rehman said, “Gunjan does not interfere with our work. In fact, you could even say that she tries to ignore us as much as she can.” Arshad was surprised by the comment but decided that Gunjan was probably leaving them alone to do their work without any guidance, in order to allow them to realize their full potential. At Gem, Arshad had worked under Sultan and had looked up to him as a guide and mentor – always guiding, but never interfering. Sultan had let Arshad make his own mistakes and learn from them. He had always encouraged individual ideas, and let the team discover the flaws, if any, through discussion and experience. He rarely held an individual member of his team responsible if the team as a whole failed to deliver – for him the responsibility for any failure was collective. Arshad remembered telling his colleagues at Gem that the ideal boss would be someone who did not interfere with his/her subordinate’s work. Arshad wanted to believe that Gunjan too was the non-interfering type. If that was the case, surely her non-interference would only help him to grow. In his first week at work, Arshad found the atmosphere at the office a bit dull. However, he was quite excited. His team had been assigned a new project and was facing a few glitches with the new software. He had thought about the problem till late in the night and had come up with several possible solutions. He could not wait to discuss them with his team and Gunjan. He smiled to himself when he thought of how Gunjan would react when he will tell her that he had come up with several possible solutions to the problem. He was sure she would be happy with his having put in so much effort into the project, right from day one. He was daydreaming about all the praise that he was going to get when Gunjan walked into the office. Arshad waited for her to go into her cabin, and after five minutes, called her up, asking to see her. She asked him to come in after tem minutes. When he went in, she looked at him blankly and asked, “Yes?” Not sure whether she had recognized him, Arshad introduced himself. She said, “Ok, but why did you want to meet me?” Arshad started to tell her about the problems they were having with the software. But before he could even finish, she told him that she was busy with other things, and that she would send an email with the solution to all the members of the team by the end of the day, and that they could then implement it immediately. Arshad was somewhat taken aback. However, ever the optimist, he thought that she had perhaps already discussed the matter with the team. Arshad came out of Gunjan’s cabin and went straight to where his team members sat. He thought it would still be nice to bounce ideas off them and also to see what solutions others might come up with. He told them of all the solutions he had in mind. He waited for the others to come up with their suggestions but not one of them spoke up. He was surprised, and asked them point-blank why they were so disinterested. Aftab, one of the team members, said, “What is the point in our discussing these things? Gunjan is not going to have time to listen to us on discuss anything. She will just give us the solution she thinks is best, and we will just do what she tells us to do; why waste everyone’s time?” Arshad felt his heart sink. Was this the way things worked over here? However, he refused to lose heart and thought that maybe, he could change things a little. But as the days went by, Arshad realized that Gunjan was the complete opposite of his old boss. While she was efficient at what she did and extremely intelligent, she had neither the time nor the inclination to groom her subordinates. Her solutions to problem were always correct, but she was not willing to discuss or debate the merits of any other ideas that her team might have. She did not hold the team down to their deadlines not did she ever interfere. In fact, she rarely said anything at all. If work did not get finished on time, she would just blame her team, and totally disassociate herself from them. Time and again, Arshad found himself thinking of Sultan his old boss, and of how he had been such a positive influence. Gunjan, on the other hand, even without actively doing anything, had managed to significantly lower his motivation levels. Arshad gradually began to lose interest in his work – it had become too mechanical for his taste. He didn’t really need to think; his boss had all the answers. He was learning nothing new, and he felt his career was going nowhere. As he became more and more discouraged, his performance suffered. From being someone with immense promise and potential Arshad was now in danger of becoming just another mediocre techie.
Question2: What should Arshad do to resolve his situation?
In: Operations Management
Programmer defined Function / Arrays: 1.Write a function for printing an array. void print_array (int arr[], int size); 2. Write a function to generate an array of random integers. void random_array (int arr[], int size, int range); The scale of numbers should be 1 to range. 3. Write a function to find the sum of a sequence of number. int sum (int arr[], int size); 4. Write a function rotate(arr[], d, n) that rotates arr[] of size n by d elements. Example: Rotation of the above array by 2 will make array. In your main function, call the above functions: Declare an array of size that input by user. Initialize this array with random values. (task 2) Display this array. (task 1) Display the sum of the numbers in the array. (task 3) Ask user for number of elements to rotate ‘d’. Call the user defined function named ‘rotate’. (task 4) Display the array again.
In: Computer Science
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "../include/cis1057.h"
/*
* Programmer: << MA >>
* Class: Introduction to C Programming 1057 Spring 2019
Section 004
* Assignment: Number 5 “estimate the value of a factorial using
Gosper's algorithm."
* Date: << 02-19-2019 >>
* Version: 1
* Description: Program will prompt for some data, read in the
values, perform
the calculation using library math functions, and display the
result.
* File: lab5.c
*/
# define M_PI 3.14159265358979323846 /* pi */
# define M_E 2.7182818284590452354 /* e */
# define N_COEFF 2
# define CONST 1
int prompt_and_return_integer( const char *prompt );
double estimate_gospers_algorithm( const double n );
void display_results( const double answer );
int main ()
{
const char prompt_1;
double A,B ;
B = prompt_and_return_integer(&prompt_1);
A = estimate_gospers_algorithm(B);
display_results(A);
return EXIT_SUCCESS;
}
int prompt_and_return_integer( const char *prompt )
{
printf("Please enter a positive integer: ");
scanf("%lf", &*prompt);
return *prompt;
}
double estimate_gospers_algorithm( const double n )
{
double squrt_partial; // Gosper's formula under the square root,
leaves out PI
double squrt_solved; // sqrt_part square rooted
double my_result; // powers multipled by the solved square
root
double n_power;
double e_power;
squrt_partial = (N_COEFF * n) + CONST;
squrt_solved = sqrt(squrt_partial * M_PI);
n_power = pow(n,n);
e_power = pow(M_E,-n);
return n_power * e_power * squrt_solved;
}
void display_results( const double answer )
{
printf( " the factorial is %0.2f.\n", answer);
return;
}
my output is coming wrong can somebody help me to fix the problem?
In: Computer Science
In: Accounting
Near the end of 2019, the management of Dimsdale Sports Co., a merchandising company, prepared the following estimated balance sheet for December 31, 2019. DIMSDALE SPORTS COMPANY Estimated Balance Sheet December 31, 2019 Assets
Cash $ 35,500 D
Accounts receivable 520,000 D
Inventory 90,000 D
Total current assets $ 645,500 CR
Equipment 612,000 D
Less: Accumulated depreciation 76,500 D
Equipment, net 535,500 CR
Total assets $ 1,181,000 CR
Liabilities and Equity
Accounts payable $ 355,000 D
Bank loan payable 14,000 D
Taxes payable (due 3/15/2020) 90,000 D
Total liabilities $ 459,000 CR
Common stock 470,500 D
Retained earnings 251,500 D
Total stockholders’ equity 722,000 CR
Total liabilities and equity $ 1,181,000 CR
To prepare a master budget for January, February, and March of 2020, management gathers the following information.
a.The company’s single product is purchased for $20 per unit and resold for $56 per unit. The expected inventory level of 4,500 units on December 31, 2019, is more than management’s desired level, which is 20% of the next month’s expected sales (in units). Expected sales are January, 7,250 units; February, 9,250 units; March, 10,750 units; and April, 10,500 units.
b. Cash sales and credit sales represent 25% and 75%, respectively, of total sales. Of the credit sales, 57% is collected in the first month after the month of sale and 43% in the second month after the month of sale. For the December 31, 2019, accounts receivable balance, $130,000 is collected in January 2020 and the remaining $390,000 is collected in February 2020.
c.Merchandise purchases are paid for as follows: 20% in the first month after the month of purchase and 80% in the second month after the month of purchase. For the December 31, 2019, accounts payable balance, $65,000 is paid in January 2020 and the remaining $290,000 is paid in February 2020.
d. Sales commissions equal to 20% of sales are paid each month. Sales salaries (excluding commissions) are $90,000 per year.
e. General and administrative salaries are $144,000 per year. Maintenance expense equals $1,900 per month and is paid in cash.
f. Equipment reported in the December 31, 2019, balance sheet was purchased in January 2019. It is being depreciated over eight years under the straight-line method with no salvage value. The following amounts for new equipment purchases are planned in the coming quarter: January, $38,400; February, $93,600; and March, $24,000. This equipment will be depreciated under the straight-line method over eight years with no salvage value. A full month’s depreciation is taken for the month in which equipment is purchased.
g. The company plans to buy land at the end of March at a cost of $140,000, which will be paid with cash on the last day of the month.
h. The company has a working arrangement with its bank to obtain additional loans as needed. The interest rate is 12% per year, and interest is paid at each month-end based on the beginning balance. Partial or full payments on these loans can be made on the last day of the month. The company has agreed to maintain a minimum ending cash balance of $42,000 at the end of each month.
i. The income tax rate for the company is 43%. Income taxes on the first quarter’s income will not be paid until April 15.
Required: Prepare a master budget for each of the first three months of 2020; include the following component budgets.
1. Monthly sales budgets.
2. Monthly merchandise purchases budgets.
3. Monthly selling expense budgets.
4. Monthly general and administrative expense budgets.
5. Monthly capital expenditures budgets.
6. Monthly cash budgets.
7. Budgeted income statement for the entire first quarter (not
for each month).
8. Budgeted balance sheet as of March 31, 2020.
In: Accounting
9. Where is the eukaryotic cellular site of transcription and translation?
10. What has to happen to a protein after construction but before it becomes functional?
In: Biology
Name two ways a bank minimizes credit risk before a loan is made. Name two ways it does this after the loan is made.
In: Economics