you will find a class called Employee. This class should include a constructor that sets name to blanks and salary to $0.00 and a constructor which sets name to a starting name and salary to a set amount. Additionally, the class should include methods to set the name and salary and return the name and salary. Create another method to return the name and salary nicely formatted as a string (hint – research the toString method). You will create a new class called Manager that inherits from the class Employee. Add a field named department of type String. Supply a method toString that prints the manager's name, department, and salary. Remember, you may not change anything in the Employee class. You will then create a test class that uses the Manager class. The test class should prompt the user to enter the name, department, and salary. This information should be stored in an array. Upon entry of 3 employee records, the program should output the information you entered. Your program should be able to handle a maximum of 3 entries. You may write the program as a console application or using dialog boxes. Please remember to include the needed comments at the top of your .java file which will identify this assignment. Please refer to Project Format and Grading Policy on the Syllabus regarding programming project expectations for the semester.
In: Computer Science
Explain in detail about the Maximum Entropy Model for POS Tagging. Use flowcharts and diagrams to explain your points better.
In: Computer Science
1. Using the pThread library, write a multithreaded program that
calculates various statistical values for a list of numbers. This
program will be passed a series of numbers on the command line and
will then create three separate worker threads. One thread will
determine the average of the numbers, the second will determine the
maximum value, and the third will determine the minimum value. For
example, suppose your program is passed the integers
90 81 78 95 79 72 85
The program will report
The average value is 82
The minimum value is 72
The maximum value is 95
The variables representing the average, minimum, and maximum values
will be stored globally. The worker threads will set these values,
and the parent thread will output the values once the workers have
exited.
In: Computer Science
#include <stdio.h>
int isLeapYear(int year) {
if (year % 400 == 0 || (year % 100 != 0 &&
year % 4 == 0)) {
return 1;
}
else {
return 0;
}
}
int toJulianLeap(int month, int day) {
month--;
switch (month)
{
case 1: day += 31;
break;
case 2: day += 60;
break;
case 3: day += 91;
break;
case 4: day += 121;
break;
case 5: day += 152;
break;
case 6: day += 182;
break;
case 7: day += 213;
break;
case 8: day += 244;
break;
case 9: day += 274;
break;
case 10: day += 305;
break;
case 11: day += 335;
break;
case 12: day = 366;
break;
}
return day;
}
int toJulianNonLeap(int month, int day) {
month--;
switch (month)
{
case 1: day += 31;
break;
case 2: day += 59;
break;
case 3: day += 90;
break;
case 4: day += 120;
break;
case 5: day += 151;
break;
case 6: day += 181;
break;
case 7: day += 212;
break;
case 8: day += 243;
break;
case 9: day += 273;
break;
case 10: day += 304;
break;
case 11: day += 334;
break;
case 12: day = 365;
break;
}
return day;
}
int toJulian(int month, int day, int year) {
}
int main(void) {
int month, day, year;
while (1)
{
scanf("%d%d%d\n", &month,
&day, &year);
printf("%d%d\n",);
}
return 0;
}
How would i convert the input of month and days to Julian days?
In: Computer Science
Write a Matlab function called “SimpleChannel” which takes
a signal as an input, simulates a channel and returns the
transmitted signal.. SimpleChannel function will add a randomly
generated noise (look for “rand” function) to the signal and return
it. You can adjust the amplitude of the noise as you want in order
to have a distinct noise effect. Then write another matlab code to
show the channel noise. First create the signal and then simulate
the channel by using your SimpleChannel function. Lastly plot the
two signals in the same figure to show the effect of the
noise.
Function : [Tran] = SimpleChannel(Rec)
The Signal : x(t) = 2 cos(2πt) + 3 cos(4πt)
Time interval : from 0s to 5s incremented by 0.01s
Note: Don’t forget to put title and label names.
In: Computer Science
using System;
using System.Data.SqlTypes;
using System.Globalization;
using System.Reflection.Metadata.Ecma335;
using System.Runtime.Intrinsics.X86;
using System.Security.Cryptography.X509Certificates;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
AO function = new AO(1000, 3);
function.Find();
}
}
class AO
{
public a(long _max , long _least)
{
max = _max;
least = _least;
numm = new long[1000];
}
public long max;
public long least;
public long[] numm;
public long Find()
{
long per =0;
long sum = 0;
for(int i=1; i<=max; i++)
{
for(int j=0;j<i;j++)
{
if(j%i==0)
{
sum = sum + j;
per++;
}
if (sum != i)
continue;
else
numm[per] = i;
}
}
return per;
}
}
}
Please let me know why it doesn't work.
In: Computer Science
Explain in detail about the Semantic Role Labelling with Conditional Random Fields. Use flowcharts and diagrams to explain your points better.
In: Computer Science
Case Study- A
National Foodservice Equipment Pty Ltd is a Western Australian company. Within the hospitality and catering industry, National Foodservice Equipment is recognised as a leading supplier and distributor to the foodservice sector. The business started in 1999 and has grown to 24 employees, with locations in Perth and Busselton.
National Foodservice Equipment needed to find a solution that could cater for multi warehousing and deliver adequate stock control. In short, they had simply outgrown their current systems and felt the previous software they were using could no longer meet the company’s growing needs. As a long term user of MYOB Premier and another third party custom built system, it meant that the integration of the two systems was critical for success.
The Finance and Administration Manager, Simon Phipps project managed the assessment, selection, specification and implementation of MYOB Exonet as National Foodservice Equipment’s business management system of choice. He also had a solid hand in configuring many of the business’s reports. It was showcased as the next step up from MYOB Premier and a logical choice for the business. According to Simon, “it was the association with MYOB that sold the product.” The integrated stock handling system of MYOB Exonet also appealed to the needs of National Foodservice Equipment. Each stock item can include codes, descriptions, groups, cost & sell prices, tracking methods and stock levels for each location.
Questions
In: Computer Science
#2 Extend Employee and Manager classes created in lab#3. § Replace field year by the field hireDate of type java.util.Date § Your classes should implement Comparable interface. (Employee1 > Employee2 if its salary is more than the salary of Employee2, the same for managers, but if their salaries are equal, compare by bonus). (java oop)-> laboratory work
lab3# Create a class called Employee whose objects are records
for an employee. This class will be a derived class of the class
Person (MUST contain equals and toString methods). An employee
record has an employee's name (inherited from the class Person), an
annual salary represented as a single value of type double, a year
the employee started work as a single value of type int and a
national insuranceNumber, which is a value of type String. Inside
this class you need to override toString and equals methods of the
Person class. Your class should have a reasonable number of
constructors and accessor methods. Then create a class Manager
extending Employee, each manager has a team of Employees (Vector)
and can get a bonus. You need to override toString and equals
methods. Write another class containing a main method to fully test
your class definition. *Use super() keyword whenever possible.
Otherwise you will lose points. *Check the quality of your equals
and hashcode methods by adding several employees to a HashSet and
checking whether it allows duplicate items.
In: Computer Science
Sum
Bibi have an X × X array. Each array contains an integer a, and Bibi is curious about how much is the sum of all integers in each column.
Format Input:
The input consists of an integer T. The next T line contains X integers followed by an X × X array. Each array contains integers a.
Format Output
The output contains ”Case #T:” followed by X integers separated by spaces that indicate the sum of all the numbers in the i-th column.
Constraints
• 1 ≤ T ≤ 100
• 1 ≤ X ≤ 100
• 1 ≤ a ≤ 107
Sample Input 1 (standard input)
2
3
1 2 3
4 5 6
7 8 9
5
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
Sample Output 1 (standard output):
Case #1: 12 15 18
Case #2: 55 60 65 70 75
note : use c language, integer must be the same as the constraint, font use void/result code it under int main (){
In: Computer Science
CASE STUDY:
A large Transformational Medical Technologies and Services Organization.
Business Problem :-
The client offered a hosted Electronic Medical Record (EMR) solution and wanted to build a portal for healthcare and pharmaceutical companies to allow access to the data for medical care quality measures and research needs.
Key Issues :
• How do we collect data from over 100 different physical sites into a central location for warehousing?
• How do we combine EMR data from numerous organizations with different data collection standards?
• What is the best method to properly cleanse the data such that personal identifying information is removed?
In: Computer Science
*******Software testing occurs near the end of the programming process. Because of this, if a project falls behind schedule, testing time is often reduced. Discuss the possible impacts of less-than-thorough testing. Topics might include company reputation, customer dissatisfaction, the company’s ability to sell new or updated products, etc. Discuss which is worse: releasing a product late or releasing it on time without fully testing it.********
In: Computer Science
SHOW WORK
. Using the Boyer-Moore algorithm, find the Bad Match table for the below patterns. (8 points)
i) Pattern1: AABCACCCA
ii) Pattern 2: CCCAAABBD
iii) Pattern3: ABCABCBAD
iv) Pattern4: BSDGSBAA
SHOW WORK
In: Computer Science
Suppose we have 4 memory modules and each module has 8 addresses. Draw the memory modules with the addresses they contain using: a) High-order Interleaving and b) Low-order interleaving.
In: Computer Science
Write a Python function which finds the smallest even and odd numbers in a given list. (Use for loop and if conditions for this problem)
In: Computer Science