C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 1.3, Problem 3E
(Electrical eng.) You’ve been asked to write a program that outputs the following specifications:
Voltage amplification: 35
Power output: 2.5 watts
Bandwidth: 15 KHz
a. For this
b. How many inputs does this problem have?
c. Determine a formula for converting input items into output items.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Please type it
Computer Science
Please help
You went camping overnight but forgot to take with you a heater and need to make one using a dc battery of V0 and spare electrical wires of different lengths and resistivity. The battery has lead with the resistance of Rw.
Please obtain the formula for the joule heat power and plot it as a function of RH ( in MATLAB) and in comparison to the resistance of the connecting leads, Rw. (Note: express RH = x Rw, where x is the effective ratio; vary x and plot Pmax vs. x). and Find the heating power if the heater is made out of superconducting metal. Will this heater work and why?! What is to happen on the molecular ( i.e. electron) level ?!
Problem 3: Programming
1. Write a program that simulates the rolling of two dice.
• Call the program, "dice.cpp".
• The program should call rand to roll the first die, and should call rand again to roll the second die.
• The sum of the two values should then be calculated. [Note: Each die has an integer value from 1 to 6,
so the sum of the two values will vary from 2 to 12, with 7 being the most frequent sum and 2 and 12
being the least frequent sums.]
• There 36 possible combinations of the two dice.
• Your program should roll the two dice 360,000 times.
Use a one-dimensional std:array to tally the numbers of times each sum appears.
Print the results in a tabular format. Follow the sample output exactly.
Also, determine if the totals are reasonable (i.e., there are six ways to roll a 7, so approximately one
sixth of all the rolls should be 7).
• Use the at member function of the array class to access the elements of the array.
• Be sure to use constant variables for the dimension of…
Chapter 1 Solutions
C++ for Engineers and Scientists
Ch. 1.1 - (Practice) a. To convert inches (in) to feet (ft),...Ch. 1.1 - (Conversion) Blood pressure is the force of blood...Ch. 1.1 - Prob. 3ECh. 1.1 - Prob. 4ECh. 1.1 - (Practice) a. Determine the conversion factors...Ch. 1.1 - Prob. 6ECh. 1.1 - (Automotive) a. An automobile engine’s performance...Ch. 1.1 - (Chemistry) a. Determine the final units of the...Ch. 1.1 - (Oceanography) The pressure, P, exerted on an...Ch. 1.1 - (Thermodynamics) The work, W, performed by a...
Ch. 1.2 - (Practice) Convert the following numbers from...Ch. 1.2 - Prob. 2ECh. 1.2 - Prob. 3ECh. 1.2 - Prob. 4ECh. 1.2 - Prob. 5ECh. 1.2 - Prob. 6ECh. 1.2 - Prob. 7ECh. 1.3 - (Electrical eng.) You’ve been asked to write a C++...Ch. 1.3 - (Physics) You’ve been asked to write a program to...Ch. 1.3 - (Electrical eng.) You’ve been asked to write a...Ch. 1.3 - Prob. 4ECh. 1.3 - (General math) Consider the following programming...Ch. 1.3 - Prob. 6ECh. 1.3 - (Statistics) This is the formula for the standard...Ch. 1.3 - Prob. 8ECh. 1.4 - (Practice) Determine a step-by-step procedure...Ch. 1.4 - Prob. 2ECh. 1.4 - Prob. 3ECh. 1.4 - Prob. 4ECh. 1.4 - Prob. 5ECh. 1.4 - (Numerical) a. Write a set of detailed,...Ch. 1.4 - (Data processing) a. Write an algorithm to locate...Ch. 1.4 - (Data processing) Determine and write an algorithm...Ch. 1.4 - (Numerical) Determine and write an algorithm to...Ch. 1 - (Conversion) Determine which of the following...Ch. 1 - (Conversion) An object’s polar moment of inertia,...Ch. 1 - Prob. 3PPCh. 1 - Prob. 4PPCh. 1 - Prob. 5PPCh. 1 - Prob. 6PPCh. 1 - Prob. 7PPCh. 1 - Prob. 8PP
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- I need the answer as soon as possiblearrow_forward[Python Language] [Python Language] Is it time for tea?Your friend lives in London England in a timezone that is normally 6 hours ahead of Toronto Canada. But sometimes London and Toronto switch to daylight savings time on different dates. If Toronto is on daylight savings time and London isn’t, then the time difference is only 5 hours. Conversely, if London is on daylight savings time and Toronto isn’t, the time change is 7 hours. Of course, if both are on daylight savings time, the difference is back to the standard 6 hours. Write a program that takes three lines of input: a float value representing the time in Toronto, whether Toronto is on daylight savings time (1 means yes, 0 means no), and whether London is on daylight savings time (1 means yes, 0 means no). It prints a float giving the time in London. One complication is that you should not print a time greater or equal to 24.0 or less than 0.0. Suggestion: At first don’t consider this complication, and test cases where the…arrow_forward(Mechanics) The deflection at any point along the centerline of a cantilevered beam, such as the one used for a balcony (see Figure 5.15), when a load is distributed evenly along the beam is given by this formula: d=wx224EI(x2+6l24lx) d is the deflection at location x (ft). xisthedistancefromthesecuredend( ft).wistheweightplacedattheendofthebeam( lbs/ft).listhebeamlength( ft). Eisthemodulesofelasticity( lbs/f t 2 ).Iisthesecondmomentofinertia( f t 4 ). For the beam shown in Figure 5.15, the second moment of inertia is determined as follows: l=bh312 b is the beam’s base. h is the beam’s height. Using these formulas, write, compile, and run a C++ program that determines and displays a table of the deflection for a cantilevered pine beam at half-foot increments along its length, using the following data: w=200lbs/ftl=3ftE=187.2106lb/ft2b=.2fth=.3ftarrow_forward
- . Consider a program for calculating the volume of a sphere. Let the value of PI = 3.14159265358979. The value of radius we want to input has a maximum precision value of 5 digits. What should be the type of the variables “radius” and “volume” so that the volume is correct to at least 16 decimal places and requires minimum data memory? Justify your answer. [2]arrow_forwardPROBLEM: Write a program that computes the equivalent resistance of a purely series and purely parallel electric circuit. SPECIFICATIONS: • The program will ask the user to choose whether to compute for the equivalent resistance of a series or parallel combination. • The user will input three resistance values R1, R2, and R3 in ohms. • The program will provide an output of equivalent resistance in series (Rs) or parallel (Rp). • You may only use the codes that we studied in our lectures. • All lines of codes should have a comment. To recall, the formula for solving the resistance for a purely series and purely parallel circuit are: a. Series Circuit: R1 120 ohms R2 Vs 100 V Rs = R7 = R1 + R2 + R3 + …+ Rn ... 30 ohms R3 50 ohms b. Parallel Circuit: 1 1 1 + R1' R2 ' R3 1 1 1 ... Rp RT Rn R1 R2 10 ohms Vs 40 ohms 40 Volts TEST CASES: If the user inputs a character: Computing for the equivalent resistance A. Series Combination B. Parallel Combination Enter Choice: B Enter R1: 1 Enter R2: 2…arrow_forwardI need help to develop a Python program for the following problem. How can I use the Harris-Benedict equation that estimates the number of calories your body needs to maintain your weight if you do not exercise? Which is called a basal metabolic rate, or BMR. The calories needed for a woman to maintain her weight are: WBMR = 655 + (4.3 × weight in pounds) + (4.7 × height in inches) − (4.7× age in years) The calories needed for a man to maintain his weight are: MBMR = 66 + (6.3 × weight in pounds) + (12.9 × height in inches) − (6.8 × age in years). Write a program that allows the user to input his or her gender, weight in pounds, height in inches (or feet and inches), and age in years. The program should then display on its output the number of chocolate bars that should be consumed by the individual to maintain one’s weight. Also output the individual's weight, height, age, gender, and BMR.arrow_forward
- 1. Derive the modified distance formula if we want the projectile lands on a hill that has a height of h(x) (the function x increases monotonically), at a distance R. Write F(x) whose roots must be found in order to find the angle initial, given the initial velocity V0. (With python 3)arrow_forwardI need the answer in number 4 and 5. See the example above.arrow_forwarduse python codearrow_forward
- ...Solution ... nedded in ---- js programarrow_forwardThe ant population growth is supposed to follow the following equation: (V2 +0.002 + e)'° 1.8 N(t) + e') -In (1 +t3 ) tis the time in seconds and N is the population size at any given time. A) Write a MATLAB anonymous function called 'N fune' that implements N(t). B) Call the above function to do the following: (i) Calculate the values of N for t varying between 0 and 2s with a step of 0.1s. (ii) Generate the two plots of N vs t in the same figure window as shown below: 70 10 60 50 30 20 10 1.5 0.5 1.5 t(ec)arrow_forwardcan you do it in python, thank you.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Boolean Algebra - Digital Logic and Logic Families - Industrial Electronics; Author: Ekeeda;https://www.youtube.com/watch?v=u7XnJos-_Hs;License: Standard YouTube License, CC-BY
Boolean Algebra 1 – The Laws of Boolean Algebra; Author: Computer Science;https://www.youtube.com/watch?v=EPJf4owqwdA;License: Standard Youtube License