Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
4th Edition
ISBN: 9780134639673
Author: Elizabeth A. Stephan, David R. Bowman, William J. Park, Benjamin L. Sill, Matthew W. Ohland
Publisher: PEARSON
bartleby

Videos

Textbook Question
Book Icon
Chapter 19, Problem 24RQ

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.

Chapter 19, Problem 24RQ, Write a program to analyze the cooling of a cup of coffee. Start by asking the user to enter a

Blurred answer
Students have asked these similar questions
6. Consider a 10N step input to the mechanical system shown below, take M = 15kg, K = 135N/m, and b = 0.4 Ns/m. (a) Assume zero initial condition, calculate the (i) System pole (ii) System characterization, and (iii) The time domain response (b) Calculate the steady-state value of the system b [ www K 个 х M -F(+)
2. Solve the following linear time invariant differential equations using Laplace transforms subject to different initial conditions (a) y-y=t for y(0) = 1 and y(0) = 1 (b) ÿ+4y+ 4y = u(t) for y(0) = 0 and y(0) = 1 (c) y-y-2y=0 for y(0) = 1 and y(0) = 0
3. For the mechanical systems shown below, the springs are undeflected when x₁ = x2 = x3 = 0 and the input is given as fa(t). Draw the free-body diagrams and write the modeling equations governing each of the systems. K₁ 000 K₂ 000 M₁ M2 -fa(t) B₂ B₁ (a) fa(t) M2 K₂ 000 B K₁ x1 000 M₁ (b)

Chapter 19 Solutions

Thinking Like an Engineer: An Active Learning Approach (4th Edition)

Ch. 19.3 - Write a for loop to display every even number from...Ch. 19.3 - Write a for loop to display every multiple of 5...Ch. 19.3 - Write a for loop to display every odd number from...Ch. 19.3 - Assume a vector Vals has already been defined....Ch. 19.3 - Consider the following table of values. Determine...Ch. 19.3 - Write two nested for loops to determine how many...Ch. 19.3 - Assume a matrix MZ has already been defined. Write...Ch. 19.3 - Prob. 18CCCh. 19.3 - Determine the output of the following code:Ch. 19 - Prob. 1ICACh. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - Create a written algorithm or flowchart as...Ch. 19 - For each of the following code segments, determine...Ch. 19 - a. Assume CA1 and CA2 are cell arrays that both...Ch. 19 - Fill in the table with the values of k, b, x, and...Ch. 19 - Assume that a simple menu has been created by the...Ch. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Write a program that will ask the user to input a...Ch. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Write a function named CountDown that accepts a...Ch. 19 - While experimenting with coding sequences, you...Ch. 19 - Answer the question with each of the following...Ch. 19 - For each of the following code segments, determine...Ch. 19 - a.Explain what the following function does,...Ch. 19 - For each of the following code segments, determine...Ch. 19 - Prob. 23ICACh. 19 - Prob. 24ICACh. 19 - Write a MATLAB program to implement the algorithm...Ch. 19 - Prob. 26ICACh. 19 - Write a function named GetArray that will accept...Ch. 19 - Assume the vector AM contains an even number of...Ch. 19 - Write a function named EvenSum that will accept a...Ch. 19 - Prob. 30ICACh. 19 - Write a function named CLASS that will accept a...Ch. 19 - You are assessing the price of various components...Ch. 19 - You are studying the number of defective parts...Ch. 19 - The pascal triangle an amazing number of uses,...Ch. 19 - Write a function named Prodstate that will accept...Ch. 19 - Design a flowchart for a program to help students...Ch. 19 - Create an algorithm to allow the user to enter a...Ch. 19 - Write a program to implement the algorithm...Ch. 19 - A zombie picks up a calculator and starts adding...Ch. 19 - Write a function called Balloon that will accept a...Ch. 19 - Prob. 7RQCh. 19 - Prob. 8RQCh. 19 - You are to program part of the interface for a...Ch. 19 - Prob. 13RQCh. 19 - A matrix names mach contains three columns of data...Ch. 19 - Prob. 15RQCh. 19 - You are programming the control system for a robot...Ch. 19 - Write a program to implement the GPA calculator...Ch. 19 - The Fibonacci sequence is an integer sequence...Ch. 19 - As early as 650 BC, mathematicians have been...Ch. 19 - Write a program to analyze the cooling of a cup of...Ch. 19 - After numerous experiments with a circuit...
Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press
Text book image
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON
Text book image
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education
Text book image
Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY
Text book image
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning
Text book image
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Dimensional Analysis - in physics; Author: Jennifer Cash;https://www.youtube.com/watch?v=c_ZUnEUlTbM;License: Standard youtube license