Create your own programming application and give a brief description of the system.
In: Computer Science
Write a JavaScript program to read and analyze the assessment results of a unit under Node.js host environment. The assessment results are read from the keyboard. The input consists of a list of student results. Each student's result includes the student's name and his or her mark for that unit. These results must be stored in one or several arrays. The input ends when the user types "end".
Once all assessment results are read in, your program should produce a table that summarises the number of students in each grade (HD, D, C, P and N) as well as the percentage of students in each grade. Finally, display the name and mark of the best student.
After the summary table and the best student are displayed, your program prompts the user to inquire about a student's mark. For example, if the user enters the name "John", your program should display the names and marks of all students whose names contain the string "John" (ignore the case).
Your program should allow the user to keep making queries until the user types "stop".
Test and run the above program using Node.js only. Do not use a web browser to test and run your program.
Hints: you may use multiple console.logs to output the data in table-like manner. However, it would be difficulty to make the data in the table properly aligned. Alternatively, you may place the data in a JavaScript object and output the object using console.table. Eg:
(where var hd, d, c, p = number of students in each grade and hdp, dp, cp, pp = percentage of students in each grade)
var hd = ;
var d = ;
var c = ;
var p = ;
var hdp = ;
var dp = ;
var cp = ;
var pp = ;
var table = {};
table.HD = { number: hd, '%': hdp };
table.D = { number: d, '%': dp };
table.C = { number: c, '%': cp };
table.P = { number: p, '%': pp };
console.table (table);
In: Computer Science
Proof that One Time Pad (OTP) is perfectly secured under Ciphertext only attack (COA). Please explain briefly each step of the proof.
In: Computer Science
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