![Thinking Like an Engineer: An Active Learning Approach (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134639673/9780134639673_largeCoverImage.gif)
Write a program to analyze the cooling of a cup of coffee. Start by asking the user to enter a matrix in the format [a, b; c, d]. The matrix win contain two columns; the first is time in minutes and the second is temperature in degrees Celsius. These pairs of values indicate the actual temperatures of the coffee at the specified times. If the matrix entered does not have at least two rows or does not have exactly two columns, warn the user and ask them to enter a matrix in the correct format until they do it correctly. Next ask the user to enter the room temperature [°C].
Create a table of output showing the time in hours and toe temperature above room temperature m degrees Fahrenheit.
Time must be shown to two decimal places; temperature should be shown as an integer.
- The output statement must be written such that the number of entries in toe matrix could change and the table would still be created correctly
Using the data entered, create a graph with an exponential trendline to project the temperature above room temperature at 30 minutes on a graph.
- The axis limits, grid, axis labels, and title must match exactly to the graph shown. The title is shown in bold, red letters, size 20. Time should be in minutes and temperature above room temperature should be degrees Fahrenheit.
- The markers are open red circles, size 16.
- The line is red dashed format, line width 2.
- Background color on the trendline text is green; font sue is 16.
- The background on the graph is white.
Example:
Enter a matrix of form [a, b; c, d] for time [min], temperature [deg C] of a cup of coffee.
[1, 91; 5, 87.5, 8, 84.9];
Enter the temperature of the room [deg C]: 26
Time (t) [h] | Temp above Room (T) [deg F] |
0.02 | 117 |
0.08 | 111 |
0.13 | 106 |
After the table and graph have been produced, use a menu to ask users if they wish to analyze another set of data, and either repeat or terminate the program as appropriate.
![Check Mark](/static/check-mark.png)
Want to see the full answer?
Check out a sample textbook solution![Blurred answer](/static/blurred-answer.jpg)
Chapter 19 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- This question i m uploading second time . before you provide me incorrect answer. read the question carefully and solve accordily.arrow_forward1. Create a table comparing five different analogous variables for translational, rotational, electrical and fluid systems. Include the standard symbols for each variable in their respective systems.arrow_forward2) Suppose that two unequal masses m₁ and m₂ are moving with initial velocities v₁ and v₂, respectively. The masses hit each other and have a coefficient of restitution e. After the impact, mass 1 and 2 head to their respective gaps at angles a and ẞ, respectively. Derive expressions for each of the angles in terms of the initial velocities and the coefficient of restitution. m1 m2 8 m1 m2 βarrow_forward
- 4. Find the equivalent spring constant and equivalent viscous-friction coefficient for the systems shown below. @ B₁ B₂ H B3 (b)arrow_forward5. The cart shown below is inclined 30 degrees with respect to the horizontal. At t=0s, the cart is released from rest (i.e. with no initial velocity). If the air resistance is proportional to the velocity squared. Analytically determine the initial acceleration and final or steady-state velocity of the cart. Take M= 900 kg and b 44.145 Ns²/m². Mg -bx 2 отarrow_forward9₁ A Insulated boundary Insulated boundary dx Let's begin with the strong form for a steady-state one-dimensional heat conduction problem, without convection. d dT + Q = dx dx According to Fourier's law of heat conduction, the heat flux q(x), is dT q(x)=-k dx. x Q is the internal heat source, which heat is generated per unit time per unit volume. q(x) and q(x + dx) are the heat flux conducted into the control volume at x and x + dx, respectively. k is thermal conductivity along the x direction, A is the cross-section area perpendicular to heat flux q(x). T is the temperature, and is the temperature gradient. dT dx 1. Derive the weak form using w(x) as the weight function. 2. Consider the following scenario: a 1D block is 3 m long (L = 3 m), with constant cross-section area A = 1 m². The left free surface of the block (x = 0) is maintained at a constant temperature of 200 °C, and the right surface (x = L = 3m) is insulated. Recall that Neumann boundary conditions are naturally satisfied…arrow_forward
- 1 - Clearly identify the system and its mass and energy exchanges between each system and its surroundings by drawing a box to represent the system boundary, and showing the exchanges by input and output arrows. You may want to search and check the systems on the Internet in case you are not familiar with their operations. A pot with boiling water on a gas stove A domestic electric water heater A motor cycle driven on the roadfrom thermodynamics You just need to draw and put arrows on the first part a b and carrow_forward7. A distributed load w(x) = 4x1/3 acts on the beam AB shown in Figure 7, where x is measured in meters and w is in kN/m. The length of the beam is L = 4 m. Find the moment of the resultant force about the point B. w(x) per unit length L Figure 7 Barrow_forward4. The press in Figure 4 is used to crush a small rock at E. The press comprises three links ABC, CDE and BG, pinned to each other at B and C, and to the ground at D and G. Sketch free-body diagrams of each component and hence determine the force exerted on the rock when a vertical force F = 400 N is applied at A. 210 80 80 C F 200 B 80 E 60% -O-D G All dimensions in mm. Figure 4arrow_forward
- 2. Figure 2 shows a device for lifting bricks and concrete blocks. It comprises two compo- nents ABC and BD, with a frictionless pin at B. Determine the minimum coefficient of friction required at A and D if the device is to work satisfactorily. W all dimensions in inches Figure 2 Darrow_forward1. The shaft AD in Figure 1 supports two pulleys at B and C of radius 200 mm and 250 mm respectively. The shaft is supported in frictionless bearings at A and D and is rotating clockwise (when viewed from the right) at a constant speed of 300 rpm. Only bearing A can support thrust. The tensions T₁ = 200 N, T₂ = 400 N, and T3 = 300 N. The distances AB = 120 mm, BC = 150 mm, and CD120 mm. Find the tension 74 and the reaction forces at the bearings. A T fo Figure 1arrow_forward5. Figure 5 shows a two-dimensional idealization of the front suspension system for a car. During cornering, the road exerts a vertical force of 5 kN and a leftward horizontal force of 1.2 kN on the tire, which is of 510 mm diameter. Draw free-body diagrams of each component and determine the forces transmitted between them. 250 A -320 B 170 D 170 -220-220- all dimensions in mm. Figure 5arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY
![Text book image](https://www.bartleby.com/isbn_cover_images/9780190698614/9780190698614_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9780134319650/9780134319650_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781259822674/9781259822674_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118170519/9781118170519_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781337093347/9781337093347_smallCoverImage.gif)
![Text book image](https://www.bartleby.com/isbn_cover_images/9781118807330/9781118807330_smallCoverImage.gif)