subject

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.

Write the rest of the program using assignment statements, ifstatements, 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.

Execute the program. Your output should be:

The largest value is 78
The smallest value is -50
# LargeSmall. py - This program calculates the largest and smallest of three integer values.
# Declare and initialize variables here
firstNumber = -50;
secondNumber = 53;
thirdNumber = 78;

# Write assignment, if, or if else statements here as appropriate

# Output largest and smallest number.
print("The largest value is " + str(largest))
print("The smallest value is " + str(smallest))

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
You know the right answer?
Two variables named largest and smallest are assigned for you. Use these variables to store the larg...
Questions
question
Mathematics, 06.01.2021 21:20
question
Mathematics, 06.01.2021 21:20
question
Mathematics, 06.01.2021 21:20
question
English, 06.01.2021 21:20
Questions on the website: 13722363