values. The three values are -50, 53, 78. Instructions 1. Two variables named largest and smallest are assigned for you. Use these variables to store the largest and smallest of the three integer values. You must decide what other variables you will need and initialize them if appropriate. 2. Write the rest of the program using assignment statements, if statements, or elif statements as appropriate. There are comments in the code that tell you where you should write your statements. The output statements are written for you. 3. Execute the program. Your output should be: The largest value is 78 The smallest value is -50
values. The three values are -50, 53, 78. Instructions 1. Two variables named largest and smallest are assigned for you. Use these variables to store the largest and smallest of the three integer values. You must decide what other variables you will need and initialize them if appropriate. 2. Write the rest of the program using assignment statements, if statements, or elif statements as appropriate. There are comments in the code that tell you where you should write your statements. The output statements are written for you. 3. Execute the program. Your output should be: The largest value is 78 The smallest value is -50
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Please help I'm running out of idea's on how to do this

Transcribed Image Text:1 # LargeSmall.py - This program calculates the largest and smallest of th
File "LargeSmall.py", line 10
values.
Summary
if thirdNumber > secondNumber
2 # Declare and initialize variables here
3 firstNumber = -50;
SyntaxError: invalid syntax
In this lab, you complete a prewritten Python program
4 secondNumber = 53;
that computes the largest and smallest of three integer
5 thirdNumber = 78;
values. The three values are -50, 53, 78.
7 # Write assignment, if, or if else statements here as appropriate
8
Instructions
9 # Output largest and smallest number.
10 if thirdNumber > secondNumber
1. Two variables named largest and smallest are
|11
print("The largest value is " + str(largest))
assigned for you. Use these variables to store the
12 if secondNumber > firstNumber
13
print("The smallest value is " + str(smallest))
largest and smallest of the three integer values. You
14
must decide what other variables you will need and
initialize them if appropriate.
2. Write the rest of the program using assignment
statements, if statements, or elif statements as
appropriate. There are comments in the code that tell
you where you should write your statements. The
output statements are written for you.
3. Execute the program. Your output should be:
The largest value is 78
The smallest value is -50
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 now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY