JAVASCRIPT 10. getUsers a. Fetches users data from: https://jsonplaceholder.typicode.com/ (look at Resources section) b. Should be an async function c. Should utilize a try / catch block d. Uses the fetch API to request all users e. Await the users data response f. Return the JSON data */ function getUsers(){ }
Q: Explain about various Cybercrimes
A: In this question we need to explain different types of cyber crimes.
Q: You are a forensic examiner for a large corporation. An employee is suspected of mishandling company…
A: :: Solution:: determine the appropriate disciplinary action.
Q: Let's assume that Bob and Alice share a secret key in a symmetric key system. Bob wishes to begin a…
A: INTRODUCTION: If Alice transmits the message to Bob encrypted using his public key, then upon…
Q: I need help in this question of true or False on the concepts of OOP URGENT. True or False…
A: Answer: a) Composition is a specific type of inheritance.False b) Composition is commonly known as…
Q: Discrete Math, please explain There are three red balls, six blue balls, and ten white…
A: Given 3 red balls, 6 blue balls, and 10 white balls, we need to find number of ways to choose eight…
Q: phthon code for one time pad cipher to be able to encrypt and decrypt words entered in english using…
A: Python: Python is a high level, general purpose programming language. It supports both procedural…
Q: I need an assembly program to compute the following expressions x86 masm assembly language it needs…
A: We need to write an assembly program to compute the given expressions in x86 masm assembly language.
Q: What distinguishes cloud environments' IT security solutions from those for on-premises data…
A: In this discussion, security is a crucial factor to compare between on-premises and the cloud.…
Q: 1. Using the values on the Data worksheet, create a column chart. 2. Change the column chart so it…
A: I attached your answer below.
Q: Which of the following regular expressions describes the language recognised by the a € a b none of…
A: Solution The given automaton mainly consists 5 tuples which are Finite Automata D=(Q,δ,Σ, F, q0) Q…
Q: Your program should allow users to enter an integer 'n. The program prints hexadecimal…
A: The following are steps that need to be taken for the given program: First, we ask for an integer N…
Q: What is the difference between greedy algorithm and optimal solution. List at least three pros and…
A: Here is the difference between the greedy algorithm and the optimal solution: Greedy algorithm: A…
Q: Write a partition function of a dynamic array. the first element of the array should be the pivot.…
A: We need to write a partition function of a dynamic array with the first element of the array should…
Q: Using r studio and the lahman baseball package, use a run differential model to determine the run…
A: 1. First, install and load the lahman baseball package in R…
Q: rk with source s and t sink. We say that an edge e is a bottleneck if it crosses every…
A: observation as an s-t overflow network G= (V, E). Given font node s and sink node t, we can add…
Q: make Algorithm for Outline of collection Input: a pc presentation with generators {a 1, a2 ..... an…
A: given data: Input: a pc presentation with generators {a 1, a2 ..... an };aword win {al, a2 .....…
Q: IN PYTHON* The file words.txt contains a long list of words, with one word per line. We want a…
A: we need to write a Python program that will read the words, sort them, and write the sorted words…
Q: Binary trees are also knows as self-balanced trees. True False
A: Explanation- A full binary tree is also known as 2 tree.In which it has two child nodes for each…
Q: In the context of the same file management system, it is planned to offer a sorted view of files by…
A: Dear Student, The asked algorithm is given below -
Q: Question 8. A connected graph G has 4 vertices and 4 edges of costs 1, 2, 3 and respectively 4. (a)…
A: Solution for given question, Introduction: In a graph , A tree with n vertices has (n-1) edges.…
Q: Question 41 A set is a collection of elements, each of which reference 0, 1, or 2 other elements in…
A: 1):: sets are a collection of well-defined objects or elements. A set is represented by a capital…
Q: Premise: Class B is a subclass of Class A. Class C is a subclass of Class B. Is the following code…
A: In this code. We make the object of Class B is b and Class C is c. But we don't make the object of…
Q: Give an example of a graph that has all 3 of the following properties. (Note that you need to give a…
A: Explanation: It is connected It has one articulation point that is node The graph needs at least 4…
Q: Question 6 sm .use Java create a GUI sketch for gym membership program and a brief description of…
A: GUI Sketch: Title: Gym Membership Program Components: 1. Text Field: enter your name 2. Text…
Q: Write a function named midvalue that is passed three unique int values and returns the one that is…
A: As no language is mentioned so I provide the code in Python along with output and code screenshots
Q: Given the importance of the network to daily operations, name three protocols that might be…
A: Address Resolution Procedure (ARP)Protocol for determining a media access control (MAC) address from…
Q: You must understand how to distinguish between a CheckBox and a RadioButton control in programming.
A: When writing code, you may use a control known as a CheckBox or a RadioButton. Make your selection…
Q: Identify and briefly explain a variety of difficulties facing the world's information systems.
A: Information system: An information system is a combination of software, hardware, and…
Q: Given a sentence, write a function that counts its number of words.
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT--------------
Q: Define the missing member function. Use "this" to distinguish the local member from the parameter…
A: Local variables are visible only in the method or block in which they are declared, while instance…
Q: Because the likelihood that the zoning referendum will be approved is such an important factor in…
A: In the context of the given question, 1. One of the simplest decision trees will be Zoning…
Q: Q1. Using push down FILO stack data structure, give a function to evaluate an infix expression. If…
A: Answer: We have done code in Java programming language and also we have attached the code and code…
Q: = Question 3. In the following hash table, we insert elements using hashing with open addressing…
A: Here is the explanation about the table.
Q: best way to do it? a. Insert -> Table ICON ()-> Draw Table
A: Given: In case you wish to have a 4X8 table with variable column width and row height. What is the…
Q: This is for Python. Now create a new file named MSPaint_PA51 in your IDLE. Find an image on the…
A: Python is a dynamically typed programming language. Python is an object-oriented and structured…
Q: If Class A inherits from Class B, we say that Class B is the subclass and Class A is the superclass.
A: Introduction: In OOPs, a class is a logical entity, whereas an object is a tangible thing. Objects…
Q: Recursive Sum! Write a recursive function rc_sum(n:int) -> int that returns the sum of the first n…
A: Dear Student, The source code, implementation and expected output is given below -
Q: Most common names Write a function most Common Name (L:List[str]) -> List[str] that takes a list of…
A: We need to write a code for getting most common names from a list. *Programming language used is…
Q: Write code to partition a linked list around a value x, such that all nodes less than x come before…
A: If this were an array, we'd have to be cautious about how we changed the items. Array shifts are…
Q: 1. Let T (n) be the number of moves in our solution to the n-disc Towers of Hanoi puzzle. Recall…
A: This is how you transfer n disks from the source peg to the destinationturn on with an intermediary…
Q: a) Write the adjacency matrix representing the graph above. b)Would you prefer to represent this…
A: Solution: Adjucency matrix of the method to represent a graph in computer. It is in the format of…
Q: ClassA + retrace(): void 1 > Retraceable + retrace(): void 1 ClassB + retrace(): void
A: Abstract class: The abstract class is declared with the keyword abstract. The abstract class can…
Q: Define Prim's Algorithm and Kruskal's Algorithm. Are both algorithms same or different? Explain…
A: INTRODUCTION: Kruskal's Algorithm: Prim's method is a well-known example of a greedy algorithm. It…
Q: Please send me answer within 10 min!! I will rate you good for sure!! Please send me typed answer!
A: For q1, I have provided C++ CODE along with CODE SCREENSHOT and OUTPUT…
Q: Verify that each edge in the graph Igraph = InstanceMap(Icircuit) is needed, by showing that if it…
A: Verification for each edge in the graph Igraph = InstanceMap(Icircuit) is needed, by showing that if…
Q: Write code that uses the input string stream inSS to read input data from string userInput, and…
A: Start Accept the string from user Declare istringstream inSS(userInput) Assign value to userMonth…
Q: Suppose you would like to urgently transfer 30 terabytes data from newyork to detroit . You have 1…
A: Data Transfer is required when we need to provide the important information. This information…
Q: Given the importance of the network to the users in your firm, name three protocols that might be…
A: A huge system made up of several comparable components linked to each other to enable movement or…
Q: void loop() { measureULTRASONIC (); if (distance <= 200) moving_speed= map (distance, 0, 200, 40,…
A: We need to fix the error of the given code. **Since the given code is a hardware specific code,…
Q: If Python 3 has obtained x=2.75 by rounding down to the nearest floating point value, what is the…
A: Python 3 has obtained x=2.75 by rounding down to the nearest floating point value, what is the…
Step by step
Solved in 2 steps with 1 images
- NOTE: Use the API endpoints available at https://jsonplaceholder.typicode.com/ to get the data required in these exercises. HINT: Read the documented Resources and Routes. Also the guide: https://jsonplaceholder.typicode.com/guide/ /////////////////////// 4) Create a function named "getUser". This function needs to accept a "userID" parameter. Use Fetch with Async/Await to request the data for the requested user. The function should return JSON data.#include <pthread.h>#include <stdio.h>#include <unistd.h>#include <stdlib.h> int count = 0; void *threadfunc(void *arg){ cout<<"Thread Complete\n"; count++; return NULL; } int main(){ count = 0; pthread_t A,B,C;pthread_create(&A, NULL, threadfunc, NULL); pthread_create(&B, NULL, threadfunc, NULL); pthread_create(&C, NULL, threadfunc, NULL); while(count<50) {pthread_join(A, NULL); if(count<50) pthread_join(B, NULL); if(count<50) pthread_join(C, NULL); } return 0; } What is wrong?I need help creating a delete feed create a new async function called deleteFeedApi which takes in the following parameters: token, feedId. In your src/util/ApiUtil.js file, add code to use Axios and call the delete feed request api in deleteFeedApi function: The code should make a DELETE request to the API endpoint ${API_BASE_URL}/feeds/${feedId} . For The Authorization header, set the value of frameToken(token) where token is the token parameter passed to the function. If the request is successful and the status code is 200, update the response and indicate success using frameResponse(1). If there is an error, execute the catch block. If there is a response available in the error object, update the response with the error message. If there is no response available, the error should be logged to the console. Finally, return the response to the function. In src/pages/App/MyFeeds.js, pass a prop loadOnDelete={getMyFeeds} in FeedCard component under your MyFeeds…
- Hello! I need to create a new Order with an API but I can't get it to work. My code so far is: //POST (create a new record (table)) http:API, (with additional body elements, OUCU=****, password=******, client_id=1. latitude=89, longitude=-20). function orderCreated() { let data = {oucu:"xxxxxxx",password:"xxxxxxx",client_id: 1,latitude:89,longitude:-20};var formBody = [];for (var property in data) {var encodedKey = encodeURIComponent(property);var encodedValue = encodeURIComponent(data[property]);formBody.push(encodedKey + "=" + encodedValue);}formBody = formBody.join("&"); fetch('httpAPI)', {method: 'POST',headers: {'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'},body: formBody})}; So, it must retur: {"status" : "success","data" :[{"id":"****","client_id":"***","date":*************","latitude":"****","longitude":"-******"}]}• Exercise 1: Please create a script that print “Hello, your name.” • Exercise 2: Please create a directory call user_bin, and add it to PATH. Then mv script of Exercise 1 to user_bin. Then run it from your root directory.• Exercise 3: Add a new command call ‘l’ which will perform exact same as ‘ls -a’. • Exercise 4: Create a function call sortFile, which will sort all filenames of current directory.• Exercise 5: Please make your own page using shell script, print following as your page. <html><head><title>My System Information</title></head><body><h1>My System Information</h1></body></html> Exercise 6: Could you add one variable in the example, name the variable as greeting, which displays “Hello, my name is xxx xxx” in the body using variable greeting.• Exercise 7: Could you add one variable in the example, name the variable as FILE_LIST, which displays the filenames of current working directorycan you fix this code so is not hardcoded import requestsimport pandas as pd # Set API endpoint and parametersurl = "http://api.openweathermap.org/data/2.5/weather"params = { "lat": 41.85, "lon": -87.65, "appid":"bdc131976a43a5df7074f0aef35fc088", "units": "imperial"} # Make GET request to APIresponse = requests.get(url, params=params) # Check if request was successfulif response.status_code == 200: # Parse JSON data from response data = response.json() # Extract relevant information from data location = data['name'] temp = data['main']['temp'] humidity = data['main']['humidity'] description = data['weather'][0]['description'] # Print weather information print(f"Current weather in {location}:") print(f"Temperature: {temp}°F") print(f"Humidity: {humidity}%") print(f"Description: {description}")else: print("Error retrieving weather information")
- Complete this javascript file according to the individual instructionsgiven in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ ////////////////////////// NOTE: Use the API endpoints available at// https://jsonplaceholder.typicode.com/// to get the data required in these exercises.// HINT: Read the documented Resources and Routes.// Also the guide:// https://jsonplaceholder.typicode.com/guide//////////////////////// Create a function named "getComments".// This function needs to accept a "postID"// parameter.// Use Fetch with Async/Await to request// all the comments for the postID that// is passed in as a parameter.// The function should return all the// comments for the requested postID// as JSON data.omplete this javascript file according to the individual instructionsgiven in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ ////////////////////////// NOTE: Use the API endpoints available at// https://jsonplaceholder.typicode.com/// to get the data required in these exercises.// HINT: Read the documented Resources and Routes.// Also the guide:// https://jsonplaceholder.typicode.com/guide//////////////////////// Create a function named "getUser".// This function needs to accept a "userID"// parameter.// Use Fetch with Async/Await to request// the data for the requested user.// The function should return JSON data.NOTE: Use the API endpoints available at https://jsonplaceholder.typicode.com/ to get the data required in these exercises. HINT: Read the documented Resources and Routes. Also the guide: https://jsonplaceholder.typicode.com/guide/ /////////////////////// 2) Create a function named "getAllUsers". Use Fetch with Async/Await to request all the posts. The function should return all the posts as JSON data.
- For the following GitHub Action yml definition, what event triggers the workflow? name: exam-workflowon: push: branches: - 'prod'jobs: execute: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v2 - run: apt install python3 python3-pip - run: pip3 install black - run: black my-code.pyHow can I include <Fstream > in this code ? What should I change ? Would you help me , Please ? #include<iostream>#include<string>using namespace std;#define M 100int count=0;struct AddressBook{ string FullName; int Birthday; string Address; string Email; int PhoneNumber; }Person [M];void add();void browse();void searchByName();void searchByBirthday();void removeContact();void order();int main(){ int choice; do{ cout << "Please Enter Your Choise: \n"; cout << " 1-Add New Person\n 2-Browse\n 3- Search By Full Name \n4- Search By Birthday 5- Remove a Person" << "\n6- Alphabetical Order \n7-Exit\n"; cin >> choice; switch(choice){ case 1: add();break; case 2: browse();break; case 3: searchByName();break; case 4: searchByBirthday();break; case 5: removeContact(); break; case 6: order(); break;…Complete this javascript file according to the individual instructions given in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ //////////////////////// // NOTE: Use the API endpoints available at // https://jsonplaceholder.typicode.com/ // to get the data required in these exercises. // HINT: Read the documented Resources and Routes. // Also the guide: // https://jsonplaceholder.typicode.com/guide/ /////////////////////// // 1) Create a function named "getAllPosts". // Use Fetch with Async/Await to request // all the posts. The function should // return all the posts as JSON data. // 2) Create a function named "getAllUsers". // Use Fetch with Async/Await to request // all the posts. The function should // return all the posts as JSON data. // 3) Create a function named "getComments". // This function needs to accept a "postID" // parameter. // Use Fetch with Async/Await to request // all the comments for the postID that // is passed in as a…