Why is it important to understand the “people side” of Enterprise Architecture?
Compare and contrast an organization and an enterprise.
How is the Organization Network Model different from the Parsons/Thompson Model of Organizations?
In: Computer Science
Write a Python function that receives a stack object s, where the items in the stack are only numbers in the set {0,1} and returns the number of 1's in the stack s. The function must satisfy the following restrictions:
For example, if the stack contains 0,0,1,1,0,1,0, the function must return 3 and the stack must still contain 0,0,1,1,0,1,0.
In: Computer Science
Draw the component diagram for an airline reservation system.
In: Computer Science
Write report on the application of an audit test in a specific system
In: Computer Science
In [12]: pd.Series([1.0,np.NaN,5.9,6])+pd.Series([3,5,2,5.6])
Out[12]: 0 4.0
1 NaN
2 7.9
3 11.6
dtype: float64
In [13]: pd.Series([1.0,25.0,5.5,6])/pd.Series([3,np.NaN,2,5.6])
Out[13]: 0 0.333333
1 NaN
2 2.750000
3 1.071429
dtype: float64
What are they trying to explain here?
That pandas returns a missing value where one of the operands is missing
That pandas treats NaN values as zero, when an operation is performed
That pandas removes all records in which one of the operands is NaN
That the + and / operations in pandas are special cases in which the NaN values are treated as floats. The rest of the mathematical operations treat NaN values as strings.
In: Computer Science
Create a scheduler that takes unlimited processes. It will ask for number of jobs, arrival time, and CPU burst time. It should use FCFS, SJF, and SRTF methods. It should also print out the gantt chart, waiting time, and turn around time for each of the processes. Please solve using Java.
In: Computer Science
Subject (DBA)
use MYSQL workbench select my guitar shop database as default schema
Question text
Problem10
Write a script that implements the following design in a database named household_chores:
Details
Solution
______ DATABASE IF EXISTS ______ ;
CREATE DATABASE household_chores CHARSET _________ ;
________ ;
______ _______ (
person_id INT PRIMARY KEY ______ ,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL
) ENGINE = InnoDB;
CREATE TABLE chores (
chore_id INT PRIMARY KEY _______
name VARCHAR(100) UNIQUE
) _______
CREATE TABLE tasks (
task_id INT PRIMARY KEY AUTO_INCREMENT,
chore_id INT,
name _______ UNIQUE,
CONSTRAINT fk_tasks_chores
_________
REFERENCES _______
) _______ = InnoDB;
CREATE TABLE assignments (
_______ INT PRIMARY KEY AUTO_INCREMENT,
person_id ______ ,
task_id INT,
_______ fk_assignments_people
_______
REFERENCES _______ ,
CONSTRAINT fk_assignments_tasks
______
_______ tasks (task_id)
_______
In: Computer Science
Q.4. A) How Data Dissemination in Vehicular Ad hoc Networks (VANETs) is achieved?
explain in detail
In: Computer Science
Using Python
Implement Recursive Selection Sort with the following recursive method.
1. Find the smallest number in the list and swaps it with the first number.
2.Ignore the first number and sort the remaining smaller list recursively.
In: Computer Science
Build a html form with the following elements. The form must be within a table structure.
• Current date: a non-editable
textbox and should be in the format as shown (e.g.
12 October 2020 Monday 05:35 PM)
• Number of weeks till end of the year: a label showing the total
number of weeks from now till 31st Dec 2020. (e.g. 17 days is 2
weeks and 3 days)
In: Computer Science
class listnodes{
int data;//first part of the node(data)
listnodes link;//second part of the node(address)
listnodes()
{
data=0;
link=null;
}
listnodes(int d,listnodes l)//10|null
{
data=d;
link=l;
}
}
class singlelinkedlist{
void display(listnodes head){
listnodes current=head;
while(current.link!=null){
System.out.print(current.data+"-->");
current=current.link;
}
System.out.print(current.data);
}
public listnodes insert(listnodes head,int data)
{
//create new node
listnodes newnode=new listnodes(data,null);
//link the newnode to the head node
newnode.link=head;
//make newnode the first node
head=newnode;
return head;//return the first node
}
//insert at a position(after or before a node)
public listnodes InsertAtPostion(listnodes head,int data,int
position){
listnodes newnode=new listnodes(data,null);
listnodes previous=head;
int count=1;
while(count<=position-1){//(count<position)
previous=previous.link;
count++;
}
// listnodess current=previous.link;
listnodes current=previous;
current=previous.link;
newnode.link=current;
previous.link=newnode;
return head;
}
public listnodes deletefirst(listnodes head){
listnodes temp=head;//rename
head=head.link;//move head
temp.link=null;//temp alone
return temp;
}
public listnodes deletelast(listnodes head){
if(head==null){
return head;
}
listnodes last=head;
listnodes previoustolast=head;
while(last.link!=null){
previoustolast=last;
last=last.link;
}
previoustolast.link=null;
return last;
}
public int length(listnodes head){
listnodes curr=head;
int c=0;
while(curr!=null){
c++;
curr=curr.link;
}
return c;
}
public boolean find(listnodes head,int searchkey){
listnodes curr=head;
while(curr!=null){
if(curr.data==searchkey)
{
return true;
}
curr=curr.link;
}
return false;
}
}
public class linkedlist {
public static void main(String[] args) {
//craete first node
listnodes head=new listnodes(10,null);
//create an object of class where all the methods are
singlelinkedlist sl=new singlelinkedlist();
//insert at postion
sl.InsertAtPostion(head, 30, 1);
//insert at front
listnodes newhead=sl.insert(head,20);
sl.display(newhead);
//delete last
System.out.println(" ");
System.out.println("Delete a node at end");
listnodes l=sl.deletelast(head);
sl.display(l);
System.out.println(" ");
//delete first
System.out.println("\nDelete a node at begining and return head:
\n");
listnodes first=sl.deletefirst(head);
sl.display(first);
System.out.println(" \n");
//find length
System.out.println("length is="+sl.length(head));
System.out.println(" ");
//Search a node
System.out.println("Search for a node");
if(sl.find(head, 10)){
System.out.println("key found");}
else
System.out.println("key not found");
}
}
ON THIS CODE
Write an application and perform the following:
-Create at least three classes such as:
1. listnode- for data and link, constructors
2. Singlelinkedlist-for method definition
3. linkedlist-for objects
-Insert a node at tail/end in a linked list.
-and display all the nodes in the list.
-Delete a node at a position in the list
In: Computer Science
Java
How to read a comma separated value file using Scanner
for example Scanner sc = new Scanner(filename);
I need to assign each value separated by a comma to different variable types.
I need a good example to know how it works and implement it in my project
Please only use Scanner to read the file
In: Computer Science
Task 6.2.1. For each publisher with more than $2000 in purchase orders, list the customer id, name, credit code, and total of the orders. Use a WHERE clause to perform the join across the five required tables.
DROP TABLE publishers;
DROP TABLE po_items;
DROP TABLE bookjobs;
DROP TABLE items;
DROP TABLE pos;
CREATE TABLE publishers (
cust_id CHAR(3) NOT NULL,
name CHAR(10),
city CHAR(10),
phone CHAR(8),
creditcode CHAR(1),
PRIMARY KEY (cust_id)
);
CREATE TABLE bookjobs (
job_id CHAR(3) NOT NULL,
cust_id CHAR(3),
job_date DATE,
descr CHAR(10),
jobtype CHAR(1),
PRIMARY KEY (job_id),
FOREIGN KEY (cust_id) REFERENCES publishers (cust_id)
);
CREATE TABLE pos (
job_id CHAR(3) NOT NULL,
po_id CHAR(3) NOT NULL,
po_date DATE,
vendor_id CHAR(3),
PRIMARY KEY (job_id, po_id),
FOREIGN KEY (job_id) REFERENCES bookjobs (job_id)
);
CREATE TABLE items (
item_id CHAR(3) NOT NULL,
descr CHAR(10),
on_hand SMALLINT,
price DECIMAL(5,2),
PRIMARY KEY (item_id)
);
CREATE TABLE po_items (
job_id CHAR(3) NOT NULL,
po_id CHAR(3) NOT NULL,
item_id CHAR(3) NOT NULL,
quantity SMALLINT,
FOREIGN KEY (job_id) REFERENCES bookjobs (job_id),
FOREIGN KEY (job_id, po_id) REFERENCES pos (job_id, po_id),
FOREIGN KEY (item_id) REFERENCES items (item_id)
);
In: Computer Science
EER diagram
Draw the EER diagram for the following systems.
Persons in an organization are employees or customers or
visitors. Employees have computers.
The IT department of the company builds all its computers from
components. Each computer
consists of several components like graphic cards, network cards,
mother boards, memory
capsules, hard discs, etc. When a component is bought from a
supplier it is given an ID number.
The finished computer is placed in a room, which may contain
several computers.
Prepare an EER diagram using only the concepts listed above, that
shows, as necessary,
entities, relationships, specializations and generalizations. Show
the most likely cardinalities
(min, max) for all relationships.
In: Computer Science