Programming Fundamentals project?

i

don't usually ask for help on big projects as a whole, but does anyone at least know how to tackle this??

moslty

using "if and else", as well as the format function? no answers. just a bit of an explanation. 

Attachment image

1 Answer

Relevance
  • Vaman
    Lv 7
    3 weeks ago

    If gives the condition. For example if you agree then enter y otherwise press any other key.

    Now you write

    enter a={this person has to enter}

    if a=y, do this and otherwise(else) do that.

    example

    if(a=y)

    Pay= 10*30

    else

    Pay=12+50

    print Pay

    So if some one says y, then it will do the first step

    Pay becomes 300

    otherwise it becomes 62.

    It does if or else only one of them not both at any time.

Still have questions? Get answers by asking now.