Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7:40 ..1 LTE O LED learn.zybooks.com = zyBooks @ @ 25.7 Ch 03: Print Three Write a program that asks the user for three numbers

image text in transcribed
image text in transcribed
7:40 ..1 LTE O LED learn.zybooks.com = zyBooks @ @ 25.7 Ch 03: Print Three Write a program that asks the user for three numbers and print the numbers in either ascending or descending order according to the user's choice. For example, Enter number a: 3 Enter number b: 1 Enter number c: 6 Ascending order (y or N): Y In ascending order: 1.00, 3.00, 6.00 Or Enter number a: 4 Enter number b: 5 Enter number c: 9 Ascending order (Y or N): N In descending order: 9.00, 5.00, 4.00 Requirement: This program should contain only one print statement. You should build the output using string concatenation LAB 25.7.1: Ch 03: Print Three Numbers variables, if, output) ACTIVITY 7:40 ..1 LTED learn.zybooks.com O , = zyBooks & unter number a: 4 Enter number b: 5 Enter number c: 9 Ascending order (Y or N): N In descending order: 9.00, 5.00, 4.00 Requirement: This program should contain only one print() statement. You should build the output using string concatenation. LAB 25.7.1: Ch 03: Print Three Numbers (i variables, if, output) ACTIVITY 1 def main() : 2 # Add your code here 4 5 if __name__ =='__main__': main 7:40 ..1 LTE O LED learn.zybooks.com = zyBooks @ @ 25.7 Ch 03: Print Three Write a program that asks the user for three numbers and print the numbers in either ascending or descending order according to the user's choice. For example, Enter number a: 3 Enter number b: 1 Enter number c: 6 Ascending order (y or N): Y In ascending order: 1.00, 3.00, 6.00 Or Enter number a: 4 Enter number b: 5 Enter number c: 9 Ascending order (Y or N): N In descending order: 9.00, 5.00, 4.00 Requirement: This program should contain only one print statement. You should build the output using string concatenation LAB 25.7.1: Ch 03: Print Three Numbers variables, if, output) ACTIVITY 7:40 ..1 LTED learn.zybooks.com O , = zyBooks & unter number a: 4 Enter number b: 5 Enter number c: 9 Ascending order (Y or N): N In descending order: 9.00, 5.00, 4.00 Requirement: This program should contain only one print() statement. You should build the output using string concatenation. LAB 25.7.1: Ch 03: Print Three Numbers (i variables, if, output) ACTIVITY 1 def main() : 2 # Add your code here 4 5 if __name__ =='__main__': main

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago