Giter Site home page Giter Site logo

vit-en-python2's Introduction

VIT-En-Python2

Question 1:

The user will be asked for their First Name, Last Name, Student Number, names of 4 courses, and the Midterm and Final grades for these courses. The year-end average will be calculated by adding 40% of the Midterm grade to 60% of the Final grade. If the average is below 50, "FAILED" will be displayed on the screen; if it is 50 or above, "PASSED" will be displayed. This printing process will be done for all 4 courses and the courses will be listed one below the other.

Question 2:

Write a Python program that calculates the average of the numbers in the list below. Then, add a "for" loop that separates each number in the list into "high" if it is greater than the average, and "low" if it is lower than the average, and print the count of each group on the screen.

numbers = [42, 29, 17, 15, 10, 9, 6, 4, 2, 1]

Question 3:

Write a Python program that calculates the sum of odd numbers in a given range. The program will ask the user for two numbers and calculate the sum of odd numbers between these two numbers. The program will print an error message if the user makes an invalid entry. You must use a While loop in writing the program.

Note: You must submit your homework via GitHub by the end of Thursday. You can ask your course instructor any questions related to the homework. Good luck...

vit-en-python2's People

Contributors

irfankaradeniz avatar mjd-ar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.