Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C language not c++ Declare an array 10 Elements and initialize the first 5 elements to the following: Helium He 4 2 Lithium Li 7
C language not c++
Declare an array 10 Elements and initialize the first 5 elements to the following: Helium He 4 2 Lithium Li 7 3 Oxygen O 16 8 Chlorine Cl 35 17 Calcium Ca 40 20 Write a function findByMass that takes an input an Element array, the number of elements in the array, and a mass and returns a pointer to the element of the array with the given mass. If no such element is found, the function should return NULL. Declare and define your function in elementOps.h and elementOps.c. Ask the user to enter an atomic mass use findByMass to find the element with the given mass then print it if it is not null. If null, print a message that the element was not found. Write a similar function findBySymbol that looks for an element by its given symbol. Read the symbol from standard input first. Print the element found if it is not null. If null, print a message that the element was not foundStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started