
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Create a python
Example
***isobutane.txt***
0,0,0,1
0,0,0,1
0,0,0,1
1,1,1,0
***n-butane.txt***
0,1,0,0
1,0,1,0
0,1,0,1
0,0,1,0
***wiener.py***
Enter alkane 1 filename: isobutane.txt
Enter alkane 2 filename: n-butane.txt
Results:
isobutane Wiener index: 9
n-butane Wiener index: 10
Most probably, the boiling point of n-butane is higher than isobutane
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write in python please Write a nested for-loop to create the pattern below. (Hint: image is 8 x 20).arrow_forwardUse looping in creating a JAVA flowchart. Problem1. Create a flowchart from the given output. *** +++++ *** +++++ *** Problem 2. Write a program that will display all even numbers that are less than a given number. Problem 3. Write a program that will display an n x n box of asterisks, where n is user input. Advanced: Modify your program such that the length and height of the box can be different from each other.arrow_forwardconsider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is considered a consecutive duplicate. Write some code that use a loop to read such a sequence of non-negative integers, terminated by a negative number. When the code finishes executing, the number of consecutive duplicates encountered is printed. using Pythonarrow_forward
- Who or what are daemon processes, and how important are they? Provide four examples.arrow_forwardWrite a python program that uses nested loops to display a pattern like the examples below. It must not use any formatting operators (e.g., string concatenation) to print the strings to the terminal. Example pyramid ./ ...// ...../// .......//// ........./////arrow_forwardSimulate ‘for’ loop and ‘range’ on pythonarrow_forward
- Write a Python program that loops through a range of numbers, one-by-one. Your program should prompt the user to enter the starting and ending numbers for the range. Processing should determine the counts of both even and odd numbers and the total of all numbers in the range. Do not print the numbers in the range.arrow_forwardI need help creating a python program on loops methodarrow_forwardWrite a python program that uses while loops to display the number of bugs collected throughout 5 days. In addition to displaying the total number of bugs collected, display the average number of bugs collected per day. The average should be displayed with 1 digit to the right of the decimal.arrow_forward
- Write a python codeInput Your program will take an arithmetic expression as a String input. For Example: “1+2*(3/4)” “1+2*[3*3+{4–5(6(7/8/9)+10)–11+(12*8)]+14” “1+2*[3*3+{4–5(6(7/8/9)+10)}–11+(12*8)/{13+13}]+14” Program Your program will determine whether the open brackets (the square brackets, curly braces and the parentheses) are closed in the correct order. Outputs: Output 1 1+2*(3/4) This expression is correct. Output 2 1+2*[3*3+{4–5(6(7/8/9)+10)–11+(12*8)]+14 This expression is NOT correct. Error at character # 10. ‘{‘- not closed. Output 3 1+2*[3*3+{4–5(6(7/8/9)+10)}–11+(12*8)/{13+13}]+14 This expression is correct. Output 4 1+2]*[3*3+{4–5(6(7/8/9)+10)–11+(12*8)]+14 This expression is NOT correct. Error at character # 4. ‘]‘- not opened. Task - Solve the above problem using an array based stack.arrow_forwardWrite a Python program that asks the user to input 2 numbers. add the 2 numbers together print a statement that shows the 2 numbers that were entered and their sum. For instance, if I input 2 and 4 the output should say, "The sum of 2 and 4 is 6". It is probably easiest to use the repl.it web site....you can write your code and run it there - BUT - you have to turn in the code to Canvas. Just copy and paste the code into the assignmentarrow_forwardWrite a python program to prompt the user to enter a phone number in this format (DDD) DDD-DDDD. The program converts the phone number into this format DDDDDDDDDD Sample Run: 'nter your phone number: (265) 456-2345 2 354562345 Pi ess 'C' to CONTINUE or 'E' to EXIT: c Enter your phone number: (123)567-6457 1235676457 Press 'C' to CONTINUE or 'E' to EXIT: E Have a nic dayarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education