Variant of Stack Data Structure with MAX Primitive1. [20%] Implement a variant of the stack data structure, so that on top of the three primitives, PUSH, POP, and TOP, there is now a new primitive, MAX. ⢠MAX(S): returns the maximum key currently in the stack S. It is assumed that the data type of the keys supports comparisons (i.e., â?â). Other than that, we do not know anything about th...
Program 1: Calculating the area of a rectangleThis assignment (assignment 2) is worth 50% of the overall marks for the subject. The following programs should be completed and documented and submitted as a portfolio, with the front sheet supplied filled in. The documentation supplied with each program is explained in the section labeled “How to Document Shell Scripts”, on page 3 of this document. All the programs should be written...
Task 1: The Philosopher ClassThere are five files that come with the assignment. A soft copy of the code is available to download from the course web site. This time the source code is barely implemented (though compiles andruns). You need to complete its implementation. Files distributed with the assignment requirements: common/BaseThread.java – unchanged DiningPhilosophers.java ? the main() Philosopher.java ? extends f...
Step 1Characterise and critically evaluate high performance computing based architectures and their suitability for given applications.Implement and execute applications using shared and distributed memory programming paradigms.Describe and critically discuss the roles and applications of cloud and grid computing. As you implement each of the following 4 steps make sure that you retain and do not overwrite previous versions of your solutions....
Task Explain the concepts and procedures associated with Web and database attacks by addressing the following: Explain when and why the initial penetration test should be performed on a Web server. Explain the similarities and differences between a cross-site scripting attack and a reflective cross-site scripting attack. Identify the Web application attacks that are most likely to compromise confidentiality. Describe techniques to mitigate and r...
Task I. Project Organization This project will study the coordination of multiple threads using semaphores. You should do the following pieces to complete your project. Each piece is explained below: •Design 40 points •Code 25 points •Output 25 points •Summary 10 points Design The design should consist of two things: (1) a list of every semaphore, its purpose, and its initial value, and (...
Task Introduction Many films and televisions shows involve literal or metaphorical mazes and the disorienting complexity of navigating them. For example, in the real world, tens of thousands of robots plan efficient delivery routes through Amazon’s vast labyrinthine warehouses. In addition, the given maze involves literal or metaphorical portals that enable teleportation between distant locations, as the video games. (In the real world,...
Coding RequirementsYou coded a program using the formula below to compute what the money will be worth at the end of the term. A sample output solution is given below. Compound interest arises when interest is added to the principle, so that from that moment on, the interest that has been added also itself earns interest. This addition of interest to the principal is called compounding. A bank account, for example, may have its interest ...
Task: Assessment overviewThis portfolio is split up into 4 separate tasks which will test your knowledge of advanced multithreading and GPGPU programming using CUDA. Each task should be zipped up into a single zip folder containing all C/CUDA and resource files for the submission on Canvas. All questions below1. Matrix Multiplication using multithreadingYou will create a matrix multiplication program which uses multithreading. Matrices are...
Submission InstructionsIn this assignment you will be writing a (vastly simplifed) inventory system for a store / warehouse (like Ikea or Costco) using C++. This store will sell a number of Products. Each product has a StoreLocation. These locations are in the main store area where shoppers shop. Each product may have zero or more overstock locations in the warehouse. These are stored on skids (Figure 1) of all the same Product wrapped in plas...
Task: IntroductionThis coursework assignment is designed to give you practice in applying all of the main programming concepts you’ve seen in the module so far to solve a larger and more complex problem. The assignment will be marked out of 50 and carries 25% of the module marks (it is 100% of assessment item 2 of the module.)Your taskYour task is to write a program to display patchwork samples, an example of which is illustrated below. The ac...
Description of the ScenarioStudents are required to read through the following scenario and design and build a data warehouse that can suitably reflect on the needs of the problem. Traditional water quality monitoring involves three steps, namely water sampling periodically, testing and investigation. This technique can be expensive, human centric, time consuming, and only provides data at the point of sampling. Water samples are taken back...
This Assignment assesses the following module Learning Outcomes (from Definitive Module Document): Have a knowledge and deep understanding of a variety of AL techniques and methods applicable across domains ranging from molecular computational biology and evolution of agents to behaviour-oriented and social robotics. In this project you must program a simulated robot in Unity to autonomously navigate a track with a range of obstacles. You ...
Problem descriptionWe design pressure vessels as containers for gasses to liquids. These vessels can also maintain a pressure difference between the inside and the outside. They have many uses, from the boiler in your home to the diving cylinders. You can learn more about them in the following: There are four variables that describe a pressure vessel: shell thickness z1, head thickness z2, inner radius x3 and the length of the vessel excludi...
QuestionsRequired Tasks:In this part of the assignment, a server implementation, in C using WinSock API (Application Program Interface), is provided. For MacOS Users – please use the alternative, explained in the labs! Please note that MacOS does not support WinSock API and Putty. You are required to test out its functionality using a Telnet client, understand how the program works, then carry out the required tasks, according to the spe...