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
thumb_up100%
-
Create a table using a two-dimensional list that stores a Fahrenheit temperature and the equivalent Celsius temperature. Use the following range of Fahrenheit temperatures:
-10 through 100 in increments of 10. Thus the temperatures will be: -10, 0, 10, 20, 30, 40, 50, etc.
-
Display the contents of the list.
-
Similarly create tables/lists for:
-
Miles to kilometers
-
Gallons to liters
-
Pounds to kilograms
d. Inches to centimeters
-
Starting at 0 through 100 in increments of 10.
Display the contents of each list.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 3 steps with 5 images
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
- # "New" means new compared to previous level provincial capitals = { 'Nunavut': 'Iqaluit', 'Ontario': 'Toronto', 'Yukon': 'Whitehorse', 'Manitoba': 'Winnipeg' } province_name = input () while province_name != 'exit': if province_name in provincial_capitals: print (provincial_capitals [province_name]) del provincial_capitals [province_name] # New line else: Type the program's output print ('x') province_name input () Input Yukon Maine Yukon Ontario exit Outputarrow_forwardCreate a list that contains 10 words and their descriptions. Your task is to have the application randomly select a word from the list and display the description to the user. User will then try to guess the word based on the clue displayed. One round of game is five chances. Once the total number of chances becomes zero, the program should prompt the user whether to keep playing or exit the application.arrow_forward# convert_revised_1.py # We will try to print a table without using "string formatting"def main():print("celsius", "fahrenheit") for celsius in range (-20, 110, 10):fahrenheit = 9/5 * celsius + 32print(celsius, fahrenheit)main() Your turn: Please revise the above program convert_revised_1.py with "string formatting" and try to print a better-formatted table(required width for Celsius value is 35, width Fahrenheit value is 45, both should be center-aligned/justified)arrow_forward
- # "New" means new compared to previous level provincial_capitals 'Yukon': 'Whitehorse', 'Manitoba': 'Winnipeg', 'BC': 'Victoria', 'Ontario': 'Toronto' input () while province_name != 'exit': province_name if province_name in provincial_capitals: print (provincial_capitals [province_name]) del provincial_capitals [province_name] # New line else: print ('x') province_name input () U Input Yukon BC Yukon lowa exit Outputarrow_forwardModify the code below the #S11icq Q5 comment as you enter code for this task. Modify the code that creates the variable sf to assign the value in index position 2 of the list fish Modify the loop to repeat exactly four times . Click on the Run Current Script function (use menu at top of Thonny). Match the following: 1. 18500967 2. 237233811 updated value of sm 3. 35 updated value of sg_h 4. 44 updated value of sg_c 5. 2 6. 3 6arrow_forwardA jump table is a data structure that is used to provide the functionality of a jump table. list tuple dictionaryarrow_forward
- Given the initial list provided, use list comprehensions to create and print the following new lists: 1. locations List of the locations of each of the attractions • result should be ['Esperance', 'Kulin', 'Lake Ballard', ...] 1. Initials List of the attractions that have three words in their name (do not include the location) • result should be ['Tin Horse Highway", "World's tallest bin", ...] Source: https://www.escape.com.au/top-lists/top-10-weirdest-tourist-attractions-in-western-australia/image-gallery 3 weirdest=["Stonehenge, Esperance", "Tin Horse Highway, Kulin", "Inside Australia, Lake Ballard", "Gnomesville, Wellington Mill", "World's tallest bin, Kalgoorlie", "Dave Evans Bicentennial Tree, Pemberton", "Cowaramup cows, Cowaramup", "Corrigin Dog Cemetery, Corrigin", "Nullarbor Links Golf Course, Ceduna to Kalgoorlie", "The Big Camera, Meckering"]arrow_forwardprepare a flowchart please # inside data sub subarray[serial, name, amount]; # My data; data = [['01','A',4000],['02','B',8000],['03','C',10000],['04','D',12000],['05','E',16000]] serial = 0 name = 1 amount = 2 #update.... total = 0; for i in data: total = total+i[amount] print(f"The total amount is: {total}")arrow_forwardC. d. ne: ID: A 7. A summer camp offers a morning session and an afternoon session. The list morningList contains the names of all children attending the morning session, and the list afternoonList contains the names of all children attending the afternoon session. Only children who attend both sessions eat lunch at the camp. The camp director wants to create lunchList. which will contain the names of children attending both sessions. The following code segment is intended to create lunchList, which is initially empty. It uses the procedure IsFound (list, name), which returns true if name is found in list and returns false otherwise. FOR EACH child IN morningList Which of the following could replace so that the code segment works as intended? IF (ISFound (lunchList, child)) IF (IsFound (afternoonList, child)) APPEND (afternoonList, child) APPEND (lunchList, child) a. IF ((Is Found (morningList, child)) OR (IsFound (afternoonList, child) )) IF (IsFound (morningList, child)) APPEND…arrow_forward
- List method "get" Question 1 options: adds an item to the end of a list returns the number of elements retrieves an individual elements value from the specified indix All of the above None of the abovearrow_forwardAdd formulas to complete the table of hours used. In cell B17, create a nested formula with the IF and SUM functions that check if the total number of hours worked in week 1 (cells B9:F9) is equal to 0. If it is, the cell should display nothing (indicated with two quote marks: ""). Otherwise, the cell should display the total number of hours worked in week 1. Copy the formula from cell B17 to fill the range B18:B20arrow_forwardcomplete the docstring using the information provided:arrow_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