[Solved] CSE015: Discrete Mathematics Laboratory 1

$25

File Name: CSE015:_Discrete_Mathematics_Laboratory_1.zip
File Size: 386.22 KB

SKU: [Solved] CSE015: Discrete Mathematics Laboratory 1 Category: Tag:
5/5 - (1 vote)

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 xZ.

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

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE015: Discrete Mathematics Laboratory 1
$25