Question

Dear Helpers, this is my final project for programming in C. I am not a programmer...

Dear Helpers, this is my final project for programming in C. I am not a programmer but need to pass this class please help!! I do not have a clue as how to start this project : Project for This Course Goal: Develop a program that will automatically adjust a variable resistor until the maximum power is transferred to a load resister. Purpose: For this project, you will create a prototype of a circuit designed to transfer the maximum power to a load. The program will receive a keyboard input representing the value of the power supply (VCC) and the size of the load resistor (RL). The program will simulate driving a motor controlled variable resistor (Rint) by incrementally changing the value of the variable resistor. Requirements: Analyze the following program requirements. -You are designing a circuit that will automatically adjust circuit resistance until the maximum power is delivered to the load. -The circuit consists of a programmable power supply (VCC), a variable internal resistor (Rint), and a programmable load resistor (RL). Examine the schematic: -The user will enter the value of the VCC and the value of Rint. The program must automatically adjust RL until the maximum power is transferred. RL is a 100 to 10k ohm potentiometer that is controlled by the program. -The Programmable Power Supply has a range of 1 to 15 VDC. Rint has a range of 200 Ohms to 5 kOhms and is accurate to 1 Ohm. Values that are not within range will damage the equipment and cannot be accepted. -After valid values are entered, the program will automatically adjust RL as follows: --The beginning value for RL will be 100 ohms below the value of Rint --RL will be incremented 1 ohm at a time and the power dissipated by both Rint and RL will be calculated at each increment of RL. --The final value of RL will be 100 ohms above Rint -The program will then use the calculated values to determine the value of RL that delivers the maximum power to RL. -The program must output the calculated values in descending order starting with the point of maximum power transfer to RL as well as printing separately the maximum power delivered to RL. -The output above will also be written to a file with the filename “results.txt” Program requirements: 1. Programmable Power Supply (VCC) a. Valid output range is 1 to 15VDC. b. Valid voltages are in increments of .1V. 2. Programmable Internal Resistance (Rint) a. Valid values are 200 Ohms to 5kOhms b. Valid resistance increments are 1 ohm. 3. Program Input a. The program must not allow illegal input values. b. The program must either be tuning, producing output, or waiting for new power and load values with the following message. Input request: “New Power Supply Voltage: “ 4. Program Output a. The output must have the following structures. Output: “RL Rint Power Power” “ Rint RL” “100 1000 .008 .08” b. The final output message must look like the following: Maximum power transferred to RL is 99.1 m Watts. c. Invalid inputs must have corresponding messages that advise the user to provide valid inputs. 5. Program Structure: The program must use at least 1 function prototype.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

include madh.h> 啡, includa <stdio.h> int mainC double mot召, Pouen Sopply, cument, nesisl@ Q= loooo, tj wen

ouun Calcul de Cunnen t

M onumum man ouimum pouwn)

Add a comment
Know the answer?
Add Answer to:
Dear Helpers, this is my final project for programming in C. I am not a programmer...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • C programming - This is what I have so far but it is not working correctly....

    C programming - This is what I have so far but it is not working correctly. It must contain the function and it also needs a provision to write output to a file. Can anyone help? #include <stdio.h> I #include <math.h int main (void) int V float Rint, RLE0, 0; printf New power supply voltage scanf ("td", &V) printf Enter a valid Internal Resistance (Rint) range between 200 and 5k ohms: scanf ("tf", Rint if (V> 1 && VK 15)...

  • NAME IIl. (34 pts).) The circuit below is a power amplifier. It should provide a power...

    NAME IIl. (34 pts).) The circuit below is a power amplifier. It should provide a power output of 12 Watts to an 8 Ohm load. The input resistance of the power amp (as seen by the signal source Vs) should be 20k Ohms. The maximum value of the signal source Vs is 0.5v rms Determine (a) The minimum values of the power supply voltages needed (+Vcc and-Vcc), (b) The values of resistors R1 and R2, (c) The minimum slew rate...

  • I am working on my Physics lab report where it was all about Direct Current Measurement...

    I am working on my Physics lab report where it was all about Direct Current Measurement and Ohm’s Law. We had 5 different resistors and had to construct different circuits using a power supply, volt-ohm-milliammeter (VOM) and a digital multimeter to get measurements of resistance, voltage, and current. Nominal values of resistance and tolerance Resistor Nominal Resistance (Ohms) Tolerance (Ohms) R1 680 +/- 68 R2 1000 +/- 50 R3 1500 +/- 75 R4 4700 +/- 470 R5 10,000 +/- 500...

  • Solve for the over-all Power Gain, Output Power, Quiescent Power, and Efficiency Vee 12V Qa 0, 0....

    Solve for the over-all Power Gain, Output Power, Quiescent Power, and Efficiency Vee 12V Qa 0, 0.22 pP 10 pF o Ln OkH 00 pF 33 Ω 2 W 100 pF 3 Class C(15pts) 2.1 For a class B amplifier providing a 20-V peak signal to a 16- ohm load (speaker) and a power supply of VCC 30 V, determine the A class C amplifier is driven by a 100 kHz signal. The transistor is on for 2 us, and...

  • You are required to design a 2-stage voltage amplifier (find values for RE, RC1, RC2) to meet the following criteria: an...

    You are required to design a 2-stage voltage amplifier (find values for RE, RC1, RC2) to meet the following criteria: an input resistance of 400 kΩ and an overall voltage gain equal to or greater than 250, with a resistor output load, RL. Use a common-emitter with emitter degradation (RE) stage for the input, followed by a commonemitter amplifier with bias current equal to 0.5 mA. (VCC = 20 V, βo = 200 and the DC levels of the first...

  • 1. Figure 1 shows a CE power amplifier in which the collector resistor serves also as...

    1. Figure 1 shows a CE power amplifier in which the collector resistor serves also as the load resistor. Assume Bpc Bac 100 a. Determine the dc Q-point (lco and VCEQ). b. Determine the voltage gain and the power gain c. The power dissipated in the transistor with no load. d. The total power from the power supply with no load e. The signal power in the load with a 500 mV input. f. What changes would be necessary to...

  • that's all information it gives A zener-diode voltage regulator circuit is shown below. The tage V 8.0V and the zener resistance is assumed to Problem 3: (20 points) zener diode has breakdown...

    that's all information it gives A zener-diode voltage regulator circuit is shown below. The tage V 8.0V and the zener resistance is assumed to Problem 3: (20 points) zener diode has breakdown vol be 0 ohms. The power supply voltage Vps can vary between resistance RL can vary between 100 ohms and 1 kohm. 10V and 14V and the load Ri PS 1. Find a value of Ri such that the zener diode remains properly biased over the range of...

  • Fundamentals of Electronic Engineering Answer should be step by step and readable (clear handwriting) Given: •...

    Fundamentals of Electronic Engineering Answer should be step by step and readable (clear handwriting) Given: • Power voltage: • Collector resistor: • Current amplification of BJT: • Source peak voltage: • Input/Output resistance: • The corner frequency: Vcc = 12V; Rc = 4k22; B = 100; Vs = 10mV; Rvs, RL = 1 ks2; f-3dB = 100Hz. Vec=12V w • Rc www R1 HE Сс CC2 RL + R2 RE CE Find: ? Bias quiescent point: Load line, Q-point, VcEQ,...

  • Final question: Question 16 1 pts What primarily limits the high frequency performance of a typical...

    Final question: Question 16 1 pts What primarily limits the high frequency performance of a typical compressed-carbon resistor? lead inductance shunt capacitance nonlinear effects in the carbon thermal losses Question 17 1 pts If a ferrite bead has an effective resistance of 100 ohms at 100 MHz, what impact will it have on a DC voltage? none it will act like a 100 ohm resistor at DC O it will act like a resistance of some other nonzero value at...

  • EE 282-Circuit I Pre-Lab 9 Maximum Power Transfer Theorem Name Concepts: In this pre-lab we will ...

    EE 282-Circuit I Pre-Lab 9 Maximum Power Transfer Theorem Name Concepts: In this pre-lab we will be leaming about Maximum Power Transfer Theorem. Maximum power is transferred to the load when the load resistance equals the thexenin equivalent, and we carry out the analysis using Thevenin's equivalent circuit. In order to do this, first build the following circuit on Mutism. 1 R1 5.1k0 R3 2 V1 R2 8kQ 6.8㏀ Fig. 1 Part 1: To find the Thevenin equivalent resistance, we...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT