Concept explainers
Run a python
Inputs:
a. Chemical Formula
b. Elements in the compound
c. Number of atoms per element (must be in separated lines depending on the number of elements present)
Output:
a. Molar Mass
Additional Information:
a. If the element entered in “b.” is not in the chemical formula, the output must be: “Incorrect Formula.”
b. If the number of atoms per element is not the same as what was entered in the chemical formula, the output must be: “Incorrect number of atoms.”
Please create a program like this. If not familiar with chemistry, please create a similar program.
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
- In C++ Could someone Write a program that will read a document/txt file thats written in ASCII and converts it into normal text and then display the text on the screen. I wanna know what some more professional ones look like becaume mine looks pretty jumbledarrow_forwardUsing Pythonarrow_forwardWrite a Python code This lab requires you to write a complete program using a condition controlled loop, a counter controlled loop, and an accumulator. The program is as follows: Write a program that will allow a grocery store to keep track of the total number of bottles collected for seven days. The program will calculate the total number of bottles returned for the week and the amount paid out (the total returned times .10 cents). The output of the program should include the total number of bottles returned and the total paid out. The program will ask the user if they have more data to enter and will end the program if they do not. Step 1: In the pseudocode below, declare the following variables under the documentation for Step 1. A variable called totalBottles that is initialized to 0 This variable will store the accumulated bottle values A variable called counter and that is initialized to 1 This variable will control the loop A variable called todayBottles…arrow_forward
- Please use Replit to complete in C programming language. PLEASE FOLLOW guidelines CLOSELY AND SHOW OUTPUTSarrow_forwardUsing c++ programming, plz complete the coding shown below.arrow_forwarduse c++ programing language. Read two integer number from an input file called input.txt, then add these two numbers , store it in a variable called TOTAL, find the difference of the two numbers , store it in Difference, find product to the two numbers , store it in a variable called Multiply, fine quotient of the two number call it Division, find modular division of them and store it in a variable called MUD.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education