Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help with this c program. Plz do it with c code not c++ codes. Thank you so much. SUMMER 201 P1: AMINO ACID MOLAR MASS

Help with this c program. Plz do it with c code not c++ codes. Thank you so much. image text in transcribed
image text in transcribed
SUMMER 201 P1: AMINO ACID MOLAR MASS (basic program development) DUE: June 29, 2017, at 11:59 p.m. US Central Time POINTS: 50 NTRODUCTION: Amino acids in proteins are composed of atoms of oxygen, carbon, nitrogen, sulfur, and hydrogen. The atomic weights of the individual elements are as follows: ElementAtomic Weight Oxygen 15.9994 Carbon 12.011 Nitrogen 14.00674 Sulfur 32.066 Hydrogen 1.00794 To compute a molar mass for a given compound, multiply the number of atoms of each element in the compound by the atomic weight, then sum for all the different elements. As an example, consider diatomie oxygen (02). Element Number of Atoms Oxygen 2 Atomic Weight 15.999431.9988 Molar Mass (g/mol) Also, consider water (H:0) Atomic Weight Molar Mass (g/mol) 15.9994 1.00794 Number of Atoms Element Oxygen Hydrogen Total 15.9994 2.01588 18,01528 2 And ammonia (NH3): Element Number of Atoms Atomic Weight Molar Mass (g/mol) Nitrogen Hydrogen3 Total Atomic weight 14.00647 Sumber of Atoms MolarMass(g/mol), 14.00647 3.02382 1.00794 ASSIGNMENT Write a C program that asks the user to enter the number of atoms of each of the five elements for an amino acid. Then compute and print the molecular weight for this amino acid to the screen. Set the atomic weight for each element as symbolic constants (you should have a total of five). Use the "Code Sections.c" template on Blackboard to write your code. Your program output will look like the illustration shown below. Use your PC's cursor to determine the horizontal and vertical spacing for the output format

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Bachelors degree in Information Systems or Statistics

Answered: 1 week ago