
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
Concept explainers
Question
Rrffddx
![Write a Python program that allows user to repeatedly enter a series of float numbers,
until the string end is entered. For each number entered, calculate and print its double
(multiply by 2).
Note that
• (1) Sentinel must be used.
• (2) The placement of data type conversion is critical.
[Run your program in Python IDLE to verify if it works correctly as described above]
Enter a float number or 'end' to stop: 2.4
The double of 2.4 is 4.8
Enter a number or 'end' to stop: 4.123
The double of 4.123 is 8.246
Enter a number or 'end' to stop: end](https://content.bartleby.com/qna-images/question/82364f35-b232-491b-ae0e-1b5c453de482/0278dc0b-be3a-4c2c-97b1-2cd81f21a996/qxzse7t_thumbnail.jpeg)
Transcribed Image Text:Write a Python program that allows user to repeatedly enter a series of float numbers,
until the string end is entered. For each number entered, calculate and print its double
(multiply by 2).
Note that
• (1) Sentinel must be used.
• (2) The placement of data type conversion is critical.
[Run your program in Python IDLE to verify if it works correctly as described above]
Enter a float number or 'end' to stop: 2.4
The double of 2.4 is 4.8
Enter a number or 'end' to stop: 4.123
The double of 4.123 is 8.246
Enter a number or 'end' to stop: end
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 4 steps with 2 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
- Question 3 - (this question MAY appear on the assignment quiz) Write a Python program to solve the following problem: Given a two-dimensional list/table containing hexadecimal colour codes representing a picture, write functions to look for the corresponding colour names in another two-dimensional colour lookup table (see below) and generate a resulting two-dimensional table containing the names of the colours in the appropriate locations, corresponding to where the colour code was in the original hexadecimal table. See sample expected output below. Call the file containing your program, colour_codes.py. Include the following functions in your code: • a function to find the appropriate row, in the colour lookup table, corresponding to the first three digits of the colour code in the picture; the function should take, as parameters, the lookup table and a string containing the first three digits of the colour code and return the code's row location (e.g., partial code "FF0" would give 4…arrow_forwardWhat precisely does it mean when someone refers to the DFR abbreviation?arrow_forwardFind the NFA that accepts the reversal of the language of the machine in Figure 2–10 by reversing the DFA in that figure.arrow_forward
- application of binary number system in information technology with example?arrow_forwardDecode Ocvjgocvku cpf Eqoswvgt Uekgpegarrow_forwardEAX=0019FFCC EBX-003AA000 ECX-00401005 ESI=00401005 EIP=00401015 EDX=00401005 EDI=00401005 EBP=0019FF80 ESP=0019FF74 EFL=00000246 CF=0 SF=0 ZF=1 OF=0 A What is DX? B What is the decimal value of EAX (Leave as the sum of POWERS) C What is EDX in binary? D What is DL AND CL? E What is DL OR CL? What is the value of Dec ESI G If signed, eax is now FFCC, Is it + or -? H How can you print out its correct decimal value if it is negative I Using shr and AND change ebx to AA00arrow_forward
arrow_back_ios
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