Question
write the program for computer apps 1

6. (Electrical eng.) Youve been asked to write a program that calculates and displays the output voltages of two electrical
The output voltage for the second circuit is given by this formula: 562+ (0.98f2 V is the input voltage to the circuit. fis t
6. (Electrical eng.) You've been asked to write a program that calculates and displays the output voltages of two electrical circuits and the sum of the two voltages, The output voltage for the first circuit is given by this formula: 150 V 0.38/
The output voltage for the second circuit is given by this formula: 562+ (0.98f2 V is the input voltage to the circuit. fis the frequency in hertz. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? o. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 6c, using the following sample data: The first circu is operated with an input voltage of 1.2 volts at a frequency of 144 Hz, and the second circu is operated with an input voltage of 2.3 yolts at 100 Hz.
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Circaut 1 oukput volta ノー V an& f too circuit 2 od H

/ *Program to compute voltages of 2 circuits and their sum*/


#include <stdio.h>
#include <math.h>
int main()
{
    /*variables declarations*/
    double voltage1,voltage2;
    double v1,f1,v2,f2, sum;
    v1=1.2;
    f1=144;
    voltage1=(150*v1 )/(0.38*f1);
    printf("voltage of circuit1=%f",voltage1);
    v2=2.3;
    f2=100;
    voltage2=(230*v2)/ sqrt( pow(56,2) + pow(0.98*f2 ,2) );
    printf("\nvoltage of circuit2=%f", voltage2);
    sum=voltage1+voltage2;
    printf("\nsum of voltages of two circuits=%f",sum);
    return 0;
}

Add a comment
Know the answer?
Add Answer to:
write the program for computer apps 1 6. (Electrical eng.) You've been asked to write a program that calculate...
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
  • Laboratory 1: operation amplifier characteristics A. Objectives: 1. To study the basic characteri...

    thanks Laboratory 1: operation amplifier characteristics A. Objectives: 1. To study the basic characteristics of an operational amplifier 2. To study the bias circuit of an operational amplifier B. Apparatus: 1. DC Power supply 2. Experimental board and corresponding components 3. Electronic calculator (prepared by students) 4. Digital camera (prepared by students for photo taking of the experimental results) 5. Laptop computer with the software PicoScope 6 and Microsoft Word installed. 6. PicoScope PC Oscilloscope and its accessories. 7. Multimeter...

  • summatize the following info and break them into differeng key points. write them in yojr own...

    summatize the following info and break them into differeng key points. write them in yojr own words   apartus 6.1 Introduction—The design of a successful hot box appa- ratus is influenced by many factors. Before beginning the design of an apparatus meeting this standard, the designer shall review the discussion on the limitations and accuracy, Section 13, discussions of the energy flows in a hot box, Annex A2, the metering box wall loss flow, Annex A3, and flanking loss, Annex...

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