Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the question following the directions declared. Please answer questions a and b following the directions given. PROBLEM 1: [2*10 points) You've been asked

Please answer the question following the directions declared.
image text in transcribed
image text in transcribed
Please answer questions "a" and "b" following the directions given.
PROBLEM 1: [2*10 points) You've been asked to write a program that calculates and displays the output voltages, Vouti and Voutz of two electrical circuits and the sum, sum of the two voltages. The output voltage (in V) for the first circuit is given by the formula: Vouti 150 Vin 0.38 The output voltage (in V) for the second circuit is given by the formula: Vout2 220 Vin 562 + (0.98 / I Vin is the input voltage (in V) to each circuit, f is the frequency in Hz. (a) Determine formulas for converting input items into output items assuming proper data types. Declare variables with the data types and write corresponding C++ assignment statements. Note that Vin and can be different for the two circuits. SOLUTION: The formulas for converting input into output are given in the problem statement. In addition, the third output is generated by the sum of the previous two formulas. double // input voltages in V int // input frequencies in Hz (integer) (b) Test the formulas in (a), using the following sample data. The first circuit is operated with an input voltage of 1.2 volts at a frequency of 132 Hz, and the second circuit is operated with an input voltage of 2.3 volts at 100 Hz SOLUTION

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions