function loginValidate () { var id - document.getElementById ('myid').value; var pass - document.getElementById('mypassword').value; if ((id =- null id -- "") 66 (pass -- null , pass -- "")) { alert ("ID and Pasword both must be filled out "); return false; else if (id -- null || id - "") { alert ("ID must be filled out "); return false;
Q: What exactly is it that the fundamental principles of software engineering ignore? explain?
A: Introduction: It was difficult to keep up with the hardware, which generated various problems for so...
Q: Show the process to define the costs of the domain of F using Dijkstra's algorithm. 5 A В 3 |4 D E F...
A: DIJKSTRA’S ALGORITHM 1. Make a zero-distance mark on the finishing vertex. Make this vertex the curr...
Q: Describe how a computer can produce an incorrect answer when performing numerical computations even ...
A: "A computer can produce an incorrect answer when performing numerical computations even though it ha...
Q: What other questions must be addressed before deciding if database as a service is right for your li...
A: Basically there are such countless databases are accessible and getting one information base over an...
Q: Domain names: benefits and drawbacks??
A: A website may be accessed without the IP address by using the Domain Name System (DNS). The domain n...
Q: Consider the numerous barriers and problems you'll face as you build the framework, as well as each ...
A: Introduction: Cloud computing offers both benefits and drawbacks, and it is a current technology wit...
Q: To recognise multiprocessor systems, you must first understand how they work together.
A: Introduction: A communication mechanism is used by the processors of a multiprocessor system to comm...
Q: The CPU employs values to enter memory places, and certain registers save both instruction and data ...
A: Getting Started:- There are four sorts of registers that may be used to store the memory address and...
Q: When giving the user a set of choices to choose from, should numbers be used? E.g. 1, 2, 3? If so, ...
A: Using numbers such as 1,2,3 to choose a set of choices make it more sense from user point of view. ...
Q: How do you anticipate and prepare for the many cyber security dangers that may occur when developing...
A: The Answer is in step-2.
Q: Mention what data packets are made out of.
A: Intro A data packet is a unit of data that has been compressed into a single package and is sent thr...
Q: Explain wireless networking in terms of standards, topologies, and trends.
A: INTRODUCTION: Here we need to explain wireless networking in terms of standards, topologies, and tre...
Q: Answer the following true or false. a) A microcontroller is a computer in one chip . b) The most i...
A: According to answering policy i can answer only first 3 parts. For remaining parts please submit the...
Q: What is the distinction between a broadband router and an Ethernet switch?
A: Intro While a network switch may link several devices and networks together in order to extend the L...
Q: What is SIP (Session Initiation Protocol) and what does it mean?
A: 1) SlP is a signaling protocol that enables the Voice Over Internet Protocol (VoIP) by defining the ...
Q: What exactly are the fundamental principles of software engineering that are disregarded? explain?
A: Introduction: Fundamental concepts of software Software is a set of computer instructions that are e...
Q: The piece of hardware that TEMPORARILY holds data and programs is called: O A. Primary storage O B. ...
A: Primary storage means RAM Secondary storage means Harddisk.
Q: Blue screen errors occur when which of the following procedures encounters a problem?
A: Introduction: When a problem causes your device to suddenly shut down or restart, you may get a blue...
Q: Explain client/server architecture, including tiers, cost-benefit analysis, and performance.
A: Introduction: Architecture of client/serverClient/Server Architecture refers to systems that split p...
Q: A memory system consists of a cache with a hit time of 5 nsec, if the miss penalty is 100 nsec and t...
A: Here we calculate the Cache hit rate by using the given information and correct the answer , so the ...
Q: Problem #04 ● Design a program in C to read a CSV file and print all of its contents ● Design a pr...
A:
Q: In the realm of information technology, LCD stands for Liquid Crystal What does this really mean?
A: Lets see the solution.
Q: A secondary storage device is: O A. The main storage or area in a computer O B. A hardware device us...
A: RAM stands for Random Access Memory is a primary storage device where all the program under executio...
Q: what is the formula for finding the number of nodes in a full binary tree
A: A perfectly balanced tree can be called when all the children nodes of right hand side and left hand...
Q: What other questions must be addressed before deciding if database as a service is right for your li...
A: Introduction: Database: Individual facts, statistics, or pieces of information, frequently numerical...
Q: How do I use l2trace on a Cisco switch with a VLAN different than VLAN 1?
A: Intro VLAN 1 should never be used, so if an attacker or an unwanted client connects to your network ...
Q: How did the word "spool" come to be used to refer to printer output?
A: Introduction: A particular kind of multi-programming used in computers for the purpose of transferri...
Q: What really is MMC and how is it used?
A: What really is MMC and how is it used?
Q: Consider a project and map it both without and with the inclusion of architecture. How it will affec...
A: Significance of Architecture: => The purpose of architecture is to provide a physical environm...
Q: 260. Explain Haar transform in detail. (or) Explain about Haar transform and its properties.
A:
Q: Define the various disciplines of data management a from everyday life. Computer science
A: Introduction: Data Management Is Introduced Data management is the process of gathering, assessing, ...
Q: Using JAVA language, write a program that creates a two-dimensional array, fills it using Scanner, a...
A: A multidimensional array is an array of arrays. Each element of a multidimensional array is an array...
Q: 1) Write a Java program to find if a square matrix is symmetric. (a symmetric matrix is a square mat...
A: I give the code in Java along with output and code screenshot
Q: What other questions must be addressed before deciding if database as a service is right for your li...
A: Introduction: A library database is a searchable collection of information that is accessible online...
Q: What is the Security Lifecycle?
A: The Security lifecycle is a process which helps the security organisations and institutions to follo...
Q: If the uplink connection is to a router, will the switches function with both a PC/OS XP and a MAC/O...
A: Let's see the solution below
Q: the difference between website google chrome and website Internet Explorer Computer science
A: Introduction: When comparing Internet Explorer with Google Chrome, the most noticeable difference co...
Q: How is the inverse of a matrix used in cryptography?
A: Intro Cryptography is the study of secure communication mechanisms so only the sender and intended r...
Q: A successful distributed denial-of-service attack requires the malicious hacker to download software...
A: Introduction
Q: When does a network get congested?
A: Intro Data networking and queueing theory define network congestion as the poor quality of service t...
Q: What is the operating system's approach to managing processors?
A: Introduction: Only one process may be active at any one time. Because CPUs are so quick, a programme...
Q: List the features that cellphones, PDAS, and portable media players have in common with computers, a...
A: Introduction: An operating system (OS) is a collection of software applications that manage computer...
Q: 7. Construct a DFA accepting the language: {W€{a, b}*: W has neither aa nor bb as a substring}
A:
Q: Vrite and execute a query that returns the maximum or highest list price roduction.Product table fro...
A: Lets see the solution.
Q: Why do wireless networks have greater throughput loss than conventional networks?
A: Intro A network that is wired: It is a wired network if actual wires and cables are connecting the m...
Q: Consider the impact of the personal computer and the Internet on system design. Use examples to back...
A: Introduction: System architecture is influenced by two technical advances: Internet computer
Q: What is the difference between centralized and paralle/distributed databases when it comes to databa...
A: 1)A centralized database is a kind of data set that contains a solitary data set situated in one are...
Q: When an interrupt occurs, the CPU suspends the current process to deal with the problem. Interrupt s...
A: Introduction: An interrupt is a signal either by a device connected to a computer or by a programme ...
Q: RTP (Real-time Transport Protocol) is a protocol that allows you to send and receive data in real-ti...
A: RTP (Rea-time Transport Protocol) is a protocol that allows you to send andreceive data in rea-time.
Q: Though there are fresh certificates, even if no revocation requests have been created, a CRL must be...
A: Introduction: A certificate revocation list (or CRL) is a cryptographic term that refers to "a list ...
Step by step
Solved in 4 steps with 4 images
- Computer Science Write in Javascript please and use high order functions liek map or filter or reduce let obj = [ { mode: "hot" }, { temp: "low" }, { mode: "cold } ] I want to create a function that get object by key such as: myFunc("mode"); returns { mode: "hot" } next call of myFunc("mode") returns { mode: "coldUsing JavaScriptDefine a function getMonth which accepts number from 1 to 12 as an argument and return the descriptive name of the month. For example: getMonth(1) should return January while getMonth(12) returns December, finally getMonth(-1) returns null. Use array or object to define a list of names for the month and refrain from using if statement to check the argument if it's 1, 2, etc.Complete the function solveMeFirst to compute the sum of two integers. In javascript Example Return . Function Description Complete the solveMeFirst function in the editor below. solveMeFirst has the following parameters: int a: the first value int b: the second value Returns- int: the sum of a and b Constraints 1<a; b<1000; process.stdin.resume();process.stdin.setEncoding('ascii'); var input_stdin = "";var input_stdin_array = "";var input_currentline = 0; process.stdin.on('data', function (data) { input_stdin += data;}); process.stdin.on('end', function () { input_stdin_array = input_stdin.split("\n"); main(); }); function readLine() { return input_stdin_array[input_currentline++];} function solveMeFirst(a, b) { return a + b; } function main() { var a = parseInt(readLine()); var b = parseInt(readLine());; var res = solveMeFirst(a, b); console.log(res);}
- Language: JAVA Script Your company is giving every employee earning less than $50,000 a 10% raise! *Write a function 'employeeRaises(peopleObj)' that takes an array of objects s containing employee names and their salaries and returns an array containing the employees that need raises, along with their new salaries. Example: employees [ {name: "Alice", salary: 80000}, {name: "Bob", salary: 48000 }, {name: "Carol", salary: 60000}, {name: "Dan", salary: 78000}, {name: "Ellen", salary: 100000}, console.log(employeeRaises (employees) ); // [ { name: 'Bob', salary: 44000 } ] funcation emplyeeRaises(employees){ |// Your code here} /****DO NOT MODIFY ANYTHING UNDER THIS LINE****/ try{| module.exports = employeeRaises;}catch (e) {|module.exports=null;}(Coding Language C++) Dynamic Programs Hoskins College offers both curriculum and continuing education courses. Write a program that dynamically tracks these courses using an array of object pointers. Every course (both curriculum and continuing education) has a course id, title, room number, and number of contact hours. A curriculum course has credit hours and tuition rate. Tuition is calculated by multiplying the course's credit hours by tuition rate. A continuing education course has a flat fee (cost). Implement a show() function in every class that displays the data in the object. Part A: Create an inheritance-based collection of classes to represent these different courses. Include code in main to test your work by instantiating objects of the two derived classes. Part B: Modify your program. Remove the objects you created in main to test the classes. Modify the base class so that show() becomes a virtual class. In main, create a single array capable of holding pointers to…Jupyter Notebook Fixed Income - Certicificate of Deposit (CD) - Compound Interest Schedule An interest-at-maturity CD earns interest at a compounding frequency, and pays principal plus all earned interest at maturity. Write a function, called CompoundInterestSchedule, that creates and returns a pandas DataFrame, where each row has: time (in years, an integer starting at 1), starting balance, interest earned, and ending balance, for an investment earning compoundedinterest. Use a for(or while) loop to create this table. The equation for theith year's ending balance is given by: Ei =Bi (1+r/f)f where: Ei is year i's ending balance Bi is year i's beginning balance (note: B1 is the amount of the initial investment (principal) r is the annual rate of interest (in decimal, e.g., 5% is .05) f is the number of times the interest rate compounds (times per year) The interest earned for a given year is Ei - Bi Note the term of the investment (in years) is not in the above equation; it is used…
- # Create Custom Transformer Create a custom transformer, just as we did in the lecture video entitled "Custom Transformers", that performs two computations: 1. Adds an attribute to the end of the numerical data (i.e. new last column) that is equal to $\frac{x_1^3}{x_5}$ for each observation. In other words, for each instance, you will cube the $x_1$ column and then divide by the $x_5$ column. 2. Drops the entire $x_4$ feature column if the passed function argument `drop_x4` is `True` and doesn't drop the column if `drop_x4` is `False`. (See further instructions below.) You must name your custom transformer class `Assignment4Transformer`. Your class should include an input parameter called `drop_x4` with a default value of `True` that deletes the $x_4$ feature column when its value is `True`, but preserves the $x_4$ feature column when you pass a value of `False`. This transformer will be used in a pipeline. In that pipeline, an imputer will be run *before* this transformer. Keep…mergeAndRemove(int[], int[]) This is a public static function that takes a int[] and int[] for the parameters and returns an int[]. Given two arrays of integers. Your job is to combine them into a single array and remove any duplicates, finally return the merged array.JavaScript //6. addButtonListeners //a. Selects all buttons nested inside the main element //b. If buttons exist: //c. Loop through the NodeList of buttons //d. Gets the postId from button.dataset.postId //e. Adds a click event listener to each button (reference addEventListener) //f. The listener calls an anonymous function (see cheatsheet) //g. Inside the anonymous function: the function toggleComments is called with the //event and postId as parameters //h. Return the button elements which were selected //i. You may want to define an empty toggleComments function for now. Not all tests //will pass for addButtonListeners until toggleComments exists. I recommend //waiting on the logic inside the toggleComments function until we get there.
- Course: Data Structurre and algorithms Language: Java Make a Program in java. Read the properly its easy but explained in theory. You have to solve ( make program ) the question by properly as you can error and ommisions will be accepted please. Kindly make it unque dont copy paste. <You have to solve this question as you can kindly dont excusses> Implement a global function“CompareNumbers”which is passed twoSlinkedListobjects as parametersnamed list1, and list2. The function will compare both the numbers corresponding to the lists and will return 0 if both the numbers are equal, return 1 if number corresponding to list1 is greater and will return 2 if number corresponding to list2 is greater. For this task you have to choose an appropriate data structure that will help you do this task in the most efficient manner with regard to time and space complexity.You are allowed to reverse the linked lists for this task. intCompareNumbers(SlinkedList list1, SlinkedList list2)function myChoice(items) {if (!this.value && !this.items) {this.items = items[0];} else if (!this.value || (params.length > 0 && params[0] == "rechoose")) {let index = Math.floor(Math.random() * (this.items.length - 0)) + 0;this.value = this.items[index];return this.value;}return this.value;} var a = myChoice([1, "a", 3, false]);console.log(myChoice(3, 12));console.log(myChoice(51, -2));console.log(myChoice("happy", false));console.log(myChoice([1, 2, 3]));console.log(myChoice("rechoose"));console.log(myChoice(a, a)); these are directions and examples myChoice( items ) This function accepts a list of items as input and creates a function that returns a randomly-chosen item. After choosing a random item, that same item will be always be returned, regardless of the functions input, with one exception. If the first input is the string 'rechoose', then a new random item will be chosen and therafter returned. this is KEYYYY!! Examples var a = myChoice( [1, "a", 3, false]…Given main(), complete the SongNode class to include the function PrintSongInfo(). Then write the PrintPlaylist() function in main.cpp to print all songs in the playlist. DO NOT print the dummy head node. main.cc #include <iostream>#include "SongNode.h" // TODO: Write PrintPlaylist() function int main() { SongNode* headNode; SongNode* currNode; SongNode* lastNode; string songTitle; string songLength; string songArtist; // Front of nodes list headNode = new SongNode(); lastNode = headNode; // Read user input until -1 entered getline(cin, songTitle); while (songTitle != "-1") { getline(cin, songLength); getline(cin, songArtist); currNode = new SongNode(songTitle, songLength, songArtist); lastNode->InsertAfter(currNode); lastNode = currNode; getline(cin, songTitle); } // Print linked list cout << "LIST OF…