Questions
Write a program to display privilege list of the roles and role list for privileges using...

Write a program to display privilege list of the roles and role list for privileges using many to many concept.

Problem Specification:

1. Prefill the data for roles and privileges.

2. Create a menu 1. Assign privilege 2. Cancel privilege 3. Search privilege by role 4. Search role by privilege.

3. Assign privilege -- To assign specific privilege for role.

4. Cancel Privilege -- To cancel specific privilege for role.

5. Search privilege by role -- To display all the privileges assigned for specific role.

6. Search role by privilege -- To display all the roles who are having specified privilege.

[Note :Strictly adhere to the object oriented specifications given as a part of the problem statement.Use the same class names, method names and attribute names.]

Create a class Role with the following private member variables/attributes.

  • private Integer id
  • private String name
  • private List<Privilege> privilegeList

1. Include a default constructor and 3-argument constructor with following argument order id, name , privilegeList

2. Include appropriate getters and setters.

Create a class Privilege with the following private member variables/attributes.

  • private Integer id
  • private String name
  • private List<Role> roleList

1. Include a default constructor and 3-argument constructor with following argument order id, name, roleList.

2. Include appropriate getters and setters.

Input and Output Format:

Refer sample input and output for formatting specifications.

All text in bold corresponds to input and the rest corresponds to output.

Sample Input and output :

Available roles:

Id Name

1 Manager

2 Shipper

3 Agent

4 Customer

Available privileges:

Id Name

1 Process Shipment

2 Create Shipment

3 Schedule Shipment

4 Cancel Shipment

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

1

Enter the id for role:

1

Enter the id for privilege:

1

Do you want to process again?(yes/no)

yes

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

1

Enter the id for role:

2

Enter the id for privilege:

1

Do you want to process again?(yes/no)

yes

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

1

Enter the id for role:

3

Enter the id for privilege:

1

Do you want to process again?(yes/no)

yes

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

1

Enter the id for role:

1

Enter the id for privilege:

2

Do you want to process again?(yes/no)

yes

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

3

Enter the role name:

Manager

Process Shipment

Create Shipment

Do you want to process again?(yes/no)

yes

1. Assign privilege

2. Cancel privilege

3. Search privilege by role

4. Search role by privilege

Enter the choice:

4

Enter the privilege name:

Process Shipment

Manager

Shipper

Agent

Do you want to process again?(yes/no)

no

Don'ts:

1. Do not create packages for classes. Strictly adhere to the program structure given in the template code.   

2. Do not use Internet Explorer, highly recommended to use chrome browser to launch Tekstac platform.   

3. Do not create multiple classes inside a single file. Create separate file for each class.

3 classes--

Role.Java

Privilege.java

Main.Java

In: Computer Science

The following data were collected from a repeated-measures study: Determine if there are any significant differences...

The following data were collected from a repeated-measures study:

Determine if there are any significant differences among the four treatments. Use a .05 level of significance.

Remember to;

1) State the null hypothesis,

2) Show all of your calculations,

3) Make a decision about your null hypothesis,

4) Make a conclusion including an APA format summary of your findings (include a measure of effect size if necessary), and

5) Indicate what you would do next given your findings.

Participant

Treatments

A

B

C

D

X2 = 332

G = 60

1

2

3

4

6

4

4

10

3

4

2

7

3

2

0

7

0

2

2

4

T = 24

SS = 24

T = 16

SS = 14

T = 12

SS = 26

T = 8

SS = 8

In: Statistics and Probability

Simplify Q2*= L’(F4+F5+F6+F7) + L +(F’1 F’2 F’3 F’5 F’6 F’7)+L’(F5+F6+F7)+ L’(F4+F3+F2+F1)+L+(F’1 F’2 F’3 F’4 F’6...

Simplify

Q2*= L’(F4+F5+F6+F7) + L +(F1 F2 F3 F5 F6 F7)+L’(F5+F6+F7)+ L’(F4+F3+F2+F1)+L+(F1 F2 F3 F4 F6 F7)+L’(F6+F7)+ L’(F5+F4+F3+F2+F1)+ L+(F1 F2 F3 F4 F5 F7)+L’(F7)+L’(F6+F5+F4+F3+F2+F1)+L+(F1 F2 F3 F4 F5 F6)

           

In: Electrical Engineering

Charles (age 38) has just died. He has been credited with the last 30 consecutive credits...

Charles (age 38) has just died. He has been credited with the last 30 consecutive credits of Social Security coverage in the last 30 quarters since he left school and began full-time employment. He had never worked before leaving school. Which of the following persons are eligible to receive Social Security survivor benefits as a result of Charles’s death?

1. Charles’s child, Bill, age 16

2. Charles’s child, Dawn, age 19

3. Charles’s widow, Maggie, age 38

4. Charles’s dependent mother, Betty, age 60

Group of answer choices

1 only

1, 2 and 4

1 and 2

2, 3 and 4

In: Finance

The quarterly sales (number of books sold) over the past 3 years are as shown below....

The quarterly sales (number of books sold) over the past 3 years are as shown below.

Year

Quarter

Period

Sales

1

1

1

1700

1

2

2

1000

1

3

3

2700

1

4

4

2500

2

1

5

1800

2

2

6

900

2

3

7

2900

2

4

8

2400

3

1

9

1800

3

2

10

1100

3

3

11

2900

3

4

12

2600

  1. Construct a time series plot for this data.

Paste the time series plot

  1. What type of pattern exists in the plot?
  1. You will use a regression model with dummy variables to develop an equation to account for seasonal effects in the data (here, assume there is no trend)

Set up the dummy variables in excel, run the regression model with dummy variables

Paste output of regression model with dummy variables here

  1. Write the equation of the regression with dummy variables using the regression coefficients in your regression output.
  1. Based on your model, what is the forecast for quarter1, quarter2, quarter3, quarter4 for year 4? (hint: use the regression equation for your calculations)

  1. Since the data has a seasonality with a linear trend, construct another regression model with dummy variables that also takes into consideration the linear trend. That means, include the periods as independent variables when running your regression model. Dummy variables will also be independent variable while sales will be the dependent variable.

Insert the regression output for the model here

  1. Using the coefficients or parameters generated in your regression output, construct a regression equation with dummy variables that takes into consideration the linear trend.
  1. Based on the seasonal effects in the data and linear trend, computer the quarterly forecast for the 4th year. That is, calculate sales for quarter1, quarter2, quarter3, quarter4 for year 4.

In: Statistics and Probability

Product Cutting Sewing Material Skirt 1 1 1 Dress 4 3 1 Sport Coat 6 6...

Product Cutting Sewing Material
Skirt 1 1 1
Dress 4 3 1
Sport Coat 6 6 4

The? Trim-Look Company makes several lines of? skirts, dresses, and sport coats.? Recently, a consultant suggested that the company reevaluate its South Islander line and allocate its resources to products that would maximize contribution to profits and to overhead. Each product requires the same polyester fabric and must pass through the cutting and sewing departments. The following data were collected for the study.

The cutting department has 100 hours of? capacity, sewing has 150 hours of? capacity, and 60 yards of material are available. Each skirt contributes $8 to profits and? overhead; each? dress, ?$16 and each sport? coat, $40

Let X1? = number of skirts? produced, X 2 = number of dresses? produced, X3 = number of sport coats produced.

a Specify the objective function and contraints for the problem

b. A linear programming software shows the optimal solution? as:

X1 equals=0

X2 equals=4

X3 equals=14

How much would you be willing to pay for an extra hour of cutting? time?

You would be willing to add an extra hour of cutting time if its cost were less than _____enter your response rounded to the nearest? cent Please show detail on how to set up in Solver

In: Operations Management

Check if any two intervals overlap among a given set of intervals, return true if they overlap and false if they don't.

USE JAVA

Check if any two intervals overlap among a given set of intervals, return true if they overlap and false if they don't.

Input:  arr[] = {{1, 3}, {5, 7}, {24}, {6, 8}}
Output: true
The intervals {1, 3} and {24} overlap

In: Computer Science

Please provide a timeline for Microsoft for a market development strategy Short Term Timeline 1-4 months...

Please provide a timeline for Microsoft for a market development strategy

Short Term Timeline
1-4 months
4-8 months
8-10 months
10-12 months
Long Term Timeline
1-2 years
2-3 years
3-5 years

In: Operations Management

hello! So I have this CIS assignment lab but when I try to make the code...

hello! So I have this CIS assignment lab but when I try to make the code I don't really know where to start from. My professor is very hard and he likes to see the outcomes as they are shown in the problem. Please help me! the program should be a C++ PLS

Write a program that can be used as a math helper for an elementary student. The program should display two random integer numbers that are to be added, such as:
    247
+ 129
-------

The program should wait for the students to enter the answer. If the answer is correct, a message of congratulations should be printed. If the answer is incorrect, a message should be printed showing the correct answer.

The program displays a menu allowing the user to select an addition, subtraction, multiplication, or division problem. The final selection on the menu should let the user quit the program. After the user has finished the math problem, the program should display the menu again. This process is repeated until the user chooses to quit the program.
Input Validation: If the user select an item not on the menu, display an error message and display the menu again.

Requirements:

Addition
Generate two random numbers in the range 0 - 9.

Subtraction

Generate two random numbers in the range 0 - 9.
num1 = rand() % 10;
num2 = rand() % 10;
Make sure num2 <= num1...
while (num2 > num1)
num2 = rand() % 10;

Multiplication

Generate two random numbers. The first in the range 0 - 10, the second in the range 0 - 9.

Division

Generate a single digit divisor
num2 = rand() % 9;
Generate a num1 that is a multiple of num2 so the division has no remainder. The num1 is never zero.
num1 = num2 * (rand() % 10 + 1);

All constant values must be declare as a constant variable. Use the constant variable in the calculation.
Validating the selection (1 to 5). If the selection is not in the range between 1 and 5, the program keeps asking the input until the correct selection is entered.
Comments in your program to explain the code logic and calculation.


Output sample:

Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program

Enter your choice (1-5): 1
   1
+ 2
   ---
   4

Sorry, the correct answer is 3.
Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program
Enter your choice (1-5): 7
The valid choices are 1, 2, 3, 4, and 5. Please choose: 2
    8
+ 6
    ---
    2
Congratulations! That's right.
Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program
Enter your choice (1-5): 3
     9
*   4
    ---
   36

Congratulations! That's right.
Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program
Enter your choice (1-5): 4
8 / 2 = 4
Congratulations! That's right.
Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program
Enter your choice (1-5): 4
6 / 2 = 3
Congratulations! That's right.
Menu
1. Addition problem
2. Subtraction problem
3. Multiplication problem
4. Division problem
5. Quit this program
Enter your choice (1-5): 5

"Thank you for using math helper!"

In: Computer Science

PPG is expected to earn $4 per share in one year. The market demand for the...

PPG is expected to earn $4 per share in one year. The market demand for the new product is expected to be high so PPG decides to retain 60% of its earnings in year 1, 2, and 3. The reinvestments are expected to generate 10% return. Starting from year 4, PPG will maintain an 60% dividend payout rate because the investment return is expected to decline to 5% due to increased competition from similar products. (round to two decimal places for all the answers)

a. What is the earnings growth rate for year 1 to 2, year 2 to 3, and year 3 to 4?

b. What is the long term growth rate after year 4?

c. Calculate the earnings per share for year 1, 2, 3, 4, and 5.

d. Calculate the dividend per share for year 1, 2, 3, 4, and 5.

e. If the cost of equity capital is 4%, find the current share price. f. PPG manager decides to try alternative valuation method based on multiples from the industry peers. The average forward P/E ratio (i.e., price divided by earnings in the coming year) of the same industry is 30. What is should be the per share price of PPG based on the P/E ratio?

In: Finance