1. Subtract [4-4-2] - [4 –3 5]. O A. [0 –7 3] O B. [0 –1 7] O C. [0 -1-7] O D. [0 -1 3] V Mark for review (Will be highighted on the review page) Next Question >>
Q: 4) Calculate 2ªd element of L1=[1,10,19,28] divided by 1* element of L2 = [5,14,23,32]. Use two def…
A: 1) Below is program to calculate divide element of list 1 and 1st element of list 2 with functions…
Q: Review the following program: import urllib.request, urllib.parse, urllib.error fhand =…
A: Using urllib you can treat a web page much like a file. You simply indicate which web page you…
Q: Javascript: A startup that builds a chat app wants to identify highly social users. All the chat…
A: Note: We have kept a threshold value 3 for the sake of example. <!DOCTYPE…
Q: Problem Statement Given a text file of Zoom users wanting to attend a meeting, filter out a list of…
A: #Open the input file in read mode f1 = open("zoom_attendees.csv","r+") #Read the content of input…
Q: 2. (Acknowledgement: This exercise is presented at…
A: Code: #include <stdio.h>int main(){ //declaring and initialising required variables char…
Q: HTTP is the protocol that governs communications between web servers and web clients (1.e. brow…
A: status = input()status = int(status)if (status == 200): print("OK (fulfilled)")elif (status ==…
Q: Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing…
A: Sliding means returning a part of list. Here in option b, list[:-2] means return the entire list…
Q: Case four: I am having a glitch where it enter the college[0] and total_tuition [0] five times and…
A: Correction in Case 4: Changed case4 code : int sum=0; int len = sizeof(College)/sizeof(College[0]);…
Q: 1. Shrink page, refers to shrinking or stretching printed output to a percentage of its actual size.…
A: a. False Explanation: Scaling refers to the stretching or shrinking printed output to the…
Q: -Calculate and display: outer radius, inner radius, outer circumference, inner circumference, area…
A: Use #define _USE_MATH_DEFINES and #include <cmath> to get the value of pi using M_PI variable.…
Q: A university posts its employee salary at http://cs.armstrong.edu/liang/data/Salary.txt. Each line…
A: Given: A university posts its employee salary at http://cs.armstrong.edu/liang/data/Salary.txt. Each…
Q: What is printed? def user_print(user_list, my_mod=2, private=True): for counter, user in…
A: Answer in step2
Q: 128H, 144H, 176H, 180H, 129H, 170H bevadeci
A:
Q: JavaScript Loops Create an HTML document called assignment2.html that implements a webpage that…
A: Lets see the solution.
Q: Which of the following are valid ways to define a single element tuple? mytup ('Python') mytup =…
A: Based on python
Q: Which one of the following is not a loop structure? while For repeat until do while 30 7 J يمنع…
A: Find the answer with reason given as below :
Q: Consider a string as mentioned: “Hi! I am a student at Kean University. This is my junior year and…
A: The query is about doing the string manipulation using different operations. It has given a string…
Q: hat will be the final value of CX after executing the following set of instructi MOU CX,000FAH MOU…
A: Mov cx ,000FAH This instruction will move 000FA in cx register. the value of 000fa is decimal is…
Q: Send SMS using Twilio SMS API in PHP or NodeJS by passing JSON array of 5 different mobile phone…
A: Below is the code in NodeJS:
Q: What does the following code display? 1 Private Sub btnDisplay_Click(..) Handles btnDisplay. Click 2…
A: Virtual basic is the event driven programming language and environment from the Microsoft that…
Q: At the interactive prompt define a list named L that contains four strings or…
A: Index out of bounds exception is defined as the error that causes it there is a buffer overflow like…
Q: can you make and HTML file for this code please function validate() { var x =…
A: Here I have created the HTML code. In the head tag, I have created the script tag and inside it, I…
Q: -Calculate and display: Calculate outer radius, enclosed by the outer circle, area enclosed by the…
A: Algorithm: Start Read outer circumference c1 and inner circumference c2 Define pi with value…
Q: Analyze the code below: dogs = ["KK", "Cyber", "Blake", “Pinky", "Taki", "Chubby"] a = len (dogs) b…
A: Correct Option => a. 2 For more understanding , I have provided PYTHON CODE along with…
Q: First screenshot is what the assignment wants me to do and the expected output. Second screenshot is…
A: All of the steps mentioned in the question are implemented and coded with explanatory comments in…
Q: QUESTION 3 a) Write a PHP program to calculate the total mark from the variable Smarkl and Smark2.…
A: Answer: PHP Source Code: a). <!DOCTYPE html><html><body><?phpfunction…
Q: The popularity ranking of baby names over the last 100 years (1920-2019) is downloaded from…
A: The class name is BabyNames. So to run the code, the commands will be javac BabyNames.java and then…
Q: (Acknowledgement: This exercise is u.ac.jp/user/susaki/c_eng/pointer_e.html) We want to show a…
A: Required:
Q: Analyze the code below: dogs ["KK", "Cyber", "Blake", "Pinky", "Taki", "Chubby"] a = len (dogs) b=…
A: We need to find what will be the value of 'a' after execution of the code statements.
Q: 41, then 4- If x=[1 5 9; 2 7 a) display the last two elements by using disp command b) display the…
A: Actually, given information 1) If x= [1 5 9; 2 7 4], thena) Display the last two elements by using…
Q: Make a php web page that prompts the user for a phone number. The web page should display a message…
A: Given: Make a php web page that prompts the user for a phone number. The web page should display a…
Q: Question 20 ) Listen Write a PHP function that accepts two arguments - one integer and one string…
A: We need to write a PhP code for the given scenario.
Q: Which one of the following options best describes the purpose of indexing a string? a. To iterate…
A: Please find the answer below
Q: .data i j ans DWORD 8h DWORD 1h DWORD ? . code main proc L1: mov eax, i mov ecx, 8h mul ebx mov ans,…
A: A: Here's a solution that works on my system: <code>; 8! .data i DWORD 8h…
Q: EDIT MY TABLE AS TUTOR SAID NEED URGENTLY PLEASE DONT IGNORE ME THANK YOU! HERE IS MY DATA…
A: It is defined as a general-purpose, object-oriented programming language. It is one of the most…
Q: HTTP is the protocol that governs communications between web servers and web clients (i.e.…
A: Switch statement is used to avoid if-else statements. If you have more conditions to check, switch…
Q: V. List the elements that will be displayed by the following sections of codes. (15 pts.) 1. for (m…
A: As the contents of array a[], b[] are not given, they are represented as a[1], a[2],... and b[1],…
Q: Write a program that first gets a list of 5 integers from input. Then, get another value from the…
A: Coral is an ultra-simple language for learning programming. Key features: Simplicity: Coral only…
Q: -- Default Paragraph Sty 8 B 11) if (x == dest_x &&y=dest y) F Liberation Serif std::cout " for (int…
A: C++ maze generator that uses recursive backtracking. The generator is not using a recursive function…
Q: L = [[[1,2], [3,4,5]], "friday", {'x': "halloween", 'y':7, 'z’:77}, {10, 11, 12}] Show the commands…
A: #### As no language is mentioned, the code is written in Python. L = [[[1, 2], [3, 4, 5]],…
Q: USING C# Write a console app that inserts 30 random letters into a List. Perform the following…
A: I have mentioned answer in step below, please find in below //C # a programme that generates 30…
Q: Apex - Salesforce In this Assignment i required you to solve my doubt reated to Converting a date…
A: In this Assignment i required you to solve my doubt reated to Convertinga date from string in the…
Q: NUMBER 6 Code the following in DEV C++ Rules: 1. Kindly code it in a proper way 2. The…
A:
Q: download; restadata.txt : https://dosyam.org/2D1j/restdata.txt restaurant.c…
A: It is defined as a powerful general-purpose programming language. It can be used to develop software…
Q: - 9. Use string methods to extract the website domain from an email, e.g., from the string…
A: As per our guidelines, we are supposed to answer only one question. Kindly repost the remaining…
Q: 2. kindly create a program that will electronically sign and verify the electronic signature on a…
A:
Step by step
Solved in 2 steps
- lst = [10, 20, 30, 40, 50, 60, 70, 80] def f(lst, seek): for i in range(len(lst)): if lst[i] == seek: return i # Return position immediately return None f(lst,50) What is the output of this code part? A)3 B)4 C)5 D)none9.3.1: Output values below an amount. Write a program that first gets a list of 5 integers from input. Then, get another value from the input, and output all integers less than or equal to that value. Ex: If the input is 50 60 140 200 75 100, the output is: 50 60 75 For coding simplicity, follow every output value by a space, including the last one. Then, output a newline. Such functionality is common on sites like Amazon, where a user can filter results. Codes need to be writing in coral languageA palindrome is a word or phrase that is identical when you read from forward or backward, such as the words “racecar” and “madam.” A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in a standard palindrome. For example, “Madam, I’m Adam” is a standard palindrome because the characters are identical forward or backward, provided you remove the spaces and punctuation marks. Write a PHP script that checks words or phrases stored in two separate string variables to determine if they are a perfect palindrome. In addition, see if you can modify the program to check for standard palindromes. create a web page with a text field and “Reset” and “Submit” buttons. When a user clicks on the submit button, show the standard and perfect palindromes of the string that was entered in the text field on the same page.
- A palindrome is a word or phrase that is identical when you read from forward or backward, such as the words “racecar” and “madam.” A standard palindrome is similar to a perfect palindrome, except that spaces and punctuation are ignored in a standard palindrome. For example, “Madam, I’m Adam” is a standard palindrome because the characters are identical forward or backward, provided you remove the spaces and punctuation marks. Write a PHP script that checks words or phrases stored in two separate string variables to determine if they are a perfect palindrome. In addition, see if you can modify the program to check for standard palindromes. create a web page with a text field and “Reset” and “Submit” buttons. When a user clicks on the submit button, show the standard and perfect palindromes of the string that was entered in the text field on the same page. Create a separate Index.html and php filedictionaries = [] dictionaries.append({"First":"Bob", "Last":"Jones"}) dictionaries.append({"First":"Harpreet", "Last":"Kaur"}) dictionaries.append({"First":"Mohamad", "Last":"Argani"}) for i in range(0, len(dictionaries)): # Condition that's print the full name when Condition is True if(dictionaries[i]['First']=='Bob')or(dictionaries[i]['Last']=='Kaur'): print(dictionaries[i]['First']+" "+dictionaries[i]['Last']) ********************************** please modify the code to use a while loop instead of a for loop#include <iostream> using namespace std; int main() { string c_name ; string car_n; int n, member_n , total ,d; char choice; cout<< "Muscat Auto Workshop"<<endl<<endl; cout<< "Enter customer name : ";cin>>c_name; cout<<" Enter car plate number : ";cin>>car_n; cout<<" choice the required service "<<endl; cout<<" 1-Basic Tuning : 50 OMR "<<endl; cout<<" 2-Software Re-installation : 60 OMR "<<endl; cout<<" 3-Parts Replacement : 100 OMR"<<endl; cout<<" 4-Body Paint : 120 OMR"<<endl; cin>>n; if(n==1) { cout<<" charges before discout = 50 OMR "<<endl; } else if ( n==2) { cout <<" charges before discount = 60 OMR "<<endl; }else if (n==3) { cout<<" charges before discount = 100 OMR "<<endl; }else if (n==4 ) { cout<<" charges before discount = 120 OMR"<<endl; } cout<<" Do you…
- c++ problem. Please paste ur indented code.Which of the following statement(s) are true for the above code? Group of answer choices the code allocates space for a local variable and a global array the code allocates space for a local variable and a local array The code utilizes the index register the code utilizes the stack pointer the code uses 5 different addressing modes2 - Create a procedure that generates a random string of length L, containing all capital letters. You’ll request from the user the length L by displaying a prompt message, and at the end display an output message containing the random string. You should replace the call for WriteString for WriteStringAnimated, and as always remember to restore the register values when returning to the main procedure. You can expect your code to look like this: include Irvine32.inc .386 .model flat,stdcall .stack 4096 ExitProcess PROTO, dwExitCode:DWORD .data promptForTheSize BYTE "Enter the size of the string: ", 0 outputMessage BYTE "The random string is: ", 0 .code main PROC call RandomString call Crlf call WaitMsg INVOKE ExitProcess,0 main ENDP WriteStringAnimated PROC ; Complete the implementation for this procedure WriteStringAnimated ENDP RandomString PROC ; Complete the implementation for this procedure RandomString ENDP END main ------------------------------------- Feel free to modify the…
- What will the following code display?numbers = [1, 2, 3, 4, 5]numbers[2] = 99print(numbers)C++ Help Please! Complete the code provided to add the appropriate amount to totalDeposit. #include <iostream>using namespace std; int main() { enum AcceptedCoins {ADD_QUARTER, ADD_DIME, ADD_NICKEL, ADD_UNKNOWN}; int totalDeposit = 0; int userInput; totalDeposit = 0; cout << "Add coin: 0 (add 25), 1 (add 10), 2 (add 5). "; cin >> userInput; if (userInput == ADD_QUARTER) { totalDeposit = totalDeposit + 25; } /* Your solution goes here */ else { cout << "Invalid coin selection." << endl; } cout << "totalDeposit: " << totalDeposit << endl; return 0;}int_to_bytes_big_endian(num): bytestr=deque() whilenum>0: # list.insert(0, ...) is inefficient bytestr.appendleft(num&0xff) num >>= 8 returnbytes(bytestr) def int_to_bytes_little_endian(num): bytestr= [] whilenum>0: bytestr.append(num&0xff) num >>= 8 returnbytes(bytestr) def bytes_big_endian_to_int(bytestr): num=0 forbinbytestr: num <<= 8 num+=b returnnum def bytes_little_endian_to_int(bytestr): num=0.