Tell us what’s happening:
There’s a task in this challenge which says " If you run ./element.sh 1
, ./element.sh H
, or ./element.sh Hydrogen
, it should output only The element with atomic number 1 is Hydrogen (H). It's a nonmetal, with a mass of 1.008 amu. Hydrogen has a melting point of -259.1 celsius and a boiling point of -252.9 celsius.
"
This is the only task that im unable to complete i dont know why.
Here’s my line of code to get this:
echo “The element with atomic number $ATOMIC_NUMBER is $NAME ($SY). It’s a $TYPE, with a mass of $ATOMIC_MASS amu. $NAME has a melting point of $MPC celsius and a boiling point of $BPC celsius.”
The task below this is passing: " If you run ./element.sh
script with another element as input, you should get the same output but with information associated with the given element. "
it doesn’t make sense why the former isnt passing. I have attached a ss of the output in the terminal below.
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Challenge: Periodic Table Database - Build a Periodic Table Database
Link to the challenge: