Skip to content

MyUstaadG

Learn to Serve

  • Computer Science
    • Software
    • Computer Tips
    • Coding
      • Conditional Structures Exercises
      • Loops Exercises
      • Arrays Exercises
      • Python Exercises
    • Microsoft Office
      • MS Excel
      • MS Word
  • Videos
    • Funny Videos
    • Health and Fitness Videos
    • PUBG Videos
    • Technology Videos
  • News
  • Funny
  • Memes
  • Playwright Tutorials
  • Tutorials
  • Toggle search form

Write a program that asks the user for the number of hours worked and the cost per hour. Then show payment on the screen that corresponds to you | Python Programming

Posted on March 8, 2022March 8, 2022 By myustaadg.com
Spread the love

Write a program that asks the user for the number of hours worked and the cost per hour. Then show payment on the screen that corresponds to you

Solution:

hours = float(input("Enter your working hours: "))
cost = float(input("Enter what you charge per hour: "))
pay = hours * cost
print("Your pay is", pay)

Output:

Step 1:

Input Working Hours

Step 2:

Input charges per hour

Step 3:

Final Payment
Click Here For Direct Solution on Colab

#Colab

#Why Python Programming Important

Hope You will learn Something. Happy Coding.

Programming Exercises, Python Exercises Tags:playwright python tutorial, programming in Python, programming lectures, programming tutorils in python, python programming, Python programming exercises, python programming lectues, Python programming lectures, python programming tutorials for beginners, python pygments tutorial, simple data types in python, solved programming exercises in python, Write a program that asks the user for the number of hours worked and the cost per hour.

Post navigation

Previous Post: Write a program that displays the output of the following arithmetic operation on the screen (3+2/2⋅5)^2 | Python Programming
Next Post: Write a program that reads a positive integer, , entered by the user and then displays on the screen the sum of all integers from 1 to . The sum of the positive first integers can be calculated as follows: Sum =n(n+1)/2 | python Programming

More Related Articles

Write a program to enter the temperature of a week and determine the maximum temperature, minimum temperature and average temperature. Arrays Exercises
Write a program that inputs marks of ten students in an array and counts the number of students that have marks between 80 and 100. Arrays Exercises
Introduction to C++ Programming | Download and Install Dev C++ Compiler Programming Exercises
Write a program to enter 10 integers in a single-dimensional array and then print out the array in descending order. Arrays Exercises
Write a Program that Inputs Values into an Array and Displays the Values of the Array Arrays Exercises
Write a program that inputs ages of different persons in an array and counts the number of persons that have ages between 65 and 80. Arrays Exercises

Copyright © 2022 MyUstaadG.

Powered by PressBook Blog WordPress theme