Describe the chemical symbol of one of the elements

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

Question: Write a program that reads a single character describing the chemical symbol of one of the elements H, C, N, O, F and prints the full name of the element.

The full names are given by the following table

H hydrogen

C carbon

N nitrogen

O oxygen

F fluorine

Your program should use the name unknown if the character is not one of the above symbols.

Your program should interact with the user in exactly this manner:

Enter the symbol=> N

The element is nitrogen.

Add comments in code section. Code this program in C++ programming.

Reference no: EM13693795

Questions Cloud

Returns the number of days in a month : Using only "If" statements.  Returns the number of days in a month.  Each month will be shown by a corresponding integer. This is not the most correct calculation, but Leap Year will be calculated using (Year/4) to determine if the input year is a..
Program that prompts the user to input the dimensions : Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylinderical containers. The shipping charges depend on the amount of liquid in the container.
Figure out the missing data : We are to figure out the missing data. To my understanding, there is going to be some kind of proportion here, or what? How would you go about figuring these out?
Write a program that reads the coordinates : Write a program that reads the (x,y) coordinates of a point in the Cartesian plane and prints a message telling in which quadrant, or on which axis (or axes) the point lies. The quadrants are labeled as follows:
Describe the chemical symbol of one of the elements : Write a program that reads a single character describing the chemical symbol of one of the elements H, C, N, O, F and prints the full name of the element.
Compute and return the celsius temperature : Write a program that takes as input a depth (in kilometers) inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is
Implement newtons method in matlab : Implement the secant method in Matlab and Implement Newtons method in Matlab
Cost-benefit analysis : The average annual cost to the company of a manager is $162,000, whereas no managerial professionals cost $121,000 a year on average; both figures include overhead.
Design a recursive algorithm to implement : Design a recursive algorithm to implement this specification. That is, the body of FindLast should contain a recursive call FindLast(A,..,..).

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that tells what coins to give out

Write a program that tells what coins to give out for any amount of change from 1 to 99 cents.

  Write c program that forks two child processes

Write a C program that forks two child processes. The parent process will print all prime numbers up to 229, the first child process will print the first 50 Fibonacci numbers.

  After the user presses any key

After the user presses any key, the board will be scrambled by making a large number of random moves (for a 3x3 puzzle, 100,000 attempted random moves in random directions will result in a sufficiently scrambled board)

  Throws an exception from a deeply nested

Write a program that throws an exception from a deeply nested function and still has the catch handler following the try block enclosing the initial call in main catch the exception

  Reading of coefficients

Reading of coefficients a, b, c shall be done by a function named readCoeffs(). They shall be entered as double's from the keyboard by an operator, after prompt, as follows.

  Design a class named employeerecord

Design a class named EmployeeRecord that holds an employee's ID number, name, and payrate. Include mutator methods to set the values for each data field and output the values for each data field. Create the class diagram and write the code that

  Write a method, to be included in a template unsorted list

Write a method, to be included in a template unsorted list class that will print (or reurn) the smallest and the largest values in the list.

  Lab-1the goal of this lab is to better familiarize you with

lab-1the goal of this lab is to better familiarize you with polymorphism and the factory design pattern two key

  Write c++ program to create a bar chart showing the average

Write a c++ program to create a bar chart showing the average monthly mean temperature for College Station from 2004 to 2013.

  Define a static method samecolor in the car class

Write an abstract class Car to implement the Comparable interface. Write a Truck class and a Sedan class to implement Car. define a static method sameColor in the Car class to find out weather a Truck and a Sedan has the same color.

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division. After the data are entered, the program should display a table showing the division sales for ..

  Add the correct code to fill the matrix array with the value

Use the file below code and add the correct code to fill the matr2 array with the values that make it the matrix transpose of matr1. There are many examples on the Internet that show how to do this in C++ and what it should look like when it is corre..

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