Q#1: Take a real-world scenario and Implement it in
C++ program. Your program
should consist of the following:
1. Constructors
2. Pointers
3. Private and Public keywords
4. Reference by return
5. Const keyword
6. Passing Object as argument
In: Computer Science
In: Psychology
IN PYTHON 3 LANGUAGE
Define a recursive function named immutify; it is passed any data structure that contains int, str, tuple, list, set, frozenset, and dict values (including nested versions of any of these data structures as an argument). It returns an immutable equivalent data structure (one that could be used for values in a set or keys in a dict). The types int, str, and frozenset are already immutable. Convert a set to a frozenset; convert all the values in a tuple to be their immutable equivalents, in the same order); convert a list to a tuple (with immutable equivalents of its values, in the same order); convert a dict to tuple of 2-tuples (see the association tuple in question 2) but here with the 2-tuples sorted by the dict’s keys. If immutify ever encounters a value of another type (e.g., float) it should raise a TypeError exception.
The following call (with many mutable data structures)
Example 1:
immutify( {'b' : [1,2], 'a' : {'ab': {1,2}, 'aa' : (1,2)}} )
returns the immutable data structure
(('a', (('aa', (1, 2)), ('ab', frozenset({1, 2})))), ('b', (1, 2)))
Example 2:
immutify( [{1,2}, {3,frozenset([4,5])}, {6,7}])
Returns
(frozenset({1, 2}), frozenset({3, frozenset({4, 5})}),
frozenset({6, 7}))
In: Computer Science
Arrange these elements in order of increasing atomic size: Al, B, C, K, Na.
In: Chemistry
In: Operations Management
Please use R studio
Dataset: IBM HR Analytics Employee Attrition & Performance dataset (you can download the dataset from kaggle)
|
Name |
Description |
|
ATTRITION |
Employee leaving the company (0=no, 1=yes) |
|
BUSINESS TRAVEL |
(1=No Travel, 2=Travel Frequently, 3=Tavel Rarely) |
|
DEPARTMENT |
(1=HR, 2=R&D, 3=Sales) |
|
EDUCATION FIELD |
(1=HR, 2=LIFE SCIENCES, 3=MARKETING, 4=MEDICAL SCIENCES, 5=OTHERS, 6= TEHCNICAL) |
|
GENDER |
(1=FEMALE, 0=MALE) |
|
JOB ROLE |
(1=HC REP, 2=HR, 3=LAB TECHNICIAN, 4=MANAGER, 5= MANAGING DIRECTOR, 6= REASEARCH DIRECTOR, 7= RESEARCH SCIENTIST, 8=SALES EXECUTIEVE, 9= SALES REPRESENTATIVE) |
|
MARITAL STATUS |
(1=DIVORCED, 2=MARRIED, 3=SINGLE) |
|
OVER 18 |
(1=YES, 2=NO) |
|
OVERTIME |
(0=NO, 1=YES) |
The Variable Attrition is what we plan to use as our dependent variable. The variable contains a Yes if they stay with IBM and ‘No’ if they do not. We need to create this into a binary dummy variable with 0 if they do not stay with IBM (Attrition = ‘No’) and 1 if they do stay with IBM (Attrition = ‘Yes’). This will also need to be done to the variable Gender and OverTime. Gender we can assign “Male” to zero and “Female” to one. For OverTime we will assign 0 for “No” and 1 for “Yes”.
Create Pivot tables instead of correlation matrixes for categorical variables and do the data analysis.
For data analysis:
Describe the data using the techniques above (e.g. “We can see in this scatter plot that there is a positive correlation between the number of hours in which the patient exercised per week and his/her weight loss.”). About one page without the images.
Based on these observations, draw some insights. (e.g. “We believe the patient is burning calories when exercising, thus contributing to the loss of weight”). About one page.
State actionable experiments based upon your insights. (e.g. “We will use multiple regression that includes hours exercised as an explanatory variable to model weight loss. We expect…”)
In: Computer Science
Considering the following different search trees, binary search trees, AVL trees, red-black trees, and others. Compare their advantages and disadvantages, running times, etc
In: Computer Science
In: Computer Science
The primary role citric acid cycle is to collect high energy electrons from the oxidation of carbons in the form of NADH and FADH2. If the electron transport chain is inhibited, would you expect the citric acid cycle to be more active or less active? Explain your answer.
In: Biology
In: Operations Management
Higher Education is in crisis? How can we be positive leaders amidst the chaos we see at our institutions? Is it unrealistic or just challenging? Does it take a miracle or just a change in mindset?
In: Psychology
USING JAVA, PLEASE MAKE THIS AS SIMPLE AS POSSIBLE, THIS IS AN INTRODUCTORY JAVA COURSE
1. Design and implement a class called PairOfDice.
The class should include:
a. A non-default constructor, i.e. with parameters
b. A setter method for each instance data
c. A getter method for each instance data
d. A method roll() that rolls both dice
e. A toString() method that returns a string containing the colors of both dice, eg "Colors of both dice: Red,Blue "
f. A method pairSum that returns the current sum of the two die values. (in PairOfDice.java)
2. Write an application TestPairDice that uses the PairOfDice class to create a pair of dice. The application prints to the screen the sum of their face values. The program then rolls the pair of dice and prints to the screen the new sum of their face and the colors of both dice. (TestPairOfDice.java)
SAMPLE OUTPUT: Sum of face values before roll: 7
Sum of face values after roll: 6
Color of both dice: Red,Blue
In: Computer Science
In: Computer Science
13. In your opinion, what are the three more important resources to manage in an organization? Explain in detail the logic of your answer.
14. Concepts such as ‘socio-technology,’ ‘technology-structure,’ ‘technology-system;’ what do they have in common? Provide examples
15. Provide an example of Competitive Advantage and of Comparative Advantage. Explain the difference between them.
In: Operations Management
Q1. a. Illustrate mathematically how to convert the following Binary number into Decimal Number system.
101112 = ?10
(11.10)2= ?10
(100011.011)2 = ?10
______________________________
b. Illustrate mathematically how to convert following decimal number into binary Number system.
(345)10 = ?2
(45.25)10 = ?2
______________________________
c. Illustrate mathematically how to convert the following Octal number into Decimal Number system.
278 = ?10
308 = ?10
______________________________
d. Illustrate mathematically how to convert the following Hexadecimal number into Decimal Number system.
(2F)16 = ?10
(BCC)16 = ?10
(2F. A2)16 = ?10
______________________________
e. Illustrate mathematically how to convert following Binary number into Octal Number system.
101012 = ?8
(11100.11)2= ?8
______________________________
f. Illustrate mathematically how to convert the following Binary number into Hexadecimal Number system.
101012 = ?16
(11100.11)2= ?16
(100011.011)2 = ?16
_______________________________
g. Solve and write the result of sum for given hexadecimal number
B D 5
+ A A B
--------------------
A D 5
+ F E C
--------------------
Solve and write the result of subtraction for given hexadecimal number
B D 5
- A A B
--------------------
B C 9
- E F C
--------------------
- A F 4
A B C
--------------------
In: Computer Science