Write a short research on Process Strategy including the following topics:
1.1 Four Process Strategies
1.2 Process Analysis and Design
1.3 Production Technology
4.4 Technology in
Services
In: Operations Management
In relation to the cellular telephone system , explain how a mobile call is established , maintained and terminated in a cellular system
In: Computer Science
In relation to satellite communication, Can the same frequency be used for uplink and downlink communication? Justify answer. Why parabolic antennas are used for satellite comunication? What is the minimum numbers of satellite that we need in the orbit to cover transmission to and reception from all over the earth
In: Computer Science
Q.We design classes to create objects in java. Write step wise procedure for
(a).How these objects created in memory?
(b). Which area of memory is used for creation of the objects?
(c). What is difference between stack and heap memory in java?
In: Computer Science
Smith Inc. engaged in the following transactions in 2019.
|
Jan 1 |
The owner invested $100,000 into the company in exchange for 5,000 shares of no-par common stock. |
|
Jan 1 |
Purchased a computer system for $40,000. |
|
Jan 14 |
Purchased $1,200 of supplies on account. |
|
Feb 25 |
Invoiced clients for services provided on account, $36,000. |
|
Mar 31 |
Paid rent for two years, $19,200. |
|
April 1 |
The company borrowed $50,000 from Bank of America. |
|
May 14 |
Collected $11,500 on account. |
|
June 1 |
Purchase a delivery van to delivery copies to customers, the van had a purchase price of $53,000, taxes on the van were $5,000 and document charges of $1,500 were paid. |
|
July 31 |
Paid $800 on account for supplies purchased on January 14. |
|
Aug 10 |
Received cash for services provided, $10,200. |
|
Sept 1 |
Paid utilities of $4,000. |
|
Oct 1 |
Received $30,000 in advance for services to be provided in the future. |
|
Nov 15 |
Paid for an ad in the local newspaper, $1,500. |
|
Nov 27 |
Processed employee payroll and employer taxes, gross earnings were $4,000. |
|
Nov 30 |
Paid the employee salaries, taxes are not due until January. |
|
Dec 15 |
The company declared and paid $6,000 in dividends. |
|
Dec 30 |
Invoiced clients for services performed totaling $8,500. |
|
Dec 27 |
Processed employee payroll and employer taxes, gross earnings were $4,000. |
|
Dec 30 |
Paid the employee salaries, taxes are not due until January. |
Smith Inc. Journal General – External Transactions
|
Date |
Account Name |
Debit |
Credit |
In: Accounting
IN PYTHON :
Write one program that will compute both the Least Common Multiple, and the Greatest Common Factor of two numbers inputted by a user.
The program will display all factors and multiples of the two numbers.
When displaying the multiples of the numbers, only display up to the first input times the second input. \
Use functions to computer the answers.
Loop the program so that the user can enter two new numbers after each try.
In: Computer Science
Consider the following schema:
product (pname, price, category, manufacturer)
Purchase (buyer, seller, store, product)
Company (cname, stock price, country)
Person(per-name, phone number, city)
Write a suitable SQl for the following:
Ex #1: Find people who bought telephony products.
Ex #2: Find names of people who bought American products
Ex #3: Find names of people who bought American products and they live in Seattle.
Ex #4: Find people who have both bought and sold something.
Ex #5: Find people who bought stuff from Joe or bought products from a company whose stock prices is more than $50.
In: Computer Science
Give an example of the Continuity Equation, Bernoulli's equation and the Poiseuille Principle
In: Physics
Discuss the role of an administrator as a coach? What are the differences between being a teacher and a coach? How do positive academic leaders motivate other to achieve the highest possible standards?
In: Psychology
Code using JAVA:
must include "Main Method" for IDE testing!
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x),
left(left), right(right) {}
* };
*/
class Solution {
public:
vector<int> inorderTraversal(TreeNode* root) {
}
};
Given the root of a binary tree, return the inorder traversal of its nodes' values.
Example 1:
Input: root = [1,null,2,3] Output: [1,3,2]
Example 2:
Input: root = [] Output: []
Example 3:
Input: root = [1] Output: [1]
Example 4:
Input: root = [1,2] Output: [2,1]
Example 5:
Input: root = [1,null,2] Output: [1,2]
Constraints:
In: Computer Science
In 300 words for each topic what is the best reflection statements for the following: Understand your Motivation, Diversity at Work, manage your career, Behavioral Organization, TQM and Personal Profiling and Group processes
In: Psychology
This program is in C++
Please kindly make sure that the output exactly matches the test case so I can vote a thumbs up. If it doesn't the program is wrong.
Test Cases and the given code are given after the prompt
Prompt:
Modify the given code to:
1.. Store the data in Binary file and access it in Random Access mode.
2.Replace Class with Structure for Employee and Department.
3. Inside each structure, replace all string variables with array of characters. please read the chapter 12(More about characters and strings). Though we do not have homework on this, the knowledge from this chapter will help you do the final exam project.
4. Make Employee and Department editable. That means, the user should be able to edit a given Employee and Department. Youc an allow the user to edit Employee name, age etc and assign him/her to different department. Similarly department name and department head can be changed. However, do not allow the uesr to Employee ID in Employee file and Department ID in department file.
5. Please note that the data will no longer be stored in the array as it was in the given code. Instead, it should be written to the file as soon as you collect the data from the user. If you are editing a record, read it from the file,collect new data from the user, store the record back to the file in the same place it was found inside the file. That means, the menu will not have options to save data to file or read data from file. Also, this should provide the ability for user to create unlimited number of employees and departments unlike in given code where you allowed only limited number of departments and employees.
Test Cases:
////////////////////////////////////
TEST CASE1: Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 1 Enter the NEW Department Data: Dept ID: 1 Dept Name: Sales Head of Dept Name: Anna Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 2 Enter the NEW Employee Data: Employee ID: 1 Employee Name: John Employee Salary: $45000 Employee Age: 23 Department ID: 1 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : Sales Total Salary : $45000 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 2 Enter the NEW Employee Data: Employee ID: 2 Employee Name: Susan Employee Salary: $50000 Employee Age: 30 Department ID: 1 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : Sales Total Salary : $95000 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 1 Enter the NEW Department Data: Dept ID: 2 Dept Name: Marketing Head of Dept Name: Marcus Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 2 Enter the NEW Employee Data: Employee ID: 3 Employee Name: Adam Employee Salary: $60000 Employee Age: 30 Department ID: 2 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : Sales Total Salary : $95000 Dept : Marketing Total Salary : $60000 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 3 Which record to EDIT: Please choose one of the following... 1 to 2 : 2 Display Department Details: Dept ID : 2 Dept Name : Marketing Dept Head : Marcus EDIT the Department Data: Dept Name: Global Marketing Head of Dept Name: Butler Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : Sales Total Salary : $95000 Dept : Global Marketing Total Salary : $60000 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 4 Which record to EDIT: Please choose one of the following... 1 to 3 : 3 Display Employee Details: ID : 3 Name : Adam Salary : $60000 Age : 30 Dept : 2 Edit the Employee Data: Employee Name: Adam Employee Salary: $75000 Employee Age: 31 Department ID: 1 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : Sales Total Salary : $170000 Dept : Global Marketing Total Salary : $0 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 9 Please enter a valid choice (1 - 6): 6 Thank you, goodbye. TEST CASE2: Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 1 Enter the NEW Department Data: Dept ID: 1 Dept Name: HumanResources Head of Dept Name: Maria Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 1 Enter the NEW Department Data: Dept ID: 1 Please enter a unique Deptartment ID: 2 Dept Name: Marketing Head of Dept Name: Samy Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 2 Enter the NEW Employee Data: Employee ID: 1 Employee Name: John Employee Salary: $45000 Employee Age: 35 Department ID: 9 Please enter an existing Deptartment ID: 1 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 2 Enter the NEW Employee Data: Employee ID: 1 Please enter a unique Employee ID: 2 Employee Name: Susan Employee Salary: $70000 Employee Age: 25 Department ID: 2 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 5 Salary Report By Department Dept : HumanResources Total Salary : $45000 Dept : Marketing Total Salary : $70000 Human Resources Menu 1. Create Department 2. Create Employee 3. Edit Department 4. Edit Employee 5. Display Salary Report 6. -- Quit -- Please make a selection : 9 Please enter a valid choice (1 - 6): 6 Thank you, goodbye.
/////////////////////////////////////
The Given Code:
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
class Depts
{ private:
int DeptID;
string DeptName;
string DeptHName;
public:
Depts() {}
Depts(int inId, string name, string headName)
{ DeptID = inId;
DeptHName = headName;
DeptName = name;
}
string getDeptHname() const
{ return DeptHName;
}
int getDeptHID() const
{ return DeptID;
}
string getDeptName() const
{ return DeptName;
}
void setDeptHName(string DeptHName)
{ this->DeptHName = DeptHName;
}
void setDeptID(int DeptID)
{ this->DeptID = DeptID;
}
void setDeptname(string DeptName)
{ this->DeptName = DeptName;
}
};
class Employee
{ private:
int empID;
string empName;
double empSalary;
double empAge;
int empDeptID;
public:
Employee() {}
Employee(int id, string name, double salary, double age, int dId)
{ empID = id;
empName = name;
empSalary = salary;
empAge = age;
empDeptID = dId;
}
string getEmploeename() const
{ return empName;
}
int getEmpDeptID() const
{ return empDeptID;
}
int getEmpID() const
{ return empID;
}
double getEmpAge() const
{ return empAge;
}
double getEmpSalary() const
{ return empSalary;
}
void setEmpName(string empName)
{ this->empName = empName;
}
void setEmpDeptID(int empDeptID)
{ this->empDeptID = empDeptID;
}
void setEmpID(int empID)
{ this->empID = empID;
}
void setEmpAge(double empAge)
{ this->empAge = empAge;
}
void setEmpSalary(double empSalary)
{ this->empSalary = empSalary;
}
};
int main()
{ Employee employees[5];
Depts departments[3];
int noOfDepartment = 0;
int noOfEmployees = 0;
int choice;
while (choice != 6)
{ cout << "1. Create Department"
"\n2. Create Employee"
"\n3. Write Out Data File"
"\n4. Read In Data File"
"\n5. Display Salary Report"
"\n6. -- Quit -- \n"
"Please make a selection : ";
cin >> choice;
if (choice == 1)
{ if (noOfDepartment == 3)
{ cout << "The array is full, you can not add any more Depts." << endl;
continue;
}
int dId;
string dName;
string dHeadName;
cout << "Please Enter Department Details:" << endl;
cout << "Department ID : ";
cin >> dId;
bool validId = true;
for (int i = 0; i < noOfDepartment; i++)
{ if (departments[i].getDeptHID() == dId)
{ cout << "Value must be unique!" << endl;
validId = false;
}
}
if (!validId)
{ continue;
}
cout << "Department Name : ";
cin >> dName;
cout << "Head of Department : ";
cin >> dHeadName;
Depts d(dId, dName, dHeadName);
departments[noOfDepartment] = d;
noOfDepartment++;
}
else if (choice == 2)
{ if (noOfEmployees == 5)
{ cout << "The array is full, you can not add any more Employees." << endl;
continue;
}
int eId;
string eName;
double eSalary;
double eAge;
int eDepartmentid;
cout << "Please Enter Employee Details:" << endl;
cout << "Employee ID : ";
cin >> eId;
bool validId = true;
for (int i = 0; i < noOfEmployees; i++)
{ if (employees[i].getEmpID() == eId)
{ cout << "Value must be unique!" << endl;
validId = false;
}
}
if (!validId)
{ continue;
}
cout << "Employee Name :";
cin >> eName;
cout << "Salary: $";
cin >> eSalary;
cout << "Age : ";
cin >> eAge;
cout << "Department ID : ";
cin >> eDepartmentid;
bool foundId = false;
while (!foundId)
{ for (int i = 0; i < noOfDepartment; i++)
{ if (departments[i].getDeptHID() == eDepartmentid)
{ foundId = true;
break;
}
}
if (!foundId)
{ cout << "Please enter a valid department ID: ";
cin >> eDepartmentid;
}
}
Employee e(eId, eName, eSalary, eAge, eDepartmentid);
employees[noOfEmployees] = e;
noOfEmployees++;
}
else if (choice == 3)
{ ofstream myfile1("departments.txt");
ofstream myfile2("employees.txt");
for (int i = 0; i < noOfDepartment; i++)
{ myfile1 << departments[i].getDeptHID() << " " << departments[i].getDeptName() << " " << departments[i].getDeptHname() << endl;
}
for (int i = 0; i < noOfEmployees; i++)
{ myfile2 << employees[i].getEmpID() << " " << employees[i].getEmploeename() << " " << employees[i].getEmpSalary() << " " << employees[i].getEmpAge() << " " << employees[i].getEmpDeptID() << endl;
}
myfile1.close();
myfile2.close();
}
else if (choice == 4)
{ ifstream infile;
string line;
int dId;
string dName;
string dHeadName;
noOfDepartment = 0;
infile.open("departments.txt");
ifstream infile2;
int eId;
string eName;
double eSalary;
double eAge;
int eDepartmentid;
noOfEmployees = 0;
infile2.open("employees.txt");
}
else if (choice == 5)
{ string name = "";
double salary = 0;
cout<<"\n";
cout<<"Salary Report By Department\n";
for (int i = 0; i < noOfDepartment; i++)
{ salary = 0;
name = departments[i].getDeptName();
for (int j = 0; j < noOfEmployees; j++)
{ if (departments[i].getDeptHID() == employees[j].getEmpDeptID())
{ salary += employees[j].getEmpSalary();
}
}
cout << "\nDept : " << name << endl;
cout << "Total Salary : $" << salary <<endl;
}
}
else {
cout<<"Thank you, goodbye.";
return 0;
}
}
}
Thank you so much, I will leave a positive rate
In: Computer Science
The Gettysburg Address
President Abraham Lincoln
November 19, 1863
"Fourscore and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.
Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battlefield of that war. We have come to dedicate a portion of that field as a final resting-place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate — we cannot consecrate — we cannot hallow — this ground. The brave men, living and dead, who struggled here have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us — that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion — that we here highly resolve that these dead shall not have died in vain — that this nation shall have a new birth of freedom and that government of the people, by the people, for the people, shall not perish from the earth."
Based on the document Gettysburg Address, what actions did enslaved people take during the Civil War and how were they treated by the Union army? How did the Emancipation Proclamation and the Gettysburg Address, change the purpose of the Civil War?
In: Operations Management
In your opinion, what are companies that use sales promotion (offline and online) effectively? Based on what we learned in Chapter 13, tell us the name of the company and its sale promotion strategies.
In: Operations Management
In: Chemistry