Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a program that prompts the user to input three integer values and find the greatest value of the three values. Note: Be

1. Write a program that prompts the user to input three integer values and find the greatest value of the

1. Write a program that prompts the user to input three integer values and find the greatest value of the three values. Note: Be careful when handling equal values. 2. Write a program that finds the largest and smallest of four integers entered by user. Enter four integers: 21 43 10 35 Largest: 43 Smallest: 10 3. Write a program that checks if entered year is a leap year. (A leap year is a multiple of 4, and if it is a multiple of 100, it must also be a multiple of 400.) 4. Write the program that converts a numerical grade into a letter grade. The scale is as following: 90-100A, 80-89 B, 70-79 -> C, 60-69 -> D, 0-59-> F. If the entered number is larger than 100 or less than 0, give some error message as output. OUTPUT Enter a numerical grade: 811 Letter grade: B 5. Write a program that will let the user enter the number and then it will output "even" if the number is even, and "odd" if the number is odd. EXAMPLE OUTPUT 1 Enter the number: 369 The number is odd EXAMPLE OUTPUT 2 Enter the number: 866 The number is even 6. Write a program that will prompt user to enter a 4 digits integers and separate integer into digits. 7. Write a program that prompts the user to enter an integer and checks whether the number is divisible by both 5 and 6, or neither of them, or just one of them. Here are some sample outputs for inputs 10,30, 23. EXAMPLE OUTPUT 1 Enter the number 10 10 is divisible by 5 or 6, but not both EXAMPLE OUTPUT 2 Enter the number 30 30 is divisible by both 5 and 6 EXAMPLE OUTPUT 3 Enter the number 23 23 is not divisible by neither 5 or 6

Step by Step Solution

3.48 Rating (148 Votes )

There are 3 Steps involved in it

Step: 1

Python 1 numbers intx for x in inputEnter four integers split largest maxnumbers smallest minnumbers ... 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

Step: 3

blur-text-image

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

Principles Of Information Security

Authors: Michael E. Whitman, Herbert J. Mattord

7th Edition

035750643X, 978-0357506431

More Books

Students also viewed these Programming questions

Question

Identify retailers in terms of the utilities they provide.

Answered: 1 week ago