Reference no: EM13216700
An engineering student is examining the x-ray diffraction pattern of aluminum samples. She has come to you to write a program that can calculate the lattice parameter of aluminum given the raw peak data from the diffractometer for each of her samples. The lattice parameter equation is:
where: a = lattice parameter, nm
diffractometer wavelength, 0.154056 nm
angle of diffraction, degrees
h, k, and l = indices of planes causing diffraction, positive integers
You are given the data for one sample in a file named AluminumIn.txt. The first line of the file contains a single, positive integer n that indicates the number of peaks included in the file. This number will never be greater than 50. The rest of the file contains n lines of data arranged in four columns as 2θ, h, k, and l. An example of a possible data file is shown below:
3
38.52 1 1 1
112.03 3 3 1
82.47 2 2 2
Write a complete program consisting of a Main Program and Subprogram (you choose which type, but there should be only one) that fulfills the following requirements:
• The diffraction data is read from the file into a 2D array in the Main Program.
• The subprogram calculates the lattice parameter, a, in Å (Angstroms, 1 Å = 10-10 m) for each set of 2θ, h, k, and l and stores the answers as a 1D array (note that the lattice parameter equation uses θ and the data is given as 2θ in degrees).
• The subprogram calculates the mean of all lattice parameters.
• The Main Program handles all output. Output should consist of a data file containing a table listing all 2 θ, h, k, l, and a with the average lattice parameter (e.g. 4.53 Angstroms) indicated below the table. The output file should be well formatted with all values properly labeled.
Which political party did littlefield say frank baum support
: Which political party did Littlefield say Frank Baum supported?
|
Compute the second specimen radius after deformation
: compute the second specimen's radius after deformation.
|
Ensure protected health information
: Identify (3) ways to ensure Protected Health Information (PHI) is kept secure. Discuss physical protection, electronic protection, and positional protection strategies for the office and the value of each.
|
Determine the work input and the amount of heat rejected
: The cylinder of a water-cooled reciprocating compressor contains 0.05m^3 of air at 1.01bar. It is compressed isothermally to 8.0 bar. Determine the work input and the amount of heat rejected to the compressor cooling water.
|
Calculate the lattice parameter of aluminum
: Write a complete program consisting of a Main Program and Subprogram (you choose which type, but there should be only one) that fulfills the following requirements.
|
Explain what is economic profit
: Gomez runs a small pottery firm. He hires one helper at $11,500 per year, pays annual rent of $7,000 for his shop, and spends $22,500 per year on materials. He has $40,000 of his own funds invested in equipment (pottery wheels, kilns, and so forth..
|
Determine the maximum stress and the maximum shearing stress
: Knowing that the gage pressure inside the tank is 5 MPa, determine the maximum stress and the maximum shearing stress at point L.
|
Determine the magnitude t of the applied torque
: The tank has a 180 mm inside diameter and a 12 mm wall thickness. Knowing that the tank contains compressed air under a pressure of 8 MPa, determine the magnitude T of the applied torque for which the maximum normal stress in the tank is 75 MPa.
|
Explain how do issues relate to the strategic choices
: What would be the advantages and disadvantages of using the existing LG compensation package in India? How might it differ from a more typical Indian package? What additional information would O'Dell need to make this decision?
|