java code: adds a new regular task, delete a task , show all tasks, and show regular tasks, mark a task as important (possibly through ID), complete task, show all completed tasks, show important tasks.
I also need a UML diagram for the code
In: Computer Science
This assignment will test your knowledge and skills in C++.
In: Computer Science
Complete the C++ code
#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
struct Cell {
int val;
Cell *next;
};
int main()
{
int MAX = 10;
Cell *c = NULL;
Cell *HEAD = NULL;
srand (time(NULL));
for (int i=0; i<MAX; i++) {
// Use dynamic memory allocation to create a new Cell then initialize the
// cell value (val) to rand(). Set the next pointer to the HEAD and
// then update HEAD.
}
print_cells(HEAD);
}In: Computer Science
Please write an research paper, you will write a short research paper that sets out best practices in Linux system administration. To help you manage your paper, use the following key system administration functions:
• Physical Security
• Super user password
• Delegating Super user Tasks
• User password
• Restrict user
• Knowledge Update
• User Education
• Vulnerability Testing
• Backup and Disaster Recovery
Please use more than 300 words no copy and paste. (linux)
In: Computer Science
Consider a file with a large number of Person(id, name, birth-date) records. Assume that users frequently search this file based on a the field id to find the values of name or birthdate for people whose information is stored in the file. Moreover, assume that users rarely update current records or insert new records to the file. Which file structure, heap versus sorted, provides the fastest total running time for users’ queries over this file? Explain your answer.
In: Computer Science
Use ap tables
To test whether a table has been modified correctly as you do these exercises, you can write and run an appropriate SELECT statement. Or, when you’re using Oracle SQL Developer, you can click on a table name in the Connections window and then on the Data tab to display the data for all of the columns in the table. To refresh the data on this tab, click the Refresh button.
invoice_id
The next id in sequence (find out what this should be)
vendor_id:
32
invoice_number:
AX-014-027
invoice_date:
8/1/2008
invoice_total:
$434.58
payment_total:
$0.00
credit_total:
$0.00
terms_id:
2
invoice_due_date: 8/31/2008
payment_date:
null
In: Computer Science
Create a table book_store with columns Book_id VARCHAR(255) NOT NULL,
Book_Name VARCHAR(255) NOT NULL,
Book_genre VARCHAR(255) NOT NULL,
Status VARCHAR(255) NOT NULL,
PRIMARY KEY (Book_id)
Create a table book with columns Book_id VARCHAR(255) NOT NULL,
Book_Name VARCHAR(255) NOT NULL,
Book_release integer,
Book_price integer ,
Publisher Varchar(10),
Book_genre VARCHAR(255) NOT NULL,
PRIMARY KEY (Book_id)
CREATE TABLE price_logs with columns id INT(11) NOT NULL AUTO_INCREMENT,
Book_id VARCHAR(255) NOT NULL,
Old_Book_price DOUBLE NOT NULL,
New_Book_price DOUBLE NOT NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
updated_by varchar(30) NOT NULL,
PRIMARY KEY (id),
KEY Book (Book_id),
CONSTRAINT price_logs_ibfk_1 FOREIGN KEY (Book_id) REFERENCES Book (Book_id) ON DELETE CASCADE ON UPDATE CASCADE
4. Stored Procedure:
Return only top 3 when parameter TOP3 is passed, top 5 when TOP5 is passed else print entire book table.
DELIMITER //
CREATE PROCEDURE GetBooks( all_books varchar(10) )
BEGIN
<Write your code here >
END IF;
END // DELIMITER ;
call the procedure:
CALL GetBooks('ALL');
CALL GetBooks('TOP3');
CALL GetBooks('TOP5');
In: Computer Science
Language C++!
In part 2, you will be focusing on allowing one of the four transactions listed below to be completed by the user on one of his accounts: checking or savings. You will include defensive programming and error checking to ensure your program functions like an ATM machine would. The account details for your customer are as follows:
| Customer | Username | Password | Savings Account | Checking Account |
| Robert Brown | rbrown | blue123 | $2500.00 | $35.00 |
For this report, update the C++ program that allows the account owner to complete one of the 5 functions of the ATM:
1 – Deposit (adding money to the account)
2 – Withdrawal (removing money from the
account)
3 – Balance Inquiry (check current balance)
4 – Transfer Balance (transfer balance from one account to
another)
5 – Log Out (exits/ends the program)
After a transaction is completed, the program will update the running balance and give the customer a detailed description of the transaction. A customer cannot overdraft on their account; if they try to withdraw more money than there is, a warning will be given to the customer. Also note that the ATM doesn’t distribute or collect coins – all monetary values are in whole dollars (e.g. an integer is an acceptable variable type). Any incorrect transaction types will display an appropriate message and count as a transaction.
In: Computer Science
write a java code to implement a linked list, called CupList, to hold a list of Cups.
1.Define and write a Cup node class, called CupNode, to hold the following information about a cup:
•number (cup number)
•capacity (cup capacity in ml)
•Write a method size() that returns the number of elements in the linkedlist CupList.
•Write a method getNodeAt() that returns the reference to cup node object at a specific position given as a parameter of the method.
•Write a method, insertPos(), to insert a new CupNode object at a specific position given as a parameter of the method.
•Write a method, deletePos(), to remove the CupNode object at a specific position given as a parameter of the method.
•Write a method, swapNodes, to swap two nodes at two positions pos1 and pos2 given as parameters of the method.
Implement the Cup list using double linked list.
•Update CupNode class by adding a link to the previous node in the list. Then update the constructor of the class
•Update the CupList by adding a last attribute, to hold the reference to the last node of the list.
•Implement the following methods in CupList isEmpty(), size(), insertAtFront(), insertAtRear(), insertAt(), removeFirst(), removeLast(), removeAt().
CupNode should have a constructor and methods to manage the above information as well as the link to next node in the list.
2.Define and write the CupList class to hold objects of the class CupNode. This class should define:
a)a constructor,
b)a method isEmpty() to check if the list is empty or not,
c)a method insert() that will allow to insert a new cup node at the end of the list,
d)a method print() that will allow to print the content of the list,
e)A method getCupCapacity() that will return the capacity of a cup given its number. The method should first find out if a cup with that number is in the list.
3.Write a TestCupList class to test the class CupList. This class should have a main method in which you perform the following actions :
a)Create a CupList object,
b)Insert five to six CupNode objects into the created Cup List,
c)Print the content of your cup list,
d)Search for a given cup number in the list and print out its capacity.
In: Computer Science
Diamond Construction is an owner-managed entity with contracting
revenues of $20 million in 2020. As construction is a
labour-intensive industry, one of Diamond’s largest expense
accounts is labour and wages. You are a first-year auditor at Klein
and Partners. You have been given the following information
regarding the entity’s payroll process for hourly employees at
Diamond Construction:
1. The owner-manager is the only person who can authorize the
hiring of a new employee.
2. When a new employee is hired, the payroll clerk prepares a new
employee package that includes:
(a) safety orientation
(b) tax forms
(c) benefits plan enrolment
3. Only the payroll manager has the ability to update the employee
master list. This can only be done once the tax forms, a void
cheque with direct deposit information, and the owner’s approval
have been received. All forms need to be returned before the
payroll manager will update the payroll master list and add any new
employees.
4. Hourly employees are paid biweekly.
5. Hours worked are tracked on time cards. Supervisors fill in the
time cards for each individual day, noting the hours worked.
6. At the end of the pay period, time cards are provided to the
payroll clerk, who compiles the total hours worked and codes the
hours to the appropriate job number. Once compiled, the payroll
clerk enters the hours worked per person in the payroll
system.
7. The accounting system prepares the direct deposit information
based on the rates of pay maintained in the payroll master list
(listing of all authorized staff and approved wage rates). It also
calculates the withholding taxes.
8. This is transferred to the bank and a record of the transmission
is printed and attached to the front of the payroll run.
9. The payroll module is integrated with the general ledger. The
payroll clerk prepares and posts the journal entry to the payroll
expense accounts.
10. Remittance advices are given to the supervisors for
distribution.
11. If an employee is terminated, Diamond just stops paying them as
they no longer have time cards submitted.
12. When an employee has been promoted or their job classification
has changed, the supervisor will verbally communicate this to the
payroll manager, who will then update the payroll master file.
Therefore, source documentation in employee files will only relate
to an employee’s original job classification. The rationale for
this was that most job classification changes would only result in
an additional dollar or two per hour paid to the employee.
Which of the following are control strengths with the payroll process?
The payroll manager has the ability to update the employee master list once the completed paperwork is received.
Supervisors fill in the time cards for each individual day, noting the hours worked and initialling each of the time cards.
The payroll clerk, who compiles the total hours worked and codes the hours to the appropriate job number, enters the hours worked per person in the payroll system.
All employees are on direct deposit.
The accounting system calculates the wages, withdrawing taxes.
The payroll module is integrated with the general ledger.
If an employee is terminated, Diamond just stops paying them as they no longer have time cards submitted.
When an employee has been promoted or their job classification has changed, the supervisor will verbally communicate this to the payroll manager, who will then update the payroll master file.
Which of the following tests of controls should be performed for Diamond Construction?
Compare monthly figures to expectations.
Take a sample of employees and compare to the employee files to ensure they exist.
Select a sample of time cards and review for the supervisor’s initials.
Examine termination notices in payroll department.
Take a sample of payroll journal entries and ensure they are posted and posted correctly.
Witness distribution of payroll remittance advices.
Examine evidence of the preparation and use of batch totals.
Test the system using a sample of hours and ensure it is calculating all items correctly.
In: Accounting