Build NASM programs for the following questions 1. Write a program to check whether a string is a palindrome or not
Q: Write a program that scans all directories in a UNIX file system and finds and locates all i-nodes…
A: Here is the Python program that scans all directories in a UNIX file system and finds and locates…
Q: Write a Java program that will provide a count of the number of words, number of lines, and/or…
A: Required: Write a Java program that will provide a count of the number of words, number of lines,…
Q: You are a cyber investigator, your task is to write a python program that can read file signatures…
A: Here we write python program to read file and store signature in list:…
Q: PLEASE INCLUDE PIPING, ANSWERS WITHOUT IT ARE NOT VERY HELPFUL SINCE THEY DONT INCLUDE IT**
A: myshell.c: //header file section #include <stdio.h> #include <stdlib.h> #include…
Q: Write a program in C that Prints your name to the console Opens a file named bob.txt Asks the…
A: Lets see the solution.
Q: How to fix the problem below: Parser Error Description: An error occurred during the parsing of a…
A: A ParserError object represents an error generated when an HttpParseException is thrown. The parse…
Q: Write C++ Program that does the following: •Instead of reading data from the user, I will give you a…
A: The c++ program is given below:
Q: Create an AddressBookException class that you can use to throw exceptions in your address book. Your…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Write a C program that gets a source file name from a user. If the file does not exist, it will…
A: Please give positive ratings for my efforts. Thanks. ALGORITHM get the source the source file…
Q: Write a C program to Implement a system of three processes which read and write numbers to a file.…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: In python, rite a recursive function, displayFiles, that expects a pathname as an argument. The path…
A: Procedure Followed: Read a pathname and pass it as an argument to displayFiles recursive function.…
Q: implement a Python script that checks whether the file "tmp" exists (hint: take a look at the "os"…
A: Due to company policies I am compelled to solve only one question and that is the first question.…
Q: please code in python (regular expression) Using any text editor, manually create a file that…
A: Algorithm: Step 1 Start. Step 2 Import the regular expression library 're' Step 3 Define a regular…
Q: Need Help with C++ coding, and please explain the first step in detail. Write a program in C++ that…
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: Q4. The attached Java program (Recursion_Demo.java) (C# version is also attached) demonstrates the…
A: IntroductionRecursion:Recursion is a programming technique where a function calls itself to solve a…
Q: A program evaluates binary arithmetic expressions that are read from an input file. All of the…
A:
Q: Using Java, Write a program that reads an input file and writes an output file inserted using…
A: Here I written Java Code with File I/O for given problem below. I hope you like it.
Q: Chapter 9. PC #14. Word Separator (modified *** Read carefully ***) Write a program that prompts the…
A: The scope of the question pertains to the behavior and output of the provided Java program,…
Q: 2. Show average: calculate the class average. 3. Max grade: Find and print the maximum grade in the…
A: Program for the given question :- using System;class MainClass { public static void…
Q: A Sudoku puzzle uses a 9 × 9 grid in which each column and row, as well as each of the nine 3 × 3…
A: The program is as follows:
Q: Using this online IDE, create a Python script with a recursive function to display the sum of the…
A: Python function starts with def int(input()) is used to convert the user input to integer recursion…
Q: Implement a C program to sort a set of 4-byte float point values in ascending order using radixsort.…
A: C programming language which it is a machine-independent programming language that is mainly used to…
Q: Write a program in MIPS that does the following: Request the name of a file from the user and open…
A: Write a program in MIPS that does the following: Request the name of a file from the user and open…
Q: writing a program that asks the user to input a file name, then reads the file and prints how many…
A: writing a program that asks the user to input a file name, then reads the file and prints how many…
Q: Someone has modified the utils.asm file to insert a PrintTab subprogram immediately after the…
A: Given code is: # subprogram: PrintNewLine# author: Charles Kann# purpose: to output a new line to…
Q: Someone has modified the utils.asm file to insert a PrintTab subprogram immediately after the…
A: The problem with the modified code is that the PrintTab subprogram is not properly defined or…
Q: Someone has modified the utils.asm file to insert a PrintTab subprogram immediately after the…
A: From the information provided, it appears that the programmer has modified the utils.asm file by…
Q: rite a program in c++, that lets the user go through a text file and replace one given character…
A: Create an Input file "D:\\input.txt" and paste the following: Hello world this is a sample file…
Q: Unix-based operating systems usually include a tool named tail. It displays the last 10 lines of a…
A: Algorithm: Check if the user has provided the file name and the number of lines to print as…
Q: This Python Lab 9 Lab: Write a file copying program. The program asks for the name of the file to…
A: Solution: Given, Write a file copying program. The program asks for the name of the file to…
Q: Complete the following Questions of SAS Program: In order to read in raw data that you type…
A: The answer is below for all the parts
Q: 4. Fast in java coding please. Thank you File Encryption is the science of writing contents of a…
A: The answer is given in the below step
Q: Instructions: Your homework must have a cover page contains homework number, your name and student…
A: Code for the given question :- using System;class MainClass { public static void ShowGrades(int[]…
Q: Write two c++ programs to implement a distributed version of a multithreaded Huffman decompressor…
A: The task is to create two C++ programs - a server program and a client program - that implement a…
Q: I need help with this one please, already tried but still getting a wrong answer Scenario You have…
A: Answer: We have done code in python and also we have attached the code and code screenshot and…
Q: Part 1 - Write Code Jse Java or C or C++ to write an echo program. Name your source code file repeat…
A: Step 1 : Start Step 2 : Here we need to Declare a string variable to store the entered Text in it.…
Q: Please help me debug my C++ Program. Leave as much original source code as possible just show…
A: The problem is based on finding the errors in the given c++ based on file handling in c++ and…
Q: Write a program in assembly language (MIPS) that asks the user for an integer N and then adds up the…
A: A program in assembly language (MIPS) that asks the user for an integer N and then adds up the first…
Q: Write two c++ programs to implement a distributed version of a multithreaded Huffman decompressor…
A: Parse the input file and build a frequency table that counts the number of occurrences of each…
NASM program
X86
should run successfully in nasm in Linux platform while using the below commands for your clarity...
nasm -f elf question.asm
ld -melf_i386 question.o -o answer
./answer
here question is code file name and answer is what we are giving for output file.
please answer as what I asked .... please don't waste my questions posting wrong answers and irrelevant languages
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- FileAttributes.c 1. Create a new C source code file named FileAttributes.c preprocessor 2. Include the following C libraries a. stdio.h b. stdlib.h c. time.h d. string.h e. dirent.h f. sys/stat.h 3. Function prototype for function printAttributes() main() 4. Write the main function to do the following a. Return type int b. Empty parameter list c. Declare a variable of data type struct stat to store the attribute structure (i.e. statBuff) d. Declare a variable of data type int to store an error code (i.e. err) e. Declare a variable of data type struct dirent as a pointer (i.e. de) f. Declare a variable of data type DIR as a pointer set equal to function call opendir() passing explicit text “.” as an argument to indicate the current directory (i.e. dr) g. If the DIR variable is equal to NULL do the following i. Output to the…Java programming This problem set will test your knowledge of System I/O, and variable assignment. Your task is to create several different java classes (.java files) that will produce a specific output based on the user input. All input will be given to you either as a command-line argument or typed in from the keyboard. Below you will find directions for each class you need to create. Please make sure that the class name and java file name match the name 1, ContainsAnyCase This program will accept two user inputted values that are strings. The first user input will be a single word the second user input will be a sentence of random words. This program should print "true" if the first word is in the sentence of words regardless of the casing. In other words case is ignored when checking if the word is within the sentence. The last string that this program should print is "true" or "false", nothing else. 2 PrintMathResult Write an application that will wait for three user inputted…Hello Can you please help me with this code because I am struggling how do to this, can you please help me this code has to be in C. Write a multithreaded program that calculates various statistical values for a list of numbers. This program will be passed a series of numbers on the command line and will then create three separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value, and the third will determine the minimum value. For example, suppose your program is passed the integers 90 81 78 95 79 72 85 The program will report The average value is 82 The minimum value is 72 The maximum value is 95 The variables representing the average, minimum, and maximum values will be stored globally. The worker threads will set these values, and the parent thread will output the values once the workers have exited. (We could obviously expand this program by creating additional threads that determine other statistical values, such as…
- Input & Output Your program should read input from the standard input. The format of the input isas follows: <number of items><data_1> <name_1><data_2> <name_2>...<data_n> <name_n> Please inplement this function after compile in linux system program should run by this command ./bubblesort < test.in expected output was in the code #include <stdio.h>#include <stdlib.h>#include "bubblesort.h" void sort(Entry *in, int nL, void *comparator) { // IMPLEMENT} int compare(Entry a, Entry b) { // IMPLEMENT} /*TEST: ./mergesort < test.inOUTPUT:1 lsdfjl2 ghijk3 ksdljf5 abc6 def*/int main(void) { // IMPLEMENT}C++ coding assigment 5 I am having trouble to get my coding working because I addressBook.cpp and addressbook.h is not working well with my Person so I need help figure out the problem because I have don't know how to fix my coding so that both person and addressbook work for the main. remainder: due not type in java. Make sure to type c++ in different files like Main.cpp, Person.cpp, Person.j, AddressBook.cpp, and AddressBook.h This small project is geared to test your understanding of File IO. AddressBook Exception Create an AddressBookException class that you can use to throw exceptions in your address book. Your class should have a constructor that will allow you to set the particular message that corresponds to the error. You should use your custom exception class to throw an error in the findPerson method if the person being searched for cannot be found, in the getPerson method if the AddressBook is empty. You should also throw an error any time that the addressbook file that…You'll write a C++ program to demonstrate thread synchronization. Your main function should first create an empty file called *sync.txt*. Then it will create two separate threads: *Thread-A* and *Thread-B*. Both threads will open *sync.txt* and write to it simultaneously. *Thread-A* will write the numbers 0 through 9, a total of fifty-thousand times in nested `for` loops, then exit. In other words, print the numbers 0 through 9 over and over again, with each run on a separate line, for 50,000 lines. Here's an example of one such line: ```text 0 1 2 3 4 5 6 7 8 9 ``` Somewhat similarly, *Thread-B* will write the letters A through Z fifty-thousand times in nested `for` loops, then exit. In other words, print the letters A through Z over and over again, with each run on a separate line, for 50,000 lines. Here's an example of one such line: ```text A B C D E F G H I J K L M N O P Q R S T U V W X Y Z ``` Do not write each line as one long string. You must write each character to the…
- Write a java program that will generate a permuterm index from the terms in the files in an input directory. The program should prompt the user for a single directory and find all of the terms (after processing) in each file in it. The program should then find the permutations of each term and store them (keeping track of the original word each permutation comes from). After all of the text files in the directory have been read, the output of the program should display the permutations in sorted order along with the original term. Use the dollar sign as the end of term symbol.Can you please help me with this code because I am struggling on how to do this, This has to be in C code. question that I need help with: Write a multithreaded program that calculates various statistical values for a list of numbers. This program will be passed a series of numbers on the command line and will then create three separate worker threads. One thread will determine the average of the numbers, the second will determine the maximum value, and the third will determine the minimum value. For example, suppose your program is passed the integers 90 81 78 95 79 72 85 The program will report The average value is 82 The minimum value is 72 The maximum value is 95 The variables representing the average, minimum, and maximum values will be stored globally. The worker threads will set these values, and the parent thread will output the values once the workers have exited. (We could obviously expand this program by creating additional threads that determine other statistical values,…13. The following very complex subroutine moves the cursor down to the next line. What, if anything, is wrong with it? . ORIG LD R0, CRLF x4000 NEWLINE OUT RET CRLF .FILL x0A a. Nothing - it's fine as it is b. x4000 is not a valid starting address for a subroutine c. it should save and restore the contents of RO d. it should save and restore the contents of R7 e. both c) and d)
- Sockets are low-level networking interfaces between computers. Many programming languages come standard with socket libraries for creating socket connections. In this lab, we’ll study the usage of networking sockets in Python to write a custom client/server program. Client/Server source code as a ZIP or RAR file in D2L Word document outlining the description of your program. The word document should contain screenshots containing your name on the VM and reports of what’s occurring in them. Demonstrate your socket solution accomplishes the following: The client connects to the server Client and server successfully exchange messages Following the TCP stream in Wireshark Identifying the message sent in Wireshark Any additional functionality you created in your solution. please use python.In C++, not C please! Assume that your computer has 4 CPUs. Write a multithreaded program that runs 4 different threads concurrently. The entire process will add the first 1,000,000 numbers (from 1 to 1,000,000) to a shared variable sum. You need to use a pthread_mutex_t to provide mutual exclusion so that the final result of sum is 500,000,500,000 Note: you can download and modify the file summation_thread_shared_sum.cpp. This file does not use a mutex lock, so the result is incorrect. You must add a mutex lock correctly in the file so that the program generates the right outcome.This is phython not Java Lab: Write a file copying program. The program asks for the name of the file to copy from (source file) and the name of the file to copy to (destination file). The program opens the source file for reading and the destination file for writing. As the program reads each line from the source file and it writes the line to the destination file. When every line from the source file has been written to the destination file, it close both files and print “Copy is successful.” In the sample run, “add.py” is the source file and “add-copy.py” is the destination file. Note that both “add-copy.py” is identical to “add.py” because “add-copy.py” is a copy of “add.py”. Sample run: Enter file to copy from: add.py Enter file to copy to : add-copy.py Copy is successful. Source file: add.py print("This program adds two numbers") a = int(input("Enter first number: ")) b = int(input("Enter second number: ")) print(f"{a} + {b} = {a+b}") Destination…