
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
It says my code is right but the space is rough I need to know how to fix it
![**Latest Submission - 12:05 PM EDT on 11/03/22**
**Total Score: 0 / 10**
[Download this submission]
**1. Compare Output A**
Output is nearly correct, but whitespace differs. See highlights below.
- **Input**
- 2000 2
- **Your output**
- 1000 500 250
- **Expected output**
- 1000 500 250
**2. Compare Output**
Output is nearly correct, but whitespace differs. See highlights below.](https://content.bartleby.com/qna-images/question/2f332ee6-3ef6-4e55-bad3-1cebde5ee541/c08d7d70-0557-4e18-b3a1-cfd64a47bc40/synwio_thumbnail.jpeg)
Transcribed Image Text:**Latest Submission - 12:05 PM EDT on 11/03/22**
**Total Score: 0 / 10**
[Download this submission]
**1. Compare Output A**
Output is nearly correct, but whitespace differs. See highlights below.
- **Input**
- 2000 2
- **Your output**
- 1000 500 250
- **Expected output**
- 1000 500 250
**2. Compare Output**
Output is nearly correct, but whitespace differs. See highlights below.

Transcribed Image Text:**Exercise Description: LAB Activity 1.21.1 - Divide by x**
**Task:**
Write a program using integers `user_num` and `x` as input, and output `user_num` divided by `x` three times.
**Example:**
If the input is:
```
2000
2
```
Then the output is:
```
1000 500 250
```
**Note:**
In Python 3, integer division discards fractions. For example, `6 // 4` is `1` (the `0.5` is discarded).
---
**Code Implementation:**
```python
''' Type your code here. '''
user_num = int(input())
x = int(input())
user_num = int(user_num // x)
print(user_num, end=" ")
user_num = int(user_num // x)
print(user_num, end=" ")
user_num = int(user_num // x)
print(user_num, end=" ")
```
This code takes two integer inputs, `user_num` and `x`, and performs integer division three times, printing the result after each division.
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 1 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
- it is not a graded questions. It is a practice and I'm stuck SmithJonesAustralia5.0 4.9 5.1 5.2 5.0 5.1 5.2 4.84.3 4.7 4.8 4.9 4.6 4.8 4.9 4.5 lennonmurrayengland2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.83.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8gustopetitotitalia4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.85.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8lahaiepetitfrance1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.85.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8bilodeaubernardcanada2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.84.1 4.2 4.3 4.8 4.9 4.6 4.0 4.5lahorepedromexico3.2 3.1 3.8 3.9 3.0 3.6 3.9 3.35.9 5.8 5.8 5.8 5.9 5.6 5.0 5.5maliakkolikovrussia4.2 4.1 4.8 4.9 4.0 4.6 4.9 4.31.9 1.8 1.8 1.8 1.9 1.6 1.0 1.5MinaYianchina5.2 5.1 5.8 5.9 5.0 5.6 5.9 5.32.9 2.8 2.8 2.8 2.9 2.6 2.0 2.5gatesbrownU.S1.2 1.1 1.8 1.9 1.0 1.6 1.9 1.33.9 3.8 3.8 3.8 3.9 3.6 3.0 3.5joecharlieswitzerland2.2 2.1 2.8 2.9 2.0 2.6 2.9 2.34.9 4.8 4.8 4.8 4.9 4.6 4.0 4.5The final score for each skater is the sum of the average of the two categories of the scores. In this case, calculate the average of each…arrow_forwardI am receiving an error on this code.......arrow_forwardProvide a quick summary of the Dots per Inch (DPI) method.arrow_forward
- a) How many bits would be needed to store a photo with 256 pixels horizontal and 256 pixels vertical using 64 grey levels? b) How many bits would be needed to store an audio music on a CD that can play for 3 hours?arrow_forwardYou are a nasa engineer who needs to monitor the situation every time a probe uses its thrusters. For a given day you are given the planned times when the thruster will be used. You need to be monitoring the situation at those boost times and for 5 minutes after. You want to figure out if you can take a break for a certain number of minutes. To achieve this you are given the planned boost times in in hours and minutes with an am/pm. And you are given a desired break time in minutes. Output if you can take the break or not given the monitoring you have to do. For example: If you know the thruster is fired at 5:00am and 12:50pm. You need to be monitoring the situation from 5:00am to 5:05am and again from 12:50pm to 12:55pm. Apart from those times you are free to take a break. So a 5 minute break is possible. But a 12 hour break is not possible. Note You should assume that the launch times that the user entered would occur in one day. However, you cannot assume that these were…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