Assignment < Need to put the code into a word file and upload it to UMMOODLE!< The purpose of this exercise set is to practice:< writing a simple python program Write a program that prints the results of addition of two polynomials. < For instance, the first polynomials x² + 5x, which can be expressed as [0, 5, 1]; the second polynomials -x³ - 2x² + 3 can be presented as [3, 0, -2, -1].< The addition of two polynomials is -x³x² + 5x +3, can be printed as [3, 5,-1,-1]. Example: (user input is shown in Italic) < Input: please input the first poly, low order in front. 0 5 14 please input the second poly, low order in front. 3 0 -2 -1< Output:< The addition result is 3, 5, -1, -1 <
Q: For this reason, it's almost hard to keep CPU and memory performance and bus and peripheral device…
A: Variables are used to store data when programming in any language. Variables are just value-storing…
Q: Explain in details Method Overloading and Method Overriding with examples, in java.
A: Method overloading increases the readability of the program.
Q: The capacity to communicate wirelessly unites and distinguishes the current generation of mobile…
A: Mobile communication: One kind of mobile communication is the mobile phone, which is also known by…
Q: Write a brief summary of the Working with Data lessons. As an academic writing style, show your…
A: Answer
Q: What is the sum of the following octal numbers? 143 + 765 + 246?
A: Here is the solution about the octal numbers:
Q: Find the error in the following Fortran program Dimension A(10) Data A/2, 7, 8, -4, -6, 10, 19, 3,…
A: Need to find out error of given program. Data A have 10 values but in both do loop I execute 12 time…
Q: What is data encapsulation, and why would you use it?
A: Given: Encapsulation is the collection of data into a single entity. It's a technique that connects…
Q: He all the doctors in the district with medical samples come into called on Non of the others broke…
A: The first answer is He called on all the doctors in the district with medical samples. The reason…
Q: Name at least six disciplines that are considered to be foundational to the subject of artificial…
A: The solution to the given question is: Introduction - " Artificial Intelligence - AI is a branch of…
Q: What's the difference between dynamic and non-dynamic memory, and how do you use it?
A: Memory allocation is a cycle by which computer programs and services are assigned out with physical…
Q: Examine the following while loops and determine the value of ires at the end of each of the loops,…
A: Given Code: Editable Source Code: ires = 1;number_of_times = 0;while mod(ires, 15) ~= 0 ires =…
Q: What is the breadth of Amazon Web Services' application in the information system?
A: In the given question the breadth of amazon web services involvement in information systems:…
Q: Decrypt the message MAXLJGTEAX which was encrypted using the affine cipher: f(p) = (5p+6) mod 26
A: The answer is
Q: What topic can we apply in division algorithm in real life ? and why
A:
Q: Explain the need of TCP and UDP for HTTP and DNS, respectively.
A: We are going to understand the need of using TCP for HTTP and UDP for DNS.
Q: What distinguishes the configuration of software products from other kinds of configuration? Are…
A: Configuration of Software: The process of modifying a product to match the needs of a customer is…
Q: It is debatable whether or not corporations should outsource all technical requirements to software…
A: Given: To achieve some tasks, an organization using rethinking enlists the support of non-affiliated…
Q: Discuss how data mining became part of the natural evolution of information technology.
A: Solution: Data Mining Companies utilise data mining to turn raw data into meaningful information.…
Q: When is it permissible to combine two select statements from the same table if they are union…
A: Select statement: The SELECT statement is used to select data from a database. The data returned is…
Q: When a child process utilizes unnamed pipes to read the parent's message buffer, what happens…
A: The answer is
Q: What distinguishes the software development process from software modeling? Describe how one aids…
A: Software Development Process: A software development process is a method of separating software…
Q: JAVA Using interfaces we can specify similar behaviors for possibly disparate classes.…
A: Below is the code:
Q: Explain the characteristics of Ubuntu OS in terms of server operating systems.
A: The above question that is characterstics of ubuntu os in terms of server operating system is…
Q: Are operating systems designed to do one thing or another?
A: According to the question operating system are the important thing to makes the user friendly…
Q: What are some of the reasons you feel that website hacking is a problem?
A: Encryption: There are a lot of reasons why hackers attack websites. Hacked accounts were created for…
Q: Explain how the ACID paradigm of database architecture may be applied to two non-financial examples.
A: The term ACID refers to the four important qualities of a transaction in transaction processing:…
Q: When should a firm utilize PaaS and when should they consider IaaS, according to you? Why?
A: Introduction: When should a firm utilize PaaS and when should they consider IaaS, according to you?…
Q: How can you tell whether the introduction of a new system has a negative impact on the efficiency of…
A:
Q: What does "The values of exponent term B are continuous rather than discrete" indicate in the…
A:
Q: Include some of the choices to be taken, the proper business model, payment alternatives, and the…
A:
Q: Name at least six disciplines that are considered to be foundational to the subject of artificial…
A: Disciplines that gave rise to AI: PhilosophyLogic/MathematicsComputationPsych/Cog Sci…
Q: Two endpoints are connected by a single link of rate R = 56kbps and the propagation speed along the…
A: The answer is
Q: What are three ways that Excel may make your life simpler, given that you've said that Microsoft…
A:
Q: Do you know how host software firewalls are used most often? Explain
A: Given: Host-based firewalls are pieces of software that run on a single computer or device connected…
Q: What kind of calculations are expected to be conducted entirely by human-directed artificial…
A: Introduction: So, AI will change the world later this century, right? For example, I believe a…
Q: How would you explain the difference in adoption speed for the telephone and the Internet?
A: Introduction: Internet access is the process of people or businesses connecting to the internet via…
Q: Jhon and Tom earned money from their first drug contract. There is an N type of dollar such as A1,…
A: Input/Output Explanation: First line will contain T, number of testcases. Then the testcases…
Q: What exactly is Microsoft Excel? What are Microsoft Excel's top te
A: The answer is
Q: What problems could develop if one group makes a modification that affects another group using the…
A: The answer is
Q: planning and develop
A: In fact, the following are a few techniques for adopting e-commerce via the Internet:
Q: What is the significance and function of the central processing unit (CPU)? Explain your point of…
A: Your answer is given below. Introduction :- The Central Processing Unit, or CPU, is an acronym…
Q: Symmetric multiprocessors are what?
A: Symmetric Multiprocessors Symmetric multiprocessors include two or more identical processors…
Q: What exactly is the content switch?
A: answer is
Q: Jhon and Tom earned money from their first drug contract. There is an N type of dollar such as A1,…
A: Algorithm: First line will contain T, number of testcases. Then the testcases follow. Each testcase…
Q: What are some effective strategies for preventing data loss?
A: Data loss occurs when vital or sensitive information stored on a computer is compromised due to…
Q: What distinguishes the software development process from software modeling? Describe how one aids…
A: Process of Software Development: In software engineering, a software development process is a method…
Q: Based on their respective features and the circumstances in which they may be utilised as personal…
A: Introduction: In Microsoft Excel, create a spreadsheet. Microsoft Excel is utilized to display the…
Q: should th
A: Platform as a Service (PaaS) enables software programs to utilize cloud services. It gives a very…
Q: Write a python script (q2.py) that prints 20 unique expressions of using strings and string methods.
A: The solution for the above-given question is given below:
Q: The functionality of Network APIs should be described in brief terms
A: The Network API gives capacities to arrange calls by means of HTTP or HTTPS. The Network API…
Step by step
Solved in 4 steps with 2 images
- Create a new javascript file called cart.js and make a product object for each of your products and store it in a products array when the script loads. Create an empty array to store the items added to the cart. Program the "add to cart button" to take the product id, finds the product object in the products array and adds it to the items added to cart array. Program the "remove from cart button" to take the product id and remove the project object from the items purchased array. Existing code: <!DOCTYPE html><html> <head> <div id="product1" class="card"><img src="img/clorox.jpg"><h1>Clorox</h1><p class="price">$20.00</p><p>Household Cleaner</p><p><button id="product1Btn1">Add to Cart</button></p><p><button id="product1Btn2">Remove from Cart</button></p></div> <div id="product2" class="card"><img src="img/oxiclean.jpg"><h1>Oxiclean</h1><p…Create an Eclipse Java project that reads in the names and postal (Zip) code data for individuals from the attached "employee-2.txt Download employee-2.txt" file (note: you need to add the text file with the exact file name to the root "project folder" of your Eclipse Java project, not the "src" folder). In the attached text file, edit the last row manually to add your own First Name, Last Name and Zip code. Your project should read in the employee data provided in the text file and store the data into a LinkedList<Employee> data structure, for which, you need to write a Java class named "Employee.java" that defines a first name (type String), a last name (type String), a postal code (type int or String), an Employee "constructor" and a toString() method. You may optionally define "setters" and "getters" methods in the "Employee.java" class. You should write a separate driver class named "EmployeeListDriver.java" to implement the main() method, the main() method is where you…Write the whole codes for different files(html, javascript, php, database)!!! Write a JavaScript program for the below Form-1.html(shown in the first picture). When the user clicks the Submit button, the page should display a message box and after clicking the OK button of the message box, the form should be submitted to a PHP page. Write a PHP program that should save the data from the Form-1.html in Database. There should be least 4 records. Write a PHP program that should display all the records from the database. The data must be displayed in the table, shown in the second picture, format.
- Please help 2. The idea is to create a file upload form where we can define the final file name ourselves. This file name is taken from the input text box which is also in the form. Once submitted, immediately display the file in a web browser using the <img> tag. Please create this simple code using laravel, the image below is the desired final look.Here is the HTML file given. Write a validation code for each of the boxes in external javascript file. The critirias are: all boxes must not be empty the name box must contain only alphabets the password box the phone number must contain only numbers the registration number box must contain only numbers and alphabets (not symbols) create external javascript code called validationfunctions.js and put all these requirements there, so you will have 2 files (html and javascript) <html><head><title>Validation Form Practice</title><script src="validationfunctions.js"></script></head><body onload='document.form1.text1.focus()'><h2>Vlidation Form</h2><form name="form1" action="#" onsubmit="required()"> Name: <font color="red"> * </font> <br> <input type='text' name ='text1'/> <br> Password: <font color="red"> * </font> <br><input type='password' name ='pass1'/>…You have been provided with a QTCreator project called Project13 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp file. You have been provided with file named Data.txt. Data.txt contains information about students. Each line contains the information for one student. The student information is seperated by a comma and is in the following format : Name,Surname,Email,Age,StudentNumberNotice how the first line in the file contains a heading. This line should be ignored by your code when processing the file. You may not modify the Data.txt file. Write the code for the function named splitSingleStudent ( string[],string ) . splitSingleStudent receives an array and a signle line from the file as parameter. The function then splits the line received from the file and loads the array parameter with the correct values. The array parameter should be loaded as follows :Index 1 : Name Index 2 : Surname Index 3 : Email Index 4 : Age In the main function open…
- JavaScript Assignment For this assignment you are only to use external CSS and JavaScript. This assignment shouldhave no templates or frameworks. The Fruits to be used are Apple, Orange, Pear, and Pineapple. Write the code in a way that allows it to pull the images from a folder inside the main folder named “images." The file names are as follows Apple.png, Orange.png, Pear.png, and Pineapple.png. You are to create a child's game. The game will have a title in the head of the boilerplate withyour name. The name of the game will be Fruit Game which will need to be included in theheader of the browser using a h1 element. You will display an image of a fruit. Under the imagethere will be room for text for the name of the fruit but not displayed at the start. You will havefour buttons with names for the fruits available. When the button with the fruit name is clickedthe name of the fruit will appear under the image of the fruit. If the button and the name of thefruit is the same then you…Write Octave commands in the script file that you just created to do the following:1. Create a row vector r1 with six columns, where each of its elements is a 1.2. Create a row vector r2 with six columns, where each of its elements is a 0.3. Create a row vector r3 with six columns, where each of its elements is a random integer value betweenYou have been provided with a QTCreator project called Project13 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp file. You have been provided with file named Data.txt. Data.txt contains information about students. Each line contains the information for one student. The student information is seperated by a comma and is in the following format : Name,Surname,Email,Age,StudentNumber Notice how the first line in the file contains a heading. This line should be ignored by your code when processing the file. You may not modify the Data.txt file. Write the code for the function named splitSingleStudent ( string[],string ) . splitSingleStudent receives an array and a signle line from the file as parameter. The function then splits the line received from the file and loads the array parameter with the correct values. The array parameter should be loaded as follows : Index 1 : Name Index 2 : Surname Index 3 : Email Index 4 : Age In the main function…
- Create a fun game kind of a program. Use PHP to write a service that could be savedin a file animation.php, that outputs a single frame from a student's textnimation.txtfile. Each student’s animation data is stored on the web server with your PHP file, in astudent’s directory within subdirectories that have the same names as the students.For example, student Jaden animation data is stored instudents/jaden/textanimation.txt. Suppose that the contents of that file are thoseshown below.• The service is sent a request parameter named student that corresponds to astudent whose animation data should be retrieved.• The service also accepts an optional second parameter named framespecifying which frame of the animation to output, 0-based.• If this parameter is not passed, frame 0 (the first frame) is used.• Recall that frames are separated by a line of =====.So for example, if your web service is contacted using the URL ofanimation.php?student=jaden&frame=2, the following should be the…Make a html file and a js file Make a code that takes a square of a number. HTML file: Make a text box where you can put any number in, labeled as "Number" with a click button underneath. Underneath have "Square = ___ " to calculate the square of any number inserted. Use a js file with "compute()" to calculate the square and link it to the HTML file.create an Android application to display a contact list using RecyclerView. The details of the java files you need to create are described below. The first Java file should contain a data field in this case: Person_name, Phone_number. The second java file contains ContactViewHolder. The third java file contains the ContactAdapter. The MainActivity java file will contain some sample data to display.