Write a Python function round_up that, given an integer, rounds it up the next multiple of 100. If the given number is already a multiple of 100, it is just returned.  For example,  round_up(234) returns 300  round_up(465) returns 500 round_up(400) returns 400 The round_up function does not read input or print output.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
icon
Related questions
Question

Write a Python function round_up that, given an integer, rounds it up the next multiple of 100. If the given number is already a multiple of 100, it is just returned. 

For example, 

round_up(234) returns 300 

round_up(465) returns 500

round_up(400) returns 400

The round_up function does not read input or print output. 

prary > COMS 127: Introduction to Programming for Problem Solving home > 38.3: Problem F3a
E zyBooks catalog
Help/F
Write a Python function round_up that, given an integer, rounds it up the next multiple of 100. If the given number is already a multiple of
100, it is just returned.
For example,
round_up(234) returns 300
round_up(465) returns 500
round_up(400) returns 400
The round_up function does not read input or print output.
BE SURE TO SUBMIT YOUR CODE FOR GRADING by switching to "Submit Mode" and clicking "Submit". You can submit as many times as
you wish; only your last submission will be graded. Clicking Submit will also run a few simple unit tests. Please note that we are going to
read your code to check that it makes sense and actually solves the problem.
376584 2127280 qx3zqy7
LAB
38.3.1: Problem F3a
0/15
АCTIVITY
main.py
Load default template...
1 # Write your round_up function here
5 #do not modify following lines
'_main__':
6 if name_-
==
7
print(round_up(234))
print(round_up(465))
print(round_up(400))
print(round_up(89))|
8.
6.
10
123456
Transcribed Image Text:prary > COMS 127: Introduction to Programming for Problem Solving home > 38.3: Problem F3a E zyBooks catalog Help/F Write a Python function round_up that, given an integer, rounds it up the next multiple of 100. If the given number is already a multiple of 100, it is just returned. For example, round_up(234) returns 300 round_up(465) returns 500 round_up(400) returns 400 The round_up function does not read input or print output. BE SURE TO SUBMIT YOUR CODE FOR GRADING by switching to "Submit Mode" and clicking "Submit". You can submit as many times as you wish; only your last submission will be graded. Clicking Submit will also run a few simple unit tests. Please note that we are going to read your code to check that it makes sense and actually solves the problem. 376584 2127280 qx3zqy7 LAB 38.3.1: Problem F3a 0/15 АCTIVITY main.py Load default template... 1 # Write your round_up function here 5 #do not modify following lines '_main__': 6 if name_- == 7 print(round_up(234)) print(round_up(465)) print(round_up(400)) print(round_up(89))| 8. 6. 10 123456
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning