VIT SKILL RACK SOLUTIONS

PRACTICE PROBLEM 5 2015

HERE IS A SAMPLE OF THE SOLUTION OF A PROBLEM.

INPUT

n= number of days
k= number of kilometers

PROCESS INVOLVED

using if,
we can find the best plan

OUTPUT

Plan 1 or Plan 2

FLOW CHART.


PSUEDOCODE

START
input n,k
using if else,
if k<=0 or n<=0 or k/n<=0:
             print "Invalid input"
elif k/n<((4000-1500)/9):
             print "Plan 2"
else:
             print "Plan 1"
END

PYTHON CODE


n=int(input())
k=int(input())
if k<=0 or n<=0 or k/n<=0:
             print "Invalid input"
elif k/n<((4000-1500)/9):
             print "Plan 2"
else:

             print "Plan 1"

Here is the code of all the problems in a document.

CLICK ON THE LINK TO DOWNLOAD THE CODE.

So do spread the word about the website to your friends.
Download it faster.




Here are the flowcharts in .png format,download them and the names of programs is the flowchart name.  












Monish

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment