Code Monkey home page Code Monkey logo

day3's Introduction

day3

k k kaam gare 1.Write a program that takes three numbers and prints their sum. Every number is given on a separate line. 2.Write a program that reads the length of the base and the height of a right-angled triangle and prints the area. Every number is given on a separate line.3.N students take K apples and distribute them among each other evenly. The remaining (the undivisible) part remains in the basket. How many apples will each single student get? How many apples will remain in the basket? The program reads the numbers Nand K. It should print the two answ ers for the questions above.4.Given the integer N -the number of minutes that is passed since midnight -how many hours and minutes are displayed on the 24h digital clock?The program should print two numbers: the numberof hours (bet ween 0 and 23) and the number of minutes (between 0 and 59).For example, if N = 150, then 150 minutes have passed since midn ight -i.e. now is 2:30 am. So,the program should print 2 30.5.A school decided to replace the desks in three classrooms. Each des k sits two students. Given the number of students in each class, print the smallest possible number of desks that can be purchased.Th e program should read three integers: the number of students in each of the three classes, a, b and c respectively.In the fir t test there are three groups. The first group has 20 students and thus needs 10 desks. The second group has 21 students, so they can get by wit h no fewer than 11 desks. 11 desks are also enough for the third group of 22 students. So, we need 32 desks in total. 6.Solve each of the following pro blems using Python Scripts. Make sure you use appropriate variable names and comments. When there is a final answer have Python print it to the screen.A perso nโ€™s body mass index (BMI) is defined as:BMI=mass in kg / (height in m)2.7.You live 4 miles from university. The bus drives at 25mph but spends 2 minutes at each of the 10 stops on the way. How long will the bus journey take? Alternatively, you could run to university. You jog the first mile at 7mph; then run the next two at15m ph; before jogging the last at 7mph again. Will this be quicker or slower than the bus?8.Write a Python program which accepts the radius of a circle from t he user and compute the area. (area of circle = PI * r2)9.Write a python program to find sum of the first n positive integers. sum = (n*(n+1))/210.Write a P ython program to convert seconds to day, hour, minutes and seconds.

day3's People

Contributors

mah-esh-arjan avatar

Watchers

 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.