Programming

Write a pseudocode to represent the logic of a program that allows a user to enter an hourly pay rate and hours worked. The program outputs the user's gross pay

  1. 👍 1
  2. 👎 0
  3. 👁 3,209
  1. Design a class name house that holds the street address asking price number of bedrooms and number of bathrooms in a house includes methods to get and set the values for each data field

    1. 👍 1
    2. 👎 0
  2. Pseudocode::

    START
    INPUT FLOAT hourlyPayRate
    INPUT FLOAT hoursWorked
    grossPay = hourlyPayRate*hoursWorked
    OUTPUT grossPay
    STOP

    ::

    Modified Pseudocode::

    START
    INPUT FLOAT hourlyPayRate
    INPUT FLOAT hoursWorked
    INPUT taxRate
    grossPay = hourlyPayRate*hoursWorked
    netPay = grossPay*(100-taxRate/100)
    OUTPUT netPay
    STOP

    ::

    N.B. I have used the data types Float, as it allows the user to enter decimal values, e.g. their hourly rate which may not be to the nearest value. Further, when calculating the net pay, I have simply multipled the gross pay by a tax multiplier (calculated by subtracting the tax rate from 100 - to find the remaining percentage - and dividing by 100 to get a decimal multiplier).

    1. 👍 3
    2. 👎 0
  3. It's seems correct according to my understanding. Even though I don't really understand pseudo code

    1. 👍 0
    2. 👎 0
  4. It seems correct according to my understanding even though I don't understand pseudo code

    1. 👍 0
    2. 👎 0

Respond to this Question

First Name

Your Response

Similar Questions

  1. gtuc

    1. WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. 2. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. 3. WRITE A PROGRAM TO CALCULATE THE

    asked by jojo on February 26, 2016
  2. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having

    asked by Aaron on August 1, 2014
  3. Programing Logic and design

    Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in an one dimensional array. use loop to calculate the total sales for the week and display the results. (In

    asked by Alejandro on April 20, 2015
  4. java programming

    1. Time Calculator Write a program that asks the user to enter a number of seconds. • There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the

    asked by ignatius on April 28, 2016
  5. computer programming

    Design the pseudocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry

    asked by Marc on February 22, 2017
  1. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

    asked by Frank on September 23, 2016
  2. Pseudocode

    Write pseudocode for a program that calculates a customer’s total price after tax. The program will ask the user for the price of the item they are buying. Then the program will add a 5% tax to the item and output the final

    asked by Names on January 25, 2017
  3. Programming

    Write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five day week and the hours worked in a 252 day work year. The

    asked by Isaiah on June 2, 2019
  4. programming logic and design

    I need help writing pseudocode for this problem: Design a retirement planning calculator for skulling financial services • Allow a user enter a number of working years remaining in the user career and the annual amount of money

    asked by Corey on July 21, 2014
  5. CIS

    Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value. The program multiplies the value by 10 and outputs the result.

    asked by Sonya on October 11, 2012

You can view more similar questions or ask a new question.