The API will return a response similar to the following JSON: "result":"success", "documentation":"https ://www.exchangerate-api.com/docs", "terms of use":"https://www.exchangerate-api.com/terms", "time_last_update_unix":1615593602, "time_last_ update_utc" :"Sat, 13 Mar 2021 00:00:02 +0000", "time_next_update_unix":1615680017, "time next update utc":"Sun, 14 Mar 2021 00:00:17 +0000", "base code":"USD", "target_code":"PKR", "conversion_rate":156. 5685, "conversion result":1878.822
Q: My name is Fatima Execute the code using Linux interfaces Make the file name your own, for example…
A: Given program is a C program which is using the fork() system call to get the process ids of parent…
Q: . Which of the following information is specified by a bitcoin transaction? Is it C? A. A number of…
A: Actually, answer has given below:
Q: Write the Java socket program for the Server. (class name: Server_ 123) And Write the Java socket…
A: Given: Write the Java socket program for the Server. (class name: Server_ 123) And Write the Java…
Q: Which of the following is NOT a method of class socket? getInetAddress() getBindPort()…
A: Here, Methods of class socket are given.
Q: Write the Java socket program for the Server. (class name: Server_ 12345) And Write the Java socket…
A: import java.net.*;import java.io.*;public class server{public static void main(String args[])throws…
Q: Write a java program to create a class named ReverServer. A ReverServer listens on port 1099 for…
A: ReverServer.java package com.company;import java.io.*;import java.net.*;public class ReverServer {…
Q: Consider the following Java code which uses the JDBC API. Assume that the userid, password, machine…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: Which of the following kernels are developmental kernels? (Choose all that apply.)a. 3.3.4b. 3.5.5c.…
A: The kernel is divided into three parts, Major number Minor number Revision number. PRODUCTION…
Q: Write a Java application for a server that listens to a client. The server should run on port 8250.…
A: Given data is shown below: Write a Java application for a server that listens to a client. The…
Q: There are several ways to display information of services, and besides using GUI tool Services.msc…
A: Please see the next step for solution.
Q: python backend -create an API Endpoint to send the whole Fish table -dont change the code, as in…
A: Hey there, I am writing the required solution for the above stated question.
Q: Write a Java application for a server that listens to a client. The server should run on port 4999.…
A: Client Code package Client.java; import java.net.*; import java.io.*; import java.util.Scanner;…
Q: What is Socket Programming in Java? Differentiate between any three stream sockets and datagram…
A: The solution for the above given question is as follows
Q: is an API that can access any kind of data stored in RDBMS. a. JSF b. Servlet c. JDBC d. JSP 2. What…
A: The answers of the following questions are as follows:
Q: Write the Java socket program for the Server. (class name: Server_12345) And Write the Java socket…
A: Java: Java is the fully object-oriented programming language used to design various different…
Q: Using the Java language, program the following and enclose the code TEXT and annotations in the code…
A: Tic Tac Toe TCP-Based game Design a TCP Client/Server (Multithreaded) Tic Tac Toe gamethat works as…
Q: Develop a server program in Java that waits for clients to connect. The server responds to the…
A: Solution:- Below is the detailed implementation of the above problem in JAVA with code . package…
Q: Please help with the following: Many classes for web access, file processing, networking, image…
A: In Asynchronous programming, apps can execute some work separately from the primary application…
Q: In this question, you will develop your own version of shell. Your shell will execute commands given…
A: The ask is to do the following: - Create a user shell. - Takes user input for command to execute and…
Q: Write the Java socket program for the Server. (class name: Server_ 12345). Write the Java socket…
A:
Q: The purpose of this lab is create a simple client server application to send and receive messages.…
A: Client server application using UDP Server.java import java.io.*; import java.net.*; class Server {…
Q: In this question, you will develop your own version of shell. Your shell will execute commands given…
A: "due to our policy, we can solve only the first 3 parts please repost the other parts and mention…
Q: While in the Interactive mode of NETSH, we can switch between Contexts by simply typing the name of…
A: To change to another context, type the name of the context. For example, typing interface ip will go…
Q: Write a Java application for a server that listens to a client. The server should run on port 8250.…
A: Socket and ServerSocket classes has been used to deal with the connections
Q: Create a java server class that will do the following: • Run on port 8000 and listen to a client •…
A: import java.io.*;import java.net.*; public class CheckersStockTakingServer { public static void…
Q: Identify the errors with the following commands and indicate possible solutions. (Hint:Try typing…
A: Errors In the first line, the error is in the Echo keyword. The corrected command is echo " This…
Q: Develop a server program in java that waits for clients to connect. The server responds to the…
A: Java is a high level programming language... And also object oriented ... It. Is a platform for…
Q: Write a skeleton script titled: skeleton.sh. Include the following in the script: The shebang to…
A: The answer is
Q: Assume that you are working with the following history list: 37 mail zach 38 cd…
A: The commands that are executing in the foreground may face a number of challenges. Sometimes,…
Q: In the following code fragments add necessary statements: // A Java program for Client //…
A: Given: import _____________; import _____________; import _____________; class connectionClient{…
Q: Write the Java socket program for the Server. (class name: Server_ 123) And Write the Java socket…
A: import java.net.*;import java.io.*;public class server_123{public static void main(String…
Q: Write the Java socket program for the Server. (class name: Server_ 123) And Write the Java socket…
A:
Q: Write the Java socket program for the Server. (class name: Server_ 12345). Write the Java socket…
A: Here is the Socket program which is used to communicate between client and server. There are two…
Q: Which of the following values are pushed onto the stack by the call command in the Hack virtual…
A: The correct answers are: The value of the LCL virtual register. The return address. The value of the…
Q: Write a Java application for a server that listens to a client. The server should run on port 8250.…
A: Server.java Client.java
Q: UNIX Systems Programming A snippet from a shell script is given below: line1 ... while read num…
A: Arrays in Shell script: Newer versions of Bash support one-dimensional arrays. Array elements may be…
Q: Question 10. The following is an entry in the password file in a Linux system, which a root user can…
A: The Linux file system password entry looks like a /etc /shadow file entry. In fact, the entry is a…
Q: Analyze the code snippet below: package package1;import java.io.BufferedReader;import…
A: There is only one class involved in this code.The class name is: WebPageTextReader.Explanation:After…
Q: Write the shell script that asks the user to enter a wind velocity (in knots), then display the…
A: Required: Write the shell script that asks the user to enter a wind velocity (in knots), then…
Q: What does pip stand for python? A. unlimited length B. none of the mentioned C.…
A: pip stand for preferred installer program for python which is use to install package and libraries…
Q: Implement a Restful API (with receiving data file) with all HTTP methods, using python flask…
A: SUMMARY: - Hence, We discussed all the points
Q: The following is the output produced by issuing the command "ls –al" in a Linux system. total 12…
A: la -al : In ls -al is the command used in the operating system to find the details listing of all…
Q: Improve this JavaScript code that will require input from the user. Below are the code that needs to…
A: Please find the answer below :
Q: Activity 1: Consider the following two programs. Write and execute them. (You can use line commands…
A: In order to repeat, we add the following to the code.
Q: tements to do the following: a. Create the Socket object to make a connection to a server named…
A: Suppose we have a client Socket called surClient. Write java statements to do the following: a.…
Q: Create a java client class that will do the following: • Create a socket to connect to the server…
A: Based on java
Q: $ ./report.pl $ echo $? 1 What can be said about what just happened? a) The command completed…
A: In computing, echo is a command that outputs the strings it is being passed as arguments. It is a…
Q: Step 3. Test your program. Below is an example of what the program output should look like. Your…
A: Steps: Import the module for the Random Create an object for a Random Declare an array of size 10.…
You are required to create a currency rate conversion app. The app should ask you for three things; the amount you need to convert from a currency to another currency.
You are required to create a currency conversion app by using the API called exchangerate-api.
langugae: java, android app
desired outputs:-
"time_last_update_utc":"Sat, 13 Mar 2021 00:00:02 +0000",
"base_code":"USD",
"target_code":"PKR",
"conversion_rate":156.5685,
"conversion_result":1878.822
Step by step
Solved in 5 steps
- Which of the following statements is not true regarding Debugging? 1- Valuable information can be retrieved from API functions. For example, the presence of WS2_32 means that the program might use Windows 32-bit functions. 2- x86dbg is not able to recognize the WinMain function where the real code starts. 3- CFF Explorer can show imported registry items and cryptography APIs.The issue: Do you "sort of" know what method you're looking for's name? Because the procedures in the Windows API have incredibly inconsistent names, this is a common issue for programmers who work with Microsoft Windows. Not much better are UNIX programmers. The only issue is that UNIX prefers to omit letters from system call names (for instance, creat), which results in naming conversions that are inconsistent.1. Explain the following unexpected result:$ whereis datedate: /bin/date ...$ echo $PATH.:/usr/local/bin:/usr/bin:/bin$ cat > dateecho "This is my own version of date."$ ./dateSunday April 14 10:00:49 PDT 2020 2. What are two ways you can execute a shell script when you do not have executepermission for the file containing the script? Can you execute a shellscript if you do not have read permission for the file containing the script? 3. What is the purpose of the PATH variable?a. Set the PATH variable so that it causes the shell to search the followingdirectories in order:• /usr/local/bin• /usr/bin• /bin• /usr/kerberos/bin• The bin directory in your home directory• The working directoryb. If there is a file named doit in /usr/bin and another file with the samename in your ~/bin directory, which one will be executed? (Assume thatyou have execute permission for both files.)c. If your PATH variable is not set to search the working directory, howcan you execute a program located…
- Build a Java game based on Rock Paper Scissors Lizard Spock, an extensionof the classic game Rock Paper Scissors. The application is to be based on a client and server architecture where a minimum of 3 clients should be able to connect to the server. The rules of the game are as followsScissors cuts paper.Paper covers rock.Rock crushes lizard.Lizard poisons Spock.Spock smashes scissors.Scissors decapitates lizard.Lizard eats paper.Paper disproves Spock.Spock vaporizes rock.Rock crushes scissors.Minimum Requirements:- Make a desktop application using the Java programming language (SE)- Either Java RMI or socket programming should be utilized- Multiple clients should be able to use the application simultaneously- GUI and Audio is expected for a pleasant UX create using ANDRIODSTUDIO PLEASEAnswer the following questions What is Socket Programming in Java? Differentiate between any three stream sockets and datagram sockets Explain the life cycle of ServerSocket class (Server side) in Java. Your explanation should include detailed steps. Explain the life cycle of Socket class (Client) in Java. Your explanation should include detailed steps. Write a simple Java program for establishing a client and server using socketWrite a Java application for a server that listens to a client. The server should run on port 8250. Once the server is running it should output “Server is starting….”, then it should wait to receive a message from the client. Once it receives the message, it should close the socket. Create a client that sends a message to the server through port 8250. The message that should be sent to the server should be the sum of two numbers. Once it sends the message, it should close the socket. Figure 2 shows messages from the server:
- Can someone please explain to me ASAP?? import java.io.*; import java.net.*; class SimpleTextClient { public static void main(String argv[]) throws Exception { BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); Socket clientSocket = new Socket("127.0.0.1", 8000); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); BufferedReader inFromServer = new BufferedReader(new InputStreamReader( clientSocket.getInputStream())); while (true) { System.out.println("\nYou are connected to the Server."); System.out.println("\n0. Log in to the server\n1. Get the user list\n2. Send a message\n3. Get my messages\n4. Exit"); System.out.print("\nEnter your option: "); String option = inFromUser.readLine(); outToServer.writeBytes(option + "\n"); switch (option) { case "0": System.out.print("Enter…Write a Java application for a server that listens to a client. The server should run on port 8250. Once the server is running it should output “Server is starting….”, then it should wait to receive a message from the client. Once it receives the message, it should close the socket. Create a client that sends a message to the server through port 8250. The message that should be sent tothe server should be the sum of two numbers. Once it sends the message, it should close the socket. Figure 2(attached) shows messages from the server:Please answer properly with output screenshot must Where is the error in this code? from telethon.sync import TelegramClientfrom telethon.tl.functions.messages import GetDialogsRequestfrom telethon.tl.types import InputPeerEmptyimport os, sysimport configparserimport csvimport time re="\033[1;31m"gr="\033[1;32m"cy="\033[1;36m" def banner():os.system('clear')print("ok") cpass = configparser.RawConfigParser()cpass.read('config.data') try: api_id = cpass['cred']['id'] api_hash = cpass['cred']['hash'] phone = cpass['cred']['phone'] client = TelegramClient(phone, api_id, api_hash)except KeyError: os.system('clear') banner() print(re+"[!] run python3 setup.py first !!\n") sys.exit(1) client.connect()if not client.is_user_authorized(): client.send_code_request(phone) os.system('clear') banner() client.sign_in(phone, input(gr+'[+] Enter the code: '+re))os.system('clear')banner()chats = []last_date = Nonechunk_size = 200groups=[]result =…
- Task 3: Measure the Entropy of Kernel In the virtual world, it is difficult to create randomness, i.e., software alone is hard to create random numbers. Most systems resort to the physical world to gain the randomness. Linux gains the randomness from the following physical resources: void add_keyboard_randomness(unsigned char scancode); void add_mouse_randomness(__u32 mouse_data); void add_interrupt_randomness(int irq); void add_blkdev_randomness(int major); The first two are quite straightforward to understand: the first one uses the timing between key presses; the second one uses mouse movement and interrupt timing; the third one gathers random numbers using the interrupt timing. Of course, not all interrupts are good sources of randomness. For example, the timer interrupt is not a good choice, because it is predictable. However, disk interrupts are a better measure. The last one measures the finishing time of block device requests. The randomness is measured using entropy, which is…Develop a server program in Java that waits for clients to connect. The server responds to the client to choose one of the following options available withserver and then deliver the requested object to client:SumMultiplyDivisionBye Server Program is first started. Then the Client program is started. Ask three questions from Server Get the answer from client Finally send the resutls.Execute the following steps:Step 1: Run the Java program of ServerStep 2: Run the Java program of Client and Sample output of Client Window:Sample output 1(Client):Connected to serverMessage from Server: Select the option:SumMultiplyDivisionByeEnter the message to the server: 1Reply from Server: What is the sum of 2 + 3 ?Enter the message to the server: 4Reply from Server: Your Answer not correctReply from Server: What is the sum of 4 + 3 ?Enter the message to the server: 7Reply from Server: Your Answer correct, CongratsReply from Server: What is the sum of 10 + 11 ?Enter the message to the server:…From the example of client1.java and server1.java, extends the work to enable chatting among peer to peer. Hint : Add looping for both file prompt message to enter for both files terminate communication when 'q' was press for both files. 'q' stands for quit. (server 1) import java.net.*;import java.io.*;class server1 {public static void main(String[] args) throws Exception { System.out.println("Server is Started"); ServerSocket ss = new ServerSocket(7777); System.out.println("Server is waiting"); Socket s = ss.accept(); System.out.println("Server is connected"); DataInputStream dis = new DataInputStream(s.getInputStream()); String str = (String)dis.readUTF(); System.out.println("Client : " + str); String nickName = "Testing from server"; DataOutputStream dout = new DataOutputStream(s.getOutputStream()); dout.writeUTF(nickName); dout.flush(); dout.close(); dis.close(); s.close();}} (client 1) import java.net.*;import java.io.*;class client1 { public…