subject

You have to do your chemistry homework, but you hate looking up elements on the periodic table! write a program that takes the name of an element (as a string, independent of case) from standard input and prints a double representing its atomic weight to standard output. only implement the program for the first three elements, hydrogren, helium, and lithium, which have the respective atomic weights 1.008, 4.0026, and 6.94. if anything else is given as input, print the statement "sorry, i don't recognize that element! "

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 18:30
Write a program that prints the day number of the year, given the date in the form month-day-year. for example, if the input is 1-1-2006, the day number is 1; if the input is 12-25-2006, the day number is 359. the program should check for a leap year. a year is a leap year if it is divisible by 4, but not divisible by 100. for example, 1992 and 2008 are divisible by 4, but not by 100. a year that is divisible by 100 is a leap year if it is also divisible by 400. for example, 1600 and 2000 are divisible by 400. however, 1800 is not a leap year because 1800 is not divisible by 400.
Answers: 3
question
Computers and Technology, 23.06.2019 21:30
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
question
Computers and Technology, 23.06.2019 22:20
What is a programming method that provides for interactive modules to a website?
Answers: 1
question
Computers and Technology, 24.06.2019 01:10
Create a program that will take in a single x and y coordinate as the origin. after the input is provided, the output should be all of the coordinates (all 26 coordinates read from the “coordinates.json” file), in order of closest-to-farthest from the origin.
Answers: 1
You know the right answer?
You have to do your chemistry homework, but you hate looking up elements on the periodic table! wri...
Questions
question
Geography, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
question
Biology, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
question
Biology, 10.09.2020 01:01
question
Biology, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01
question
Medicine, 10.09.2020 01:01
question
Mathematics, 10.09.2020 01:01