Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Answer Question 2: In Chemistry, Periodic Table contains many information of each element. 1. Write a script (code in script file) named CellData.m which

Please Answer Question 2:

In Chemistry, Periodic Table contains many information of each element.

1. Write a script (code in script file) named CellData.m which create a cell that stores the elements Name, Symbol, number, and mass up to Neon, and display. Make cell name as elementC.

2. Write a script (code in script file) named StructData.m which create a structure that stores the exact same information above and display. Make structure name as elementS.

3. Display the information of H, C, O individually in the command window. Save the history in diary or document named PeriodicTable.

Sample Display:

PART 1 DISPLAY:

>> celldisp(elementC)

elementC{1} =

Hydrogen

Helium

Lithium

Beryllium

Boron

Carbon

Nitrogen

Oxygen

Fluorine

Neon

elementC{2} =

H

He

Li

Be

B

C

N

O

F

Ne

elementC{3} =

1 2 3 4 5 6 7 8 9 10

elementC{4} =

1.0079 4.0026 6.9410 9.0122 10.8110 12.0110 14.0070 15.9990 18.9980 20.1800

PART TWO DISPLAY

elementS =

'Name'

'Symbol'

'Number'

'Mass' Name: 'Hydrogen '

Symbol: 'H '

Number: 1

Mass: 1.0079

Name: 'Helium '

Symbol: 'He'

Number: 2

Mass: 4.0026

Name: 'Lithium '

Symbol: 'Li'

Number: 3

Mass: 6.9410

Name: 'Beryllium'

Symbol: 'Be'

Number: 4

Mass: 9.0122

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

Database And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

2. What are the different types of networks?

Answered: 1 week ago