File Operations in C

Task1 Write a program that joins the two sorted files to an output file such that the resulting file is also sorted. Your program should read the names of the files to be joined from the command line, as well as the name of the…

Using fprintf() with different format (%*s.*lf)

Writing a program that outputs PI in different formats, as given below (and also in PIs.txt). You can use M_PI from math.h. Codes with fewer lines than 30 will get extra marks (my code is 21 lines excluding comments). Like Bellow Figure. I use the %*s…

Printing samples of a sinusoidal signal using C

Samples of a sinusoidal Writing a program that prints samples of a sinusoidal signal at f0 sampled at fsample with peak amplitude A and phase P, for two periods (T0). Take A, f0, P, and fsample from command-line as arguments, as follows: ProgramName A f_0…

16-Bit CPU on Logisim

  Single Cycle Processor Design ALU Design For the ALU design, Idid not use the built in aritmethic library. Instead Idesigned each tool(adder, subtractor, multiplier and shifter) meyself. Register File   Splitter This unit is responsible for the separation of the opcode, Rs, Rt, Rd,…

Loop Operation and Recursive Functions in C

Given task; Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 1, the first 10 terms will be: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, … By considering the terms in…