QUESTION 1 To specify the location of an image we use: O the caddress> tag O the href attribute of the mg tag O the sr tag O the src attribute of the mg tag QUESTION 2 What are the dimensions (rows x columns) of this table table>trad 100<< qa200<> 300< ? O 3X2 O 2x2 O 3X1 O 2x1 QUESTION 3 What will be the output of the following JavaScript code?
Q: Assume there is a rooted tree A. Write a recursive program that returns both the number of nodes(N) ...
A: The idea is to traverse the tree in postorder. If the current node is full, we increment result by 1...
Q: ortar business
A: given - Business-to-consumer (B2C) model applies to businesses that sell products or services direct...
Q: How may modifications to permission, authentication, and roles aid in mitigating and dealing with th...
A: Enterprise System: In this, you must create two pages of chart, and in that chart, you must ensure t...
Q: creenshot a webpage which has a feature that addresses accessibility issue of the user. At the bott...
A: We must take a screenshot of a webpage with a feature that addresses a user's accessibility concern ...
Q: The user enters information of a student (ID, first, and last name). The user has the option to dele...
A: # code to delete a particular # data from a file # open file in read mode with open("sampl...
Q: Which of the many network topologies would you recommend?
A: Below find the solution
Q: In data integrity, mention four main considerations that are put in place to validate collar data
A: four main considerations that are put in place to validate collar data In data integrity are
Q: Q1) Write a C++ program to compute the value of S using function, where the value of S(x, n)= X/2! -...
A: below is the code for Q 1 according to policy mention Q 2 and Q 3 in different questions
Q: Computer science: What future challenges could there be in training craft brewery consumers to use t...
A: Introduction: Challenges to a brewing machine: The term “craft brewery” usually refers to a brewery ...
Q: In JAVA language, WAP to input a multi-word string and remove all whitespaces from the string. Print...
A: Write a program in JAVA language to input a multi-word string and remove all whitespaces from the st...
Q: def validate_priority(priority): ''' validate the "priority" parameter Returns True if "...
A: 1. In your Program you did call the function and also did not print the result. 2. while checking if...
Q: esolving the issue at hand (for example, specify the systems develop
A: Below the Approach to resolving the issue at hand
Q: In a few words, describe the instruction pointer
A: Lets see the solution in the next steps
Q: As a systems analyst, explain the aspects you must examine while building system architecture.
A: Introduction: Integrity and Consistency: When creating a dependable and fault-tolerant architecture,...
Q: y is broken down into 1000, 500, 100, 50, 20, 10, 5 and 1 peso coin. Write a PHP script that would a...
A: As per guidelines, we can solve only one question at a time. Hence resubmit the question. 1) Code:...
Q: In a few words, describe the calling convention
A: A calling convention manages how functions interact on a particular architecture and operating syste...
Q: Explain how string functions are used to handle C-strings.
A: Introduction: the question is about how string functions are used to handle C-strings. and here is t...
Q: Explain how an avalanche effect plays a role in providing improved security by using a data encrypti...
A: Introduction: When only one bit in the key or plaintext is modified, the Avalanche effect affects th...
Q: What is the function InputBox used for?
A: Lets see the function of InputBox
Q: Sorting algorithms are incredibly important and used by us on a daily basis. In this course we have ...
A: In questions wuth many parts,we must answer three.
Q: Describe a case in which a user's total denial of a service (i.e., the user receives no answer from ...
A: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unava...
Q: Problem 7: Use Wang's algorithm to answer whether or not Mary will go to the party, given that: If B...
A: If Bob goes to the party (B) then Anna goes to the party (A) So, P1:B->A and P1≡¬B∨A Truth Table:...
Q: lours are provid
A: given - Step-by-step instructions for converting RGB to HIS colours are provided.
Q: What is the significance of the von Neumann bottleneck?
A: Introduction the question is about the significance of the von Neumann bottleneck and here is the s...
Q: What is the decimal representation of 27?
A: Introduction the question is about the decimal value and here is the solution in the next step.
Q: Which of the following tests is the best choice for your second test?
A: Linear Probing: Linear probing is a method of resolving collisions in hash tables, which are data st...
Q: In a few words, describe the instruction pointer.
A: After acquiring an instruction, the instruction pointer is incremented, and it now contains the memo...
Q: ers from th
A: Opening a FileIt is done using the open() function. No module is required to be imported for this fu...
Q: What do you think the boundaries of an organization's information security are? When security rules ...
A: Introduction: Organizations may use information security to secure both digital and analog data (Inf...
Q: What further quandaries do you see emerging when modern technology and/or the epidemic continue to a...
A: Introduction: The Innovators Dilemma is perhaps the most important book on how innovation occurs, an...
Q: Give two reasons why you think it's important for the computer. A programmer is a person who examine...
A: Below the reasons why you think its important for the computer
Q: I created a dynamic calendar in Excel, but I'm not sure how to make the date on the calendar appear ...
A: Introduction: A dynamic academic calendar allows for greater flexibility than a static milestone cal...
Q: Question 1 Using below dataset. Please calculate the entropy of the whole dataset. The number will b...
A: Answer=The entropy is 0.41
Q: 1) Write, compile, and run a C++ program that specifies three one-dimensional arrays named price, a...
A: 1. declare price, amount, total using a single dimensional array 2. Using for loop get values of pri...
Q: Question 14 Hand-drawn engineering diagrams in a filing cabinet for submarine tubing are an example ...
A: Solution:
Q: Enumerate some action plans that will handle election related garbage
A: There various kinds of garbage produced during election from banner wastage to the electronic media...
Q: Given information: # A set of constants, each representing a list index for station information. ID...
A: Introduction Given information: # A set of constants, each representing a list index for station inf...
Q: Please implement in Haskell. The function should return a list of lists that is infinite. It should ...
A: First, I want to explain about Haskell after that I will write the code: Haskell is a completely fun...
Q: The drivers in android are developed in а. С++ O b. Java O c. Linux
A: b. Java
Q: Given the following Maxterm Expansion. Plot the terms on a suitable K-Map and then (a) fi out the es...
A: Given:- F(a, b, c) = TM(0, 2, 3, 5, 7) We have to draw K-map for this and find Essential p...
Q: The layout in which widgets are arranged in a row is called a. Table Layout b. Linear Layout Vertica...
A: c.Linear Layout horinzontal
Q: Why is there a header length field in the TCP header but not in the UDP header?
A: Introduction: TCP is a connection-oriented protocol, whereas UDP is a connection-independent protoco...
Q: Explain the graphical intages coding system (nith ditercent resalution techniques) in a computer sys...
A: Introduction: The coding system aids in the storing of data.Many applications necessitate the use of...
Q: Year 0 Year 1 Year 2 Year 3 Bలe $0 $100 $200 $300 PV of Benefit $0 (1) (2) (3) NPV of all $0 (4) (5)...
A: Answer is given below-
Q: ovided data.
A: The graphical user (connecting point/way of interacting with something), developed in the late 1970s...
Q: MATLAB ASSIGNMENT. Please help me to solve these question. I need it asap. Thank you % Create a cel...
A: Given: We need to explain about MATLAB cell array and need to create a cell array with given condit...
Q: Construct the NFA that will accept the string of (dcļac)* dc (gg|bb)*dc.
A: Below is the answer to above question. I hope this will meet your requirements.
Q: Which of the following best describe the idea of limited direct execution? It is the virtual a...
A: A central processing unit is also called a main processor or just processor is the electronic circui...
Q: Write a program to find the average of three scores. Use one class for each score.
A: Use a class to store each score in such a way that each class has an instance variable to represent ...
Q: Describe how Web caching can shorten the time it takes to get a requested object. Will Web caching l...
A: Introduction: Web caching is defined as the temporary storage of data such as photos, video files, a...
Step by step
Solved in 2 steps
- Imagine that the HTML file for your web page project includes a div element with the id value “cupcake” and you are writing a function to display and rearrange some images within that element. What JavaScript statement would you place in the blank to move the last image within the ccFrostingelement to the beginning of the line and shift the other images one position toward the end? let frostingFiles = ["pinkFr.jpg", "blueFr.jpg", "chocFr.jpg"] let frostingCount = frostingFiles.length; function frostCupcake() { let cupCake = document.getElementById("cupcake"); let ccFrosting = document.createElement("div"); cupCake.appendChild(ccFrosting); ccFrosting.id = "ccFrosting"; for (let i = 0; i < frostingCount; i++) { let image = document.createElement("img"); image.src = frostingFiles[i]; ccFrosting.appendChild(image); } function shuffleBack() { _____ } } a. ccFrosting.appendChild(ccFrosting.firstElementChild); b.…Write a JavaScript code with the following three different conditions: • Create the HTML document containing an element with id="myImage" for any images you want. • Use the HTML DOM to get the element with id="myImage". • Write a JavaScript function to change the JavaScript src attribute of element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice. Important notes: 1. You should have to copy and paste the script as your answer to this question. DON’T take a screenshot for your script. It must be an editable script. 2. Take a screenshot of your output web page and paste it as a part of your answer.x = zeros(uint8(5,5)); for i = 1:5 for j = 1:5 a = 5/i; x(i,j) = 255/a; end end Which of the following best describes the black and white image x? 1. The columns of x will get lighter from left to right 2. The rows of x will get lighter from top to bottom 3. The rows of x will get darker from top to bottom 4. The columns of x will get darker from left to right
- A student report this problem when using HTML and JavaScript "On the assignment with preloaded images, I had to rewrite the example from the book. I had a problem with the syntax for linking the source file to the <form> element. I solved the problem by using this syntax document images img3.src = (source of file)." What kind of error is it? What rules were applied, and which should have been applied earlier?Write a JavaScript code with the following three different conditions: Create the HTML document containing an <img> element with id="myImage" for any images you want. Use the HTML DOM to get the element with id="myImage". Write a JavaScript function to change the JavaScript src attribute of <img> element from " pet.gif" to " cat.jpg" when clicking on a button. Note: Students can use any gif and jpg files according to their choice.Write a code to create a PHP application for the following image.
- Make a timer that has 2 minutes limit, the game starts when you click the timer button. When times up the cards can't be clicked. Make the cards be able to be flipped. Write a function for matching the cards, if htey match keep them with the right side up if don't flip them back. Do this in javascript.html and css codes <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="start.css"> <title></title> </head> <body> <div class="whole"> <div class="images"><img src="1.png"></div> <div class="images" ><img src="final.jpg"></div> <div class="images"><img src="2.png"></div> <div class="images"><img src="final.jpg"></div> <div class="images"><img src="final.jpg"></div> <div class="images"><img src="4.png"></div> <div class="images"><img src="final.jpg"></div> <div…this is my code, but after automatically check it, it shows smt went wrong(image one) image two is the spec for nextTweet and below is my code, since it's the system automatically check the code, I dont really have a textcases. plz debug it and fix it. show the screenshot of the code when u finish. thanks Below is my whole code for TweetBot import java.util.*;import java.io.*; public class TweetBot { private List<String> tweets; private int index; public TweetBot(List<String> tweets){ if(tweets.size() < 1){ throw new IllegalArgumentException("need contain at least one tweet!"); } this.tweets = new ArrayList<>(tweets); } public int numTweets(){ return tweets.size(); } public void addTweet(String tweet) { tweets.add(tweet); if (tweets.size() == 1) { // if the tweet was the first one added, set the index to 0 index = tweets.size() - 1; } } public…Based on your algorithm(User valida- tion), write a program that does the same thing using HTML, CSS, and JavaScript. Use the scoring guide below: Import CSS design using link tag. The login page should be presentable. Import JavaScript using script tag Write JSON object in your JS file containing the following account: Username: john, Password: smith Username: mary, Password: woods Username: steve, Password: jobs •The program should be able to count the num- ber of login attempts. If it reaches the maximum threshold of 3 incorrect credentials, it should dis- able the login button. If the user was able to login with correct credentials(username and its corresponding password), use an alert to display ”successfully logged in!”. The program should be able to determine what goes wrong, for example, the ”user does not ex- ist” only appears when the username does not match to the accounts inside the JSON, and ”Incorrect password” if the username is correct…
- As a PHP developer in Software industry, you are given a task to design a user registration page with user picture, write down code to impose restriction on image uploaded by user in signup form.1. Minimum two pictures must be uploaded for an account.2. Only .png or .jpg extensions is allowed.3. Image size should not be more than 5MB4. User Can set default image and that image should be displayed on login.I'm trying to learn CSS and it isn't easy. Can someone help me with this problem? Modify or add one CSS rule for each requirement below to change the text color property as specified. By color name: change the text color for byname class elements from black to blue. By RGB values: change the text color for byrgb class elements from black (rgb(0, 0, 0)) to green by modifying the second number to be 255. By HSL values: change the text color for byhsl class elements from black (hsl(0, 0%, 0%)) to cyan by modifying the first number to be 200, the second number to 100%, and the third number to 50%. Code: <p class="byname">The text is blue</p> <p class="byrgb">The text is green</p> <p class="byhsl">The text is cyan</p>RECTANGLE PROBLEM Enter Length: Enter Width: Area: Perimeter: Area Perimeter |Both Clear 1. Add JavaScript to the square problem such that it computes the area, perimeter or both when the length and width are given and the appropriate button is pressed. Make sure to make all buttons functional. Rename to exam4sample21.html Input File: Output File: rectangle.html exam4sample21.html 2. Add input validation such that the proper error is generated when the input field is not a number. Rename to exam4sample22.html Use input form validation as follows: onclick="if(isInteger(ʻinputl')) compute('inputl');" function isInteger(id) var flag=true; var x=document.getElementById(id); if (x.value==nuii || x.value=="") else if (x.value==") else if (isNaN (x.value)) else if ((parseFloat (x.value))$1 !=® ) { alert("Value Is Not An Integer");flag=false;} return flag: { alert("Integer Field Empty");flag=false;} i alert("Value Not A Number"); flag=false;} Input File: Output File: exam4sample21.html…