Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program to solve the problems, but simply answer the questions following the program specification. 1. Assume that a C++ program is to be

image text in transcribed
write a program to solve the problems, but simply answer the questions following the program specification. 1. Assume that a C++ program is to be written to calculate the total resistance of a series circuit. In such a circuit the total resistance is the sum of all individual resis- tance values. Assume that the circuit consists of a number of 56 ohm, 33 ohm, and 15 ohm resistors. a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items Assume that the number of S6 ohm resistors is m, the number of 33 ohm resis- tors is n, the number of 15 ohm resistors is p. d. Testthe algorithm,written for part c using the following sample data: m = 17, n = 24, and p 12. 2. Assume that a program is to be written to calculate the value of distance, in miles, given the relationship: distance rate" elapsed time a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the following sample data: rate is 55 miles per hour and elapsed time is 2.5 hours. e. How must the algorithm you determined in par c be modified if the elapsed 3. Assume that a program is to be written to determine the value of Ergies, given time were given in minutes instead of hours? the relationships: Ergies Fergies /Lergies a. For this programming problem how many outputs are required? b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items. d. Test the algorithm written for part c using the following sample data: 14.65, = 3.1416, 1.672, and 2.7818. Fergies 4. Assume that a program is to be written to display the following specifications: Voltage Amplification: 35 2.5 watts 15KHz ower output: Bandwidth: a. For this program problem how many lines of output are required b. How many inputs does this problem have? c. Determine an algorithm for converting the input items into output items

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

Data Management Databases And Organizations

Authors: Watson Watson

5th Edition

0471715360, 978-0471715368

More Books

Students also viewed these Databases questions

Question

1. What might have led to the misinformation?

Answered: 1 week ago

Question

2. How will you handle the situation?

Answered: 1 week ago