Python:
wage=int(input("What the hourly wage?: "))
total_reg_hours=int(input("Enter total regular hours: "))
total_over_hours=int(input("Enter total overtime hours: "))
#Calculate the weekly pay.
print("The weekly pay of this employee is ",(total_reg_hours*wage)+(total_over_hours*(1.5*wage)))
C++:
#include <iostream>
int main(int argc, char* argv[]) {
int wage,t_reg,t_over;
std::cout << "Enter wage: "; std::cin>>wage;
std::cout << "\\Enter total regular hours: "; std::cin>>t_reg;
std::cout << "\\Enter total overtime hours: "; std::cin>>t_over;
//Calculate the weekly pay.
std::cout << "The weekly pay of this employee is " << (t_reg*wage)+(t_over*1.5*wage) << std::endl;
return 0;
}