243 Answered Questions for the topic C
C Computer
04/02/25
C process problem
ProblemFirstly, downloading two text files from the url:https://drive.google.com/file/d/1fgJqOeWbJC4ghMKHkuxfIP6dh2F911-EThese file contains the 100000 ratings of 943 users for 1682 movies in the...
more
C
09/23/24
Defining and using functions and structures
You have been asked to recreate some C source code that was lost. The only remaining source code is the following:
int main()
{
char* months[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
...
more
06/11/23
IEEE-754 standard for 32-bit floating point
Using the IEEE-754 standard for 32-bit floating point, what biased exponents and mantissa values as given below represent NaN? (Choose all that apply) 0 and nonzero 0 and 255 0 and 0 255...
more
06/11/23
What is the biased exponent in this example, expressed as decimal?
Question 10To find the IEEE-754 SP floating point representation of the binary number 0.0000111, one first shifts thedecimal point to the (left or right) by right, 5 places. Question 11(Continuing...
more
06/11/23
Write the decimal number 29.23 as an unsigned fixed point binary
Write the decimal number 29.23 as an unsigned fixed point binary representation with 5 bits for the integer part and 4 bits for the fractional part. Be sure to round up, if needed, to obtain the...
more
06/06/23
Recursion in C - Explain Given Solution
Question: Write a recursive function to add to each number in a linked list the original values of its two neighbors. For example, 10->2->3->5->NULL becomes...
more
What Combinations Apply RISC-V
A nested function calls another function (plot_function with parameter a0) and is also called by another function. Given the code that follows RISCV calling convention, which sets of registers...
more
RISC-V Conventions
You are the author of the function F while your friend is the author of the function G. Both F and G are located in the same RISC-V main memory but you and your friend do not know the contents of...
more
Order of RISC-V Conventions
Suppose we have the following stack, where the red line is the indicator for sp: Suppose we now want the stack to contain these additional data items in the following order:We are given the...
more
04/15/23
Rewrite the scheduler function in xv6 from the default round robin scheduling algorithm into a priority based one
Hello, I have a programming assignment where I have to rewrite the scheduler function in xv6 from the default round robin scheduling algorithm into a priority based one for five different...
more
10/06/22
Minimax algorithm for tic tac toe in C
I have made a basic tic tac toe game which fills the board with X's and O's and checks for a winner/draw. How can I implement the minimax algorithm to 1) check for the next best move when the game...
more
06/21/22
Need assistance with C code, not running
#include <stdio.h>struct students{ //struct studentchar FirstName; //String to store first namechar secondName; //string to store second nameint ID; //student IDfloat GPA; //student gpachar...
more
01/25/22
how to write a C programme which creates two child processes
how to write a C programme which creates two child processes. Accept a file name from the user. First child should read the contents of the file line by line and writes this content in to shared...
more
Write a C program with the parent process and a child process communicating with each other using a pipe.
Write a C program with the parent process and a child process communicating with each other using a pipe. The child process will execute the shell command provided by the user via command line...
more
Write a C program where two child processes are created using fork().
Write a C program where two child processes are created using fork(). The parent process and the two child processes communicate with each other via a pipe. More specifically, the first child...
more
This exercise shows the idea of how to use one user-defined signal handler to handle two signals.
This exercise shows the idea of how to use one user-defined signal handler to handle two signals. The two signals chosen for this exercise are SIGINT and SIGQUIT. Read (or Google) the descriptions...
more
Arrays and Functions
Write a C program using a function called find_divisible_by_2() that gets an array and prints the elements of that array which are divisible by 2. Assume that the size of the array is 10.Here is...
more
Write the assembly code in AT&T syntax for the functions recursive, iterative, and closed, intended for people to be able to read it, not in assembly compiled and generated by a machine.
Write the assembly code in AT&T syntax for the functions recursive, iterative, and closed, intended for people to be able to read it, not in assembly compiled and generated by a machine. They...
more
Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine.
Write the assembly code in AT&T syntax for digits.c and height.c intended for people to be able to read it, not in assembly compiled and generated by a machine. They are both in C. Write the...
more
Fibonacci functions. You will write three functions, each of which computes Fibonacci numbers.
Write the assembly code for the functions fibonacci_recursive.s, fibonacci_iterative.s, fibonacci_closed.s. Provide the assembly code as the answers for all three functions separately.main.c...
more
C Programming Language. Please write the two programs in C.
C Programming Language. Please write the two programs in C. DigitsWrite this program in a file named digits.c.As input, you will define a quad word integer variable named input in the initialized...
more
Digits and height. You will write two complete programs in x64 assembly.
You will write two complete programs in x64 assembly. In order to put off a discussion of how to use the operating system (which is necessary for interacting with the console), your programs will...
more
Compilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.
CompilationCompilation is normally encapsulated so that all of the necessary steps happen behind the scenes. Type the following C code into a file named count.c.#include <stdio.h>#include...
more
04/08/21
Converting C to Pep9
Translate the following C program to Pep9 assembly language exactly as a compiler would translate it. Do not show the generated machine language code.
#include <stdio.h>
const int NUM1 =...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.