
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
19.1 LAB: Count multiples
Write a
Ex: If the input is:
1 10 2the output is:
5Hint: Use the % operator to determine if a number is a multiple of x. Use a for loop to test each number between low and high.
Use Python, please.

Transcribed Image Text:LAB
19.1.1: LAB: Count multiples
0/ 10
АCTIVITY
main.py
Load default template..
1
Type your code here.|
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 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
- Problem3: Looping: (30 points)Create a program flowchart that generates and displays the Fibonacci sequencenumbers of n(as input). In Fibonacci, the current third number is the sum of two previousnumbers. Sample input/output dialogue:Enter a no. 9Fibonacci series : 1 1 2 3 5 8 13 21 34Your flowchart and pseudocode here…...pls help me :(arrow_forward4. In IntelliJ: By using java code a) Turn the For loop into a loop that adds the numbers from 50 to 1 and execute it. b) Turn the While loop into a loop that adds the numbers from 1 to 50, but does not add the number 25, and execute it. c) Turn the Do-while loop into a loop that add all numbers from 50 to 1, but does not add neither number 25, 27 and 37, excute itarrow_forwardPython Code: Using the following text file that contains a list of first names, give the regular expression for each of the following questions: a) return all the names that contain two or more consecutive vowels (i.e.: ae, ou, eau etc.) b) return all names that the first letter are in between letters A – M and the last letter in between N – Z c) return all names that contain a hyphen anywhere within the name, the first letter begins with a consonant and the last letter with a vowel (satisfies all conditions). d) return all names that have no vowels, have duplicate consonants (such as “tt”, “ll”) and is between 3 and 10 characters long in length. Integrate your regex solution into a python script that opens the file and then prints the results for each response to the console. first-names.txt…arrow_forward
- ##### solve this with in 15 mins###### Question: 1A Special Number is a number when the sum of the factorial of digits is equal to the original number (given number). For example, 145 is a Special Number because 145 = 1! + 4! + 5!.Your task is to write a Python code that takes some numbers as user input (separated by a comma) in a single line and groups the Special & Non-Special numbers in a dictionary. Note that the values corresponding to the keys in that dictionary must be in tuple format.Sample Input 1:145, 346, 2, 83221, 7999888Sample Output 1:{'Special': (145, 2), 'Non-Special': (346, 83221, 7999888 )}-----------------------------------------------------------------Sample Input 2:1431, 69716, 353, 7969828Sample Output 2:{'Special': (), 'Non-Special': (1431, 69716, 353, 7969828)}arrow_forwardpython question Implement the following:1) Use a loop to continuously request an integer input from the console.2) As long as the value is in the range from -10 to 10 inclusive, request new values.3) Once the value is not in the range above, end the loop.4) Prompt a message and print the sum of all valid values.Input text can be any content. Just make sure to precisely match the output format below.Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course).Example OutputEnter a number (-10, 10): 0Enter a number (-10, 10): 1Enter a number (-10, 10): -1Enter a number (-10, 10): 11Number out of range entered. Loop terminates.0arrow_forwardWeek runners log Coding in Python and mainly using loops create a program base on the following; Mike, Tina, Jason, Vicky, and Tammy are preparing for an upcoming marathon. Each day of the week, they run a certain number of miles and write them into a notebook. At the end of the week, they would like to know the number of miles run each day, the total miles for the week, and average miles run each day, Write a program to help them analyze their data. Your program should create a two-dimensional list of five rows and seven columns to store the number of miles run by each runner each day. Sample Output Name Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7 Average =============================================Mike 10.00 15.00 20.00 25.00 18.00 20.00 26.00 19.14Tina 15.00 18.00 29.00 16.00 26.00 20.00 23.00 21.00Jason 20.00 26.00 18.00 29.00 10.00 12.00 20.00 19.29Vicky 17.00 20.00 15.00 26.00 18.00…arrow_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