Display all entries in order by ascending number of atoms

Assignment Help C/C++ Programming
Reference no: EM13938958

We have been given a file of chemical formulae, specifically hydrocarbons that consist of only hydrogen and carbon atoms.

Each line of the file contains the name of the chemical followed by its molecular formula in the form C#H# where # is the number of carbon (C) and hydrogen (H) atoms. No name in the file contains blanks.

Because hydrocarbons with the same molecular formula can appear in many structural forms and each of the forms has a different name, the same molecular formula might appear more than once in the file with different names. (e.g.: Butane and 2-methylpropane both have the molecular formula C4H10.)

We would like to keep one entry for each unique molecular formula along with all the names for that formula and then display all these entries in order by ascending number of carbon atoms.

Please refer to the attachment for further details.

Attachment:- rec2h.docx

Reference no: EM13938958

Questions Cloud

Calculate the consumption ratios for the four drivers : Calculate the consumption ratios for the four drivers. Is there evidence of product diversity? Explain. Calculate the activity rates that would be used to assign costs to each product.
Debit or a credit to increase each of the accounts : The first assignment asks you to classify a set of accounts into one of the A L W I R E categories. Only after you have made that determination can you go on to the second assignment and answer the question as to whether to use a Debit or a Credit to..
What abnormal spinal curvature will result : Tom was advised by his doctor to lose weight and start jogging. He began to jog daily. On the sixth day, he was forced to jump out of the way of a speeding car. He heard a snapping sound that was immediately followed by pain in his right lower cal..
Compute activity rate for plastic injection molding activity : Calculate the activity rate for the plastic injection molding activity. Calculate the activity rate for the decal application activity.
Display all entries in order by ascending number of atoms : We have been given a file of chemical formulae, specifically hydrocarbons that consist of only hydrogen and carbon atoms.
Symptoms in degeneration of upper motor neurons : lease select 3 out of the 4 questions below to answer. Each answer should have between 70-150 words. 1. Explain the difference between the symptoms in degeneration of Upper motor neurons and lower motor neurons.
Luthuli electronics ltd. commenced business : Luthuli Electronics Ltd. commenced business on 1 April 1999, selling television sets both on a cash basis and by instalments.  Hire purchase sales require a deposit of one-third of the cash selling price with the balance payable in 18 equal monthly i..
What is the effect of aging on skeletal muscles : What is responsible for the banding pattern seen in skeletal muscle cells? What is the functions of tendons? How is a tendon different from an aponeurosis? How is it similar?
How to operate successfully in an international environment : Your guiding question is -how to operate successfully in an international environment?? The first part will be a case study focusing on a strategic problem,

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd