Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Purpose: To practice creating and using tuples.

In this exercise, you will create a program that can display information about the first ten elements in the periodic table. The periodic table of is a table of the chemical elements.

It is organized by the element's atomic number (the number of protons the element has) and contains information about each element, such as atomic weight.

Create a list of tuples that holds the information about the first 10 elements in the periodic table (just write the list of tuples as a literal, do not try to input it from the console). Each tuple will include: the atomic symbol, name, number, and weight. The data for each element is provided in the table below.

SYMBOL NAME ATOMIC NUMBER WEIGHT
H Hydrogen 1 1.008
He Helium 2 4.003
Li Lithium 3 6.940
Be Beryllium 4 9.012
B Boron 5 10.810
C Carbon 6 12.011
N Nitrogen 7 14.007
O Oxygen 8 15.999
F Fluorine 9 18.998
Ne Neon 10 20.180

Now your program should prompt the user to enter an atomic number between 1 and 10 from the console. The program will then display information about the element with that atomic number on the console.

Sample Output:

Here is an example of what your program's console output should look like. Italic text was entered by the user.

Periodic Table Information

Which element would you like to know about?

Enter the atomic number now: 7

Symbol : N

Name: NItrogen

Number: 7

Weight: 14.007

(This is Python Programming 3.5 Anaconda)

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93100220

Have any Question?


Related Questions in Computer Engineering

Take a tour of your building on campus or at work what is

Take a tour of your building on campus or at work. What is secured at night when workers are absent? Record the location and type of physical access control devices. How do these access controls change at night when work ...

Explain that when an unauthorized individual gains access

Explain that when an unauthorized individual gains access to the information an organization trying to protect, that act is categorized as a deliberate act of espionage or trespass.

The switch statementhere is the question in its entirety

The switch statement Here is the question in its entirety, but the actual problem is at the end. I just felt that I would give an overview of what I am asking. The program has to be in c++ (.cpp) and must compile as such ...

Explain data information and knowledge with examples make

Explain data, information, and knowledge with examples. Make sure to clearly identify the differences between the terms.

Question suppose the array begins with 0 followed by the

Question : Suppose the array begins with 0, followed by the remaining even integers in descending order, followed by the odd numbers in descending order. (For n = 8, the array would be [0,8,6,4,2,7,5,3,1].) How many comp ...

Task 1implement a queue on a char array do not use queue

Task 1 Implement a Queue on a char [] array. Do not use ::Queue:: class from the STD library for this example. The user will input a string and the program will return the string with each letter in the string duplicated ...

Develop a hypothesis that could explain why a soap created

Develop a hypothesis that could explain why a soap created from the acid CH 3 CH 2 CH 2 CH 2 COOH has poorer cleaning properties than soap made from palmitic acid. Develop a hypothesis that could explain why a soap creat ...

Question social networks have become popular media among

Question : Social networks have become popular media among individuals of all ages to stay connected with friends, family, colleagues and coworkers. However, many users are unaware of the dangers of sharing vast amounts ...

When using todays digital cameras file sizes are often

When using today's digital cameras file sizes are often saved in a format that is well over 1 Megabyte. This may be great for high definition photo reproductions but is a disaster for uploading to the web. Images on your ...

Assignment week 1 project plan drafta project plan is a

Assignment: Week 1 Project Plan Draft A project plan is a document created at the beginning of the project lifecycle that gives stakeholders and everyone else involved in a project a clear idea of what a project will ent ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As