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

  Returns a count of the steps through the sort

Please write a c++ implimentation that returns a count of the steps through the sort. (do not worry about updating count, I will rewrite that segemnt. I need help with writing the shell sort.

  Wrtie a function called gen_rand_double_array

Wrtie a function called gen_rand_double_array that generates 900 samples of size 22500 random numbers from U(10, 12). For each of these 900 samples, write a main funciton that calculates the mean and finds the simulated probability that the mean is b..

  The main function should prompt the user

The main function should prompt the user for the 2 numbers, call the function to display the correct label, then calculate and display the sum of the numbers. Call the function to display the correct label, then calculate and display the differenc..

  How would you put a empty space between output

How would you put a empty space between output, right now it prints 6 rows but how do i add a space or a "\n" for example row1 row2 row3

  Write a program that reads in an integer

Write a program that prompts the user for a measurement in meters, and then converts it in to miles, feet, and inches.

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  Recursive function

What is the result of the following recursive function when called with mm(10)? Write out the execution trace of this call to mm(10).

  Design a program read the following information from the

design a program read the following information from the keyboard in which base class consist of employee name code and

  Functions to compute stress and strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads P of 10,000 to 1,000,000 pounds.

  Program that asks the user to enter the monthly costs

write a program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile:

  Consider the subsequent selection statement where x is an

consider the subsequent selection statement where x is an integer test score between 0 and 100.input xif 0 lt x and x

  Your project must use and demonstrate understanding

Your project must use and demonstrate understanding of:a. Variables b. Loops c. Decision statements d. File I/O e. Screen output f. Keyboard input g. Functions h. Arrays i. Searching and sorting j. Classes k. Objects l. Methods

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