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 and %*lf format for this…

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 P_in_radians f_sample (i) An example…

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, shamt and I[0:15] which determines…

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 the Fibonacci sequence whose values…

Dual Tone Multi Frequency Circuit

Dual Tone Multi Frequency Circuit Aim: Designing a touch tone signal generator for #1 by using oscillators. In this project, I need to design a touch tone signal generator for a specific button (for only one button #1). The output signal is the sum of the two corresponding sinusoids (high&low…

1 9 10 11