Question

Safari File Edit View History Develop Window Help <> 0 Chat Web Port.. Rec Con Section... learn.zybooks.com Prog Delt Delt java Cou Sat Jan 27 10:00 AM +0 Fou zyBooks My library > CIS 116: Introduction to Computer Programming home > 2.13: LAB: Divide input integers tra??meyero zyBooks catalog Help/FAQ Alicia Quintero Write a program that reads integers user_num and div_num as input, and outputs user_num divided by div_num three times using floor divisions. Ex: If the input is 2000 2 the output is: 1000 500 250 Note: In Python 3, floor division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded). ACTIVITY 2.13.1: LAB: Divide input integers 1 Type your code here... 2 0/10 main.py Load default template...

          Safari File Edit View History
Develop Window Help
<>
0
Chat Web Port..
Rec Con Section...
learn.zybooks.com
Prog Delt Delt java Cou
Sat Jan 27 10:00 AM
+0
Fou
zyBooks My library > CIS 116: Introduction to Computer Programming home > 2.13: LAB: Divide input integers
tra??meyero
zyBooks catalog Help/FAQ Alicia Quintero
Write a program that reads integers user_num and div_num as input, and outputs user_num divided by div_num three times using floor
divisions.
Ex: If the input is
2000
2
the output is:
1000 500 250
Note: In Python 3, floor division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded).
ACTIVITY 2.13.1: LAB: Divide input integers
1 Type your code here...
2
0/10
main.py
Load default template...
        
Show more…
Safari File Edit View History
Develop Window Help
<>
0
Chat Web Port..
Rec Con Section...
learn.zybooks.com
Prog Delt Delt java Cou
Sat Jan 27 10:00 AM
+0
Fou
zyBooks My library > CIS 116: Introduction to Computer Programming home > 2.13: LAB: Divide input integers
tra??meyero
zyBooks catalog Help/FAQ Alicia Quintero
Write a program that reads integers usernum and divnum as input, and outputs usernum divided by divnum three times using floor
divisions.
Ex: If the input is
2000
2
the output is:
1000 500 250
Note: In Python 3, floor division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded).
ACTIVITY 2.13.1: LAB: Divide input integers
1 Type your code here...
2
0/10
main.py
Load default template...

Added by Kimberly W.

Close

Computer Science and Information Technology
Computer Science and Information Technology
Trishna Knowledge Systems 2018 Edition
AceChat toggle button
Close icon
Ace pointing down

Please give Ace some feedback

Your feedback will help us improve your experience

Thumb up icon Thumb down icon
Thanks for your feedback!
Profile picture
Write a program that reads integers user_num and div_num as input, and outputs user_num divided by div_num three times using floor divisions. Ex: If the input is: 2000 2 the output is: 1000 500 250 Note: In Python 3, floor division discards fractions. Ex. 6//4 is 1 (the 0.5 is discarded).
Close icon
Play audio
Feedback
Powered by NumerAI
Kathleen Carty Danielle Fairburn
Jennifer Stoner verified

Akash M and 82 other subject AP CS educators are ready to help you.

Ask a new question

*

Labs

-

Want to see this concept in action?

NEW

Explore this concept interactively to see how it behaves as you change inputs.

View Labs

*

Key Concepts

-
Key Concept
Premium Feature
Explore the core concept behind this problem.
Play button
Key Concept
Premium Feature
Explore the core concept behind this problem.
Your browser does not support the video tag.

*

Recommended Videos

-
texts-225-lab-divide-input-integers-write-a-program-that-reads-integers-usernum-and-divnum-as-input-and-outputs-usernum-divided-by-divnum-three-times-note-end-with-a-newline-example-if-the-i-23863

2.25 LAB: Divide input integers Write a program that reads integers userNum and divNum as input, and outputs userNum divided by divNum three times. Note: End with a newline. Ex: If the input is: 2000 2 the output is: 1000 500 250 Note: In C++, integer division discards fractions. Ex: 6 / 4 is 1 (the 0.5 is discarded). main.cpp #include <iostream> using namespace std; int main() { /* Type your code here. */ return 0; }

Akash M.

213-labdivide-input-integers-write-a-program-that-reads-integers-user-num-and-div-num-as-input-and-outputs-user_num-divided-by-div_num-three-times-using-floo-divisions-exif-the-input-is-2000-23771

2.13 LAB: Divide input integers Write a program that reads integers user_num and div_num as input and outputs user_num divided by div_num three times using floor divisions. Ex: If the input is: 2000 2 the output is: 1000 500 250 Note: In Python 3, floor division discards fractions. Ex: 6//4 is 1 (the 0.5 is discarded).

Akash M.

212-lab-divide-by-x-write-program-using-integers-user_num-and-as-input-and-output-user_num-divided-by-three-times-ex-if-the-input-is-2000-then-the-output-is-1000-500-250-note-in-python-3inte-04718

2.12 LAB: Divide by x 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).

Shelayah R.


*

Recommended Textbooks

-
Computer Science and Information Technology

Computer Science and Information Technology

Trishna Knowledge Systems 2018 Edition
achievement 1,199 solutions
Introduction to Programming Using Python

Introduction to Programming Using Python

Y. Daniel Liang 1st Edition
achievement 1,146 solutions
Computer Science - An Overview

Computer Science - An Overview

Glenn Brookshear, Dennis Brylow 12th Edition
achievement 1,759 solutions

*

Transcript

-
00:01 So here we are with the answers to the given question.
00:02 Let's start the discussion.
00:04 Here we are dealing with a c+ + program.
00:10 The c+ + program here would be requiring to read the integers and here it's very much important to consider for the output that will involve the username as well as the divisor.
00:35 You represent it as div.
00:38 So this will involve a set of steps.
00:42 You consider it in the name of methods which you give to the system.
00:46 So it will be acting as instructions or command.
00:49 Let's have a look on to the very same here...
Need help? Use Ace
Ace is your personal tutor. It breaks down any question with clear steps so you can learn.
Start Using Ace
Ace is your personal tutor for learning
Step-by-step explanations
Instant summaries
Summarize YouTube videos
Understand textbook images or PDFs
Study tools like quizzes and flashcards
Listen to your notes as a podcast
Continue solving this problem
Create a free account to:
  • View full step-by-step solution
  • Ask follow-up questions with Ace AI
  • Save progress and study later
Continue Free
Join the community

18,000,000+

Students on Numerade


Trusted by students at 8,000+ universities

Numerade

Get step-by-step video solution
from top educators

Continue with Clever
or



By creating an account, you agree to the Terms of Service and Privacy Policy
Already have an account? Log In

A free answer
just for you

Watch the video solution with this free unlock.

Numerade

Log in to watch this video
...and 100,000,000 more!


EMAIL

PASSWORD

OR
Continue with Clever