START

Input TimeEnd,TimeStart
            If (TimeStart>=1&&TimeEnd<=7)
                totalPayment=(TimeEnd-TimeStart)*1.20
            Else{basicPay=(7-TimeStart)*1.20
                        overTime=(TimeEnd-7)*1.75
                        totalPayment=BasicPay+overTime
                    }
    Output totalPayment
END

First one's free.

double Input(double TimeEnd, double TimeStart, double BasicPay)
    {
      double totalPayment;
      if (TimeStart>=1&&TimeEnd<=7)
      {
        totalPayment=(TimeEnd-TimeStart)*1.20;
      }
      else
        {double basicPay=(7-TimeStart)*1.20;
         double overTime=(TimeEnd-7)*1.75;
         totalPayment=BasicPay+overTime;
      }
      return totalPayment;
    }
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.