[SOLVED] CSE015: Discrete Mathematics Laboratory 1

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Lab3-owoeew.zip (201.2 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (2 votes)

Introduction

This lab is meant to give you some practice with the Python programming language. Please complete the following exercises and upload your .py files under the appropriate CatCourses assignments.

Modified Hello World

Write a Python program that asks the user for his/her name, and prints out a greeting message of the form “Hello, <name>”, where <name> is the input received from the user.

Integer Classification

Write a Python program that asks the user to enter an integer. Your program should print ODD if the integer is odd, and EVEN if the integer is even. Reminder: an even integer can be represented as 2x, and an odd integer can be represented as 2x + 1, where x∈Z.

More Even and Odd

Write a Python program that asks the user to enter 10 integers, and outputs the largest odd number among them. If no odd numbers were entered, your program should output a message saying: “No odd numbers were entered”.

1

  • Lab3-owoeew.zip