c++ please
HAND IN LABORATORY TASK: LAB #7: SEE END OF CHAPTER! Amino Acid Molecular Weights START LINE: NAME, DATE, LAB # ie Molecular weight is the combining of the atomic weights of the individual elements in a molecular! The amino acids are composed of atoms of oxygen, carbon, nitrogen, sulfur and hydrogen whose atomic weights (average of isotopes) are Oxygen(O) 15.9994; Carbon(C) 12.011; Nitrogen(N) 14.00674; Sulfur(s) 32.066 Hydrogen(H) 1.00794 in amu units (atomic mass units- originally based on weights relative to hydrogen now they use carbon. And are constant for this program.. use "const"! Program inputs: program asks user for the name of the amino acid and how many of each of the above atoms are in it, us O if none. All on one line!!! Program outputs the name of the acid, the number of each of the atoms above and finally the molecular weight (=sum of all the atoms atomic mass units ). with appropriate wording so the user knows what they got. REMEMBER 1. ABSTRACT ON THE TOP OF THE PROGRAM 2. outputs to the user so the know what this program will do and what they have to give! 3. Hand calculation for first one only! Use Lots of comments. Use constants. Set up prior to main(). Output-> use formats of Scientific and setw(), continued next page 75 of 75 First RUN: input amino acid name "glycine" (use a string variable for all acid names), and all the number of the elements in the amino acid at a time, ON ONE LINE for the calculation, rather than 6 separate "cin" lines. Number of Atoms in glycine: 0=2,C=2,N=1,S=0,H=5 Rerun it for Methionine O=2.C=5.N=1,S=1, H=11 (not a separate program!) HINT AND REMINDER: cin>>>>y>>z; would be a way to enter 3 values at once, either 1 at a time with a return for each or all three on the line with a space between them and a final return to load the variables. EXTRA CREDIT: answer 1. use the back of chapter two and do a run for two more amino acids. 2. State which of the amino acids is the most massive and which the least of the four you will do. 3. Answer this question: What are amino acids and what is their use? 4. Use a loop to keep the program going under your control till you decide to end it. (advanced students) extra extra