![Thinking Like an Engineer](https://www.bartleby.com/isbn_cover_images/9781269910989/9781269910989_largeCoverImage.gif)
Concept explainers
A phase diagram for carbon and platinum is shown. It is assumed the lines shown are linear, and the mixture has the following characteristics. The endpoints of the division line between these two phases are labeled on the diagram.
■ Below 1700 degrees Celsius, it is a mixture of solid platinum (Pt) and graphite (G).
■ Above 1700 degrees Celsius, there are two possible phases: a Liquid (L) phase and a Liquid (L) + phase (G).
Write a program to determine the phase. The program should ask the user to enter the weight percent carbon and the temperature in degrees Celsius. Call the phases “Pt + G,” “L,” and “L + G,” for simplicity. If the point falls directly on the T = 1700°C line, include the point in the “Pt + G” phase. If the point falls directly on the L, L + Gline, include the point in the “L + G” phase.
Store the phase as text in a variable. The equation of the line dividing the L and L + G phases must be found in the program using polyfit. The program should produce a formatted output statement to the command window. Similar to “For X.XX weight percent carbon and a temperature of YYY degrees Celsius, the phase is PHASE” where x.xx, yyy and PHASE are replaced by the actual values formatted as shown.
The following partial code is designed to implement this program. You are to fill in the missing sections of code as appropriate to complete the program.
![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
- (read image)arrow_forwardQu 2 Schematically plot attractive, repulsive, and net energies versus interatomic separation for two atoms or ions. Note on this plot the equilibrium separation (distance) ro and the bonding energy Eo. Qu 3 How many atoms (or molecules) are in one mole of the substance? Qu 4 Mole, in the context of this book, is taken in units of gram-mole. On this basis, how many atoms are there in a pound-mole of a substance? Qu 5 The atomic radii of Mg* and F ions are 0.072 and 0.133 nm, respectively. Calculate the force of attraction between these two ions at their equilibrium interionic separation (i.e., when the ions just touch one another). What is the force of repulsion at this same separation distance?show all work step by step problems formulaarrow_forwardQu 4 Silver has FCC crystal structure at room temperature, and a lattice constant, a, of 0.407 nm. Draw a reduced sphere silver unit cell in the grids provided below, clearly label the lattice dimensions. Within the unit cell you drew, shade the (1 0 0) plane. How many atoms are contained within the (1 0 0) plane? Calculate the area of (1 0 0) plane in [nm?]. Express your answer in [nm?] to three significant figures. Calculate the planar density of the (1 0 0) plane in [atoms/nm?]. Express the answer in atoms/nm to three significant figures. show all work step by steparrow_forward
- Can I get help on this question?arrow_forwardDuring some actual expansion and compression processes in piston–cylinder devices, the gases have been observed to satisfy the relationship PVn = C, where n and C are constants. Calculate the work done when a gas expands from 350 kPa and 0.03 m3 to a final volume of 0.2 m3 for the case of n = 1.5. The work done in this case is kJ.arrow_forwardCarbon dioxide contained in a piston–cylinder device is compressed from 0.3 to 0.1 m3. During the process, the pressure and volume are related by P = aV–2, where a = 6 kPa·m6. Calculate the work done on carbon dioxide during this process. The work done on carbon dioxide during this process is kJ.arrow_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)