Question: 1. Create a Python source file named ex3_1.py that will include the following two lines. Be sure to replace [YourName Here] with your full

![following two lines. Be sure to replace [YourName Here] with your full](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/64fff02240151_1694494754526.jpg)
1. Create a Python source file named "ex3_1.py" that will include the following two lines. Be sure to replace [YourName Here] with your full name. #Student: Your Name Here # Programming Exercise: 3_1 2. Next to the above two lines, write Python codes that will display a message, such as "Enter the number of mass of silicon in gram: ", store the user input in variable of "float" type, and then use the following information to create calculate the total number of silicon atoms in that given sample. Display another message, such as "This sample has m of silicon atoms", where m is the value of the calculated result. The atomic mass of Si (silicon) is 28.09u (or 28.09 g/mol). Avogadro's constant is 6.02210 per mole. To find how many atoms are in a sample of silicon that has a mass of ng is: 12 atomic mass X Avogadro's constant 3. A sample output will look similar to the following: Input Box Enter the number of mass of silicon in gram: 45.23 X OK Message Box X This sample has 9.696513349946599e+23 of silicon atoms. 4. Download the "programming exercise template", and then rename it to ex3.doc. Copy and paste the source code to the template. Capture a screen shot similar to Fig. ex3 and paste it to a Microsoft Word document named ex3.doc (or ex3.docx). [Feel free to convert the Word document to a .pdf file.]
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
In Python the standard library for graphical user interfaces GUIs is tkinter We can use tkinter to create a dialog box for your program Below is the p... View full answer
Get step-by-step solutions from verified subject matter experts
