Computer Science

Go to the Web site of Wix, Weebly, or another provider of your choosing that allows you to create a simple e-tailer Web site for a free trial period. Create a Web site. The site should feature at least four pages, including a home page, product page, shopping cart, and contact page. Extra credit will be given for additional complexity and creativity. Prepare a word document that explains your e-commerce content and contains a link to your newly created website.

Go to the Web site of Wix, Weebly, or another provider of your choosing that allows you to create a simple e-tailer Web site for a free trial period. Create a Web site. The site should feature at least four pages, including a home page, product page, shopping cart, and contact page. Extra credit will …

Go to the Web site of Wix, Weebly, or another provider of your choosing that allows you to create a simple e-tailer Web site for a free trial period. Create a Web site. The site should feature at least four pages, including a home page, product page, shopping cart, and contact page. Extra credit will be given for additional complexity and creativity. Prepare a word document that explains your e-commerce content and contains a link to your newly created website. Read More »

The motion of a mass on a spring with a damper is given by the ordinary differential equation d2x dx dt2 dt How the solution behaves depends on the relative value of the two parameters β-b/ (2m) and ω–k /m over damped critically damped under damped 9 0.5 05 time Write a python code that asks the user for values of m, b, k, and xo, creates a plot of the system response over time, and tells the user if the system is over, under-,

EXPERT ANSWER import numpy as np import matplotlib.pyplot as plt # This code solves the ODE mx” + bx’ + kx = F0*cos(Wd*t) # m is the mass of the object in kg, b is the damping constant in Ns/m # k is the spring constant in N/m, F0 is the driving force in N, …

The motion of a mass on a spring with a damper is given by the ordinary differential equation d2x dx dt2 dt How the solution behaves depends on the relative value of the two parameters β-b/ (2m) and ω–k /m over damped critically damped under damped 9 0.5 05 time Write a python code that asks the user for values of m, b, k, and xo, creates a plot of the system response over time, and tells the user if the system is over, under-, Read More »

3. Make plots (on MATLAB or Excel) which show undamped, critically damped, underdamped and overdamped behavior. On each plot indicate the parameters used. (Feel free to use whatever parameters you like, but try to show “typical” behavior where the characteristics of each plot are distinct.) Print these plots and attach them

EXPERT ANSWER Let this be a harmonic oscillator with some damping, we have the following equation for this; , where b is the damping constant. i) For undamped case , b=0 and the solution is simple harmonic motion for m=1,b=0,k=1 we get following plot for differential equation

QUESTION 1 Bob sent Alice an encrypted message. The message consists of 3 words. In each word, Bob encoded the letters as follows: A = 01, B = 02, C = 03, …, Z = 26. The he wrote the codes next to each other to form a number that represent the word. For example, the word “WE” is encoded as: 2305 since it consists of 2 letters W=23 and E=05. After encoding, Bob encrypted each encoded word with RSA using Alice public key(pq, e) where p=100000007, q=10000019, e=13. Alice received the following 3 encrypted words from Bob: 451095483713115 767601371295748 236445298839293 She used here RSA private key (d) to decrypt the message. The first word of the message that Bob sent was: WE. Q1. What is the private key d? (enter you answer as an exact number) Q2. What is the second word of the message that Bob sent to Alice? (enter you answer as one word) Q3. What is the third word of the message that Bob sent to Alice? (enter you answer as one word)

EXPERT ANSWER

EMPLOYEE Fname Minit Lname Ssn Bdate Address SexSalary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr _start_date DEPT LOCATIONS Dnumber Dlocation PROJECT PnamePnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship

(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. (b) List the names of employees who have a dependent with the same first name as themselves. (c) For each project, find the total spent hourse by all employess (d) For each project, list …

EMPLOYEE Fname Minit Lname Ssn Bdate Address SexSalary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr _start_date DEPT LOCATIONS Dnumber Dlocation PROJECT PnamePnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name Sex Bdate Relationship Read More »

Specify the following queries on the COMPANY relational database schema EMPLOYEE Fname Minit Lname Ssn Bdate Address Se Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr start date DEPT LOCATIONS Dnumber Dlocation PROJECT number Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent name Sex Bdate Relationship(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project.

(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. (b) List the names of employees who have a dependent with the same first name as themselves. (c) For each project, find the total spent hourse by all employess (d) For each project, list …

Specify the following queries on the COMPANY relational database schema EMPLOYEE Fname Minit Lname Ssn Bdate Address Se Salary Super_ssn Dno DEPARTMENT Dname Dnumber Mgr ssn Mgr start date DEPT LOCATIONS Dnumber Dlocation PROJECT number Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent name Sex Bdate Relationship(a) Retrieve the names of employees in department 5 who work more than 10 hours per week on the ‘ProductX’ project. Read More »

Task 2 Component Models Produce ONE Component with associated interface methods. As part of your solution, illustrate various possible component composition and discuss the significance of your design. [10 marks] Task 3 Design patterns Command pattern, encapsulates a request as an object. Consider the following class diagram as the structure for the pattern: Ref: Gamma et al. Command Client Invoker .Execute Receiver Concrete Command state received -Executed +Action receiver –> Action: Enhance the class diagram you have provided, as part of Task1, to contain the Command pattern. As part of your answer modify the classes in the above structure with appropriate suitable dasses, you have defined as part your class diagram relevant to the case study. [10 marks] Task 4 Object Constraint Language (OCL) Incorporate OCL to represent the business logic, rules and constraints for the selected use case. As part of your solution include the correct syntax for pre and post conditions, navigation, and multiplicities. Produce a list of appropriate business rules and constraints. (5 marks] Case Study LH Medical Company (LAM) LHM is a London based privately owned hospital which provides healthcare to its patients. The hospital sies in-house software to manage and service is patients which they refer to as clients It is an expanding venture and needs to accommodate for processing its information globaly The practice management system is web enabled and muls platform for connectivity via web services in addition the connectivity to existing legacy systems. An enterprise document management system ensures patient documents are replicated globally and available per demand In addition to medical treatments, medicine and drugs, consultation and vaccinations are offered to Es patients with a variable additional for the company offers medical instruments to other companies other to purchase or to lease LHM records the details of its clients with possibly their ful medical history in their computer system. When a new patient requests an appointment walk in or online a treatment course begins and a practitioner is allocated to the patient. A history and previous medical records are printed showing different categories of treatments during different time intervals. Analyses are drawn in terms of any possibile allergies and previous histories. Treatments may involve many surgeons and consultants depending on its complexity The contact practitioner is responsible for estimating the costs of treatments that is agreed by the client at the start of the treatment. The duration of the treatment may be set at any time duration and may also be changed during the treatment depending on the complexity of possible operations. The final cost and completion date are recorded at the end of the treatment During a rement process, notifications may be sent to patients and other practitioners Repeat prescriptions may automatically be produced by the system of appropriate and are avalable for collection at any surgery by the patient. At any time, a practitioner may suspend or cancel the prescriptions The cost for a treatment is paid for by the client or an insurance policy provided by a number of insurers Insurance policies may have additional surcharges and costing depending on treatment types and medicines Long term treatment courses may be edited or canceled by practitioners or clients to re-start an existing treatment an additional fee is appled LHM may receive requests for specialise treatments from other hospitals or they may refer clients to other medical centres Each treatment course or service may include one or more of the following items • Operations and vaccinations • Consultations and check up . Medicine and different types of tablets Clinical reports and attached documents and history . Prescriptions and repeat Prescriptions A treatment course comprising services from other hospitals carry additional changes set by the medical service providers. All of Treatment courses may be requested by the site manager at any time

EXPERT ANSWER ANSWER : import React, {Component} from “react”; import MedicalTreatment from “./MedicalTreatment”; class MedicalTreatmentList extends Component { //used for each table render() { const headers = this.props.headers const array = this.props.array return (<table> <tr> {headers.map(header => <th style={{“text-align”: “center”}}>{header}</th>)} </tr> {array.map(val => <MedicalTreatment medical_treatment={val}/>)} </table> ) } } export default MedicalTreatmentList; MedicalTreatmentPanel.js import React …

Task 2 Component Models Produce ONE Component with associated interface methods. As part of your solution, illustrate various possible component composition and discuss the significance of your design. [10 marks] Task 3 Design patterns Command pattern, encapsulates a request as an object. Consider the following class diagram as the structure for the pattern: Ref: Gamma et al. Command Client Invoker .Execute Receiver Concrete Command state received -Executed +Action receiver –> Action: Enhance the class diagram you have provided, as part of Task1, to contain the Command pattern. As part of your answer modify the classes in the above structure with appropriate suitable dasses, you have defined as part your class diagram relevant to the case study. [10 marks] Task 4 Object Constraint Language (OCL) Incorporate OCL to represent the business logic, rules and constraints for the selected use case. As part of your solution include the correct syntax for pre and post conditions, navigation, and multiplicities. Produce a list of appropriate business rules and constraints. (5 marks] Case Study LH Medical Company (LAM) LHM is a London based privately owned hospital which provides healthcare to its patients. The hospital sies in-house software to manage and service is patients which they refer to as clients It is an expanding venture and needs to accommodate for processing its information globaly The practice management system is web enabled and muls platform for connectivity via web services in addition the connectivity to existing legacy systems. An enterprise document management system ensures patient documents are replicated globally and available per demand In addition to medical treatments, medicine and drugs, consultation and vaccinations are offered to Es patients with a variable additional for the company offers medical instruments to other companies other to purchase or to lease LHM records the details of its clients with possibly their ful medical history in their computer system. When a new patient requests an appointment walk in or online a treatment course begins and a practitioner is allocated to the patient. A history and previous medical records are printed showing different categories of treatments during different time intervals. Analyses are drawn in terms of any possibile allergies and previous histories. Treatments may involve many surgeons and consultants depending on its complexity The contact practitioner is responsible for estimating the costs of treatments that is agreed by the client at the start of the treatment. The duration of the treatment may be set at any time duration and may also be changed during the treatment depending on the complexity of possible operations. The final cost and completion date are recorded at the end of the treatment During a rement process, notifications may be sent to patients and other practitioners Repeat prescriptions may automatically be produced by the system of appropriate and are avalable for collection at any surgery by the patient. At any time, a practitioner may suspend or cancel the prescriptions The cost for a treatment is paid for by the client or an insurance policy provided by a number of insurers Insurance policies may have additional surcharges and costing depending on treatment types and medicines Long term treatment courses may be edited or canceled by practitioners or clients to re-start an existing treatment an additional fee is appled LHM may receive requests for specialise treatments from other hospitals or they may refer clients to other medical centres Each treatment course or service may include one or more of the following items • Operations and vaccinations • Consultations and check up . Medicine and different types of tablets Clinical reports and attached documents and history . Prescriptions and repeat Prescriptions A treatment course comprising services from other hospitals carry additional changes set by the medical service providers. All of Treatment courses may be requested by the site manager at any time Read More »

Instructions: 1. Write the formula and show the complete work, including the substitution steps to receive full credit for any question. Highlight the answers, for easy grading. 2. For Question 1 , show the cache and the contents (data in cache) whenever a block is added or removed from the cache. 3. For the data in cache, you DO NOT need to know the actual data in the memory, you can use the notation we used in class examples. (next point). 4. For a block of memory from address OxAD to OxAF, you can write

EXPERT ANSWER

3. Write a node express EJS application with error functionality and input validation as shown in lesson11. In this application you enter a list of grades and for output the grades are displayed in their corresponding letter grade textbox. Each grade list should also be sorted. See sample below:(40 pts) PROBLEM3 Enter Grade List: A: B: C: D: F: Enter Clear

EXPERT ANSWER This project is too large to write on this editor. githhub: https://github.com/Sscorp9412/node-ejs.git

Consider the following four-step communication protocol, which is a simplified version of a well- known security protocol, and its aim is to guarantee authentication and key exchange between a client and a server.

Consider the following four-step communication protocol, which is a simplified version of a well-known security protocol, and its aim is to guarantee authentication and key exchange between aclient and a server.(1) A -> S : A, B(2.1) S -> A : {Ts, Kab, B}Kas(2.2) S -> A : {Ts, Kab, A}Kbs(3.1) A -> B : …

Consider the following four-step communication protocol, which is a simplified version of a well- known security protocol, and its aim is to guarantee authentication and key exchange between a client and a server. Read More »